docs/resources/stylesheets.md
Pagy includes a couple of CSS files and the tools to integrate with your app's themes interactively.
!!!warning
You don't need any stylesheets if you use the pagy :bootstrap or :bulma helpers and styles.
!!!
Pick a file...
+++ pagy.css
!!!success Good for any app !!!
==- CSS Source
:::code source="/gem/stylesheets/pagy.css" title="pagy.css":::
===
+++ pagy-tailwind.css
!!!warning Works only with apps using tailwind !!!
==- CSS Source
:::code source="/gem/stylesheets/pagy-tailwind.css" title="pagy-tailwind.css":::
===
+++
{{ include "snippets/pick-a-conf" resource: ":stylesheet" resource_dir: "stylesheets" remote_dir: "app/stylesheets" }}
Customize the style...
Add this line to any template <head>...
<%== Pagy.dev_tools %>
and adjust a few sliders to see the change in real time, right in your app, with the Pagy Wand. Then copy the CSS Override field and paste it in your own CSS.
:::raised {width=300} :::
==- :icon-key-asterisk: Selectors
To ensure a minimalistic valid output, complete with all the ARIA attributes, pagy outputs a single line with the minimum number of tags and attributes required to identify all the parts of the nav bars:
series_nav and series_nav_js helpers, is a series of a tags inside a nav tag wrapper.href attributes.pagy nav and pagy nav-js classes are assigned to the nav tag.{{ include "snippets/run-app" app: "demo" }}
!!!tip
gap with .pagy a:[role="separator"].pagy a:first-child and .pagy a:last-child pseudo classes==- :icon-arrow-left: RTL
The pagy stylesheets automatically support Right-To-Left (RTL) languages. It respects the standard dir="rtl" attribute of the html tag or any parent element of the pagination.
===