Classic Pagination
A copy-paste pagination component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
PaginationHTMLCSSany framework
Copy into your project
HTML
<nav class="nuda-pgc">
<button class="nuda-pgc__nav">‹</button>
<button class="nuda-pgc__page">1</button>
<button class="nuda-pgc__page nuda-pgc__page--on">2</button>
<button class="nuda-pgc__page">3</button>
<button class="nuda-pgc__nav">›</button>
</nav>CSS
.nuda-pgc {
display: inline-flex;
gap: .3rem;
align-items: center;
}
.nuda-pgc__page,.nuda-pgc__nav {
min-width: 34px;
height: 34px;
border: 1px solid rgba(255,255,255,.1);
background: #161616;
color: #cfcfcf;
border-radius: 8px;
font-size: .8rem;
cursor: pointer;
transition: all .15s;
}
.nuda-pgc__page:hover,.nuda-pgc__nav:hover {
border-color: rgba(228,255,84,.4);
color: #fafafa;
}
.nuda-pgc__page--on {
background: #e4ff54;
color: #0a0a0a;
border-color: #e4ff54;
font-weight: 700;
}
How to use Classic Pagination
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.