Menu

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 chips
  • rounded-sm6pxtags, small buttons
  • rounded-md8pxinputs, nav links
  • rounded-lg10pxbuttons, media
  • rounded-xl12pxcards, panels
  • rounded-2xl16pxlarge product cards
  • rounded-fulla circledots, toggles, avatars
ClassReadsLands on
roundedvar(--radius-xs)4px
rounded-smcalc(var(--radius) - 4px)6px
rounded-mdcalc(var(--radius) - 2px)8px
rounded-lgvar(--radius)10px
rounded-xlvar(--radius-xl)12px
rounded-2xlvar(--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.

TokenSampleLightDark
--radius0.625remas light
--radius-xs0.25remas light
--radius-xl0.75remas light
--radius-2xl1remas light
--radius-flat1.25remas light
--radius-card1.0625remas light
--radius-xs

The radii Tailwind ships that the site also uses, held as tokens at their stock values so bare rounded, rounded-xl and rounded-2xl answer to a variable like rounded-lg does. Nothing moves; they are now yours to move.

--radius-flat

The 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.