Problem: Page controls.

Solution#

html
<nav class="flex items-center gap-1">
  <button class="size-9 rounded-lg border grid place-items-center hover:bg-slate-50">‹</button>
  <button class="size-9 rounded-lg bg-blue-600 text-white grid place-items-center">1</button>
  <button class="size-9 rounded-lg border grid place-items-center">2</button>
</nav>

Why this works#

size-9 squares; active page filled.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns