Skip to content

Rounded 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-pgr">
  <button class="nuda-pgr__page nuda-pgr__page--on">1</button>
  <button class="nuda-pgr__page">2</button>
  <button class="nuda-pgr__page">3</button>
  <button class="nuda-pgr__page">4</button>
</nav>
CSS
.nuda-pgr {
  display: inline-flex;
  gap: .4rem;
}

.nuda-pgr__page {
  width: 36px;
  height: 36px;
  border: none;
  background: #1a1a1a;
  color: #cfcfcf;
  border-radius: 50%;
  font-size: .8rem;
  cursor: pointer;
  transition: all .18s;
}

.nuda-pgr__page:hover {
  background: #262626;
  color: #fafafa;
}

.nuda-pgr__page--on {
  background: #e4ff54;
  color: #0a0a0a;
  font-weight: 700;
  transform: scale(1.05);
}

How to use Rounded 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.

More pagination components

← Browse all NudaUI components