Design System

Radius

One base token (--radius, 8px) drives the whole ramp, so corners stay consistent and a single change re-tunes every component.

The ramp

Five steps — from tight chips to full pills.

sm

4px

md

6px

lg

8px

xl

12px

pill

24px

Where each step is used

TokenSizeUse
--radius-sm4pxBadges, inline code chips, tight controls
--radius-md6pxButtons, inputs, menu items
--radius-lg8pxCards, popovers, alerts — the default surface radius
--radius-xl12pxLarge containers, preview panels, dialogs
--radius-pill24pxFully-rounded pills and avatar chips

Rules of thumb

  • Nested surfaces step down: a card at lg holds controls at md.
  • Use the Tailwind aliases (rounded-sm/md/lg/xl) — they resolve to these tokens.
  • No per-corner mixing except for connected elements (e.g. the calendar's range endpoints).

On this page