Problem: Multi-step progress.

Solution#

html
<ol class="flex items-center gap-2">
  <li class="flex items-center gap-2"><span class="grid size-6 place-items-center rounded-full bg-blue-600 text-xs text-white">1</span>Account</li>
  <li class="h-px flex-1 bg-slate-200"></li>
  <li class="flex items-center gap-2"><span class="grid size-6 place-items-center rounded-full border text-xs">2</span>Billing</li>
</ol>

Why this works#

Numbered circles + connector lines via h-px flex-1.

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