Foundations
Radius
Radius scales with the surface: the bigger the box, the softer the corner. One border weight everywhere, 1px at token colour. Depth comes from surface lightness, not from a glow. Nothing the system itself draws carries a shadow, and the ones you will find in the repo are inside product mockups drawing someone else's interface.
The steps
The bigger the box, the softer the corner.
rounded4pxcode chipsrounded-sm6pxtags, small buttonsrounded-md8pxinputs, nav linksrounded-lg10pxbuttons, mediarounded-xl12pxcards, panelsrounded-2xl16pxlarge product cardsrounded-fulla circledots, toggles, avatars
| Class | Reads | Lands on |
|---|---|---|
| rounded | var(--radius-xs) | 4px |
| rounded-sm | calc(var(--radius) - 4px) | 6px |
| rounded-md | calc(var(--radius) - 2px) | 8px |
| rounded-lg | var(--radius) | 10px |
| rounded-xl | var(--radius-xl) | 12px |
| rounded-2xl | var(--radius-2xl) | 16px |
Three steps are derived from --radius in the preset, so moving one number moves the set. The steps Tailwind ships that the site also uses (bare rounded, rounded-xl and rounded-2xl) are held as tokens at their stock values, so every corner on the site answers to a variable.
Radius
The corner steps the preset maps to rounded, rounded-lg, rounded-xl and rounded-2xl.
| Token | Sample | Light | Dark |
|---|---|---|---|
| --radius | 0.625rem | as light | |
| --radius-xs | 0.25rem | as light | |
| --radius-xl | 0.75rem | as light | |
| --radius-2xl | 1rem | as light | |
| --radius-flat | 1.25rem | as light | |
| --radius-card | 1.0625rem | as light |
--radius-xsThe radii Tailwind ships that the site also uses, held as tokens at their stock values so bare
rounded,rounded-xlandrounded-2xlanswer to a variable likerounded-lgdoes. Nothing moves; they are now yours to move.--radius-flatThe hit area of a flat card, from akaOSS's feed. Larger than the card ladder's 0.75rem because the hover wash reaches past the content, and a corner that hugs the content looks clipped once the wash is wider.