Radius
The radius ladder on the shapes it is for, each step with its value, its tokens and its classes.
Corners come from one ladder. A step belongs to a kind of thing, not to a size someone liked: small marks, rows, controls, cards, trays. Every shape below is the Registry component as it installs, so the corner on the page is the corner a product gets.
The ladder
DraftPaidEsc
rounded-smallrounded-chiprounded-smWebsite refresh
0.5remrounded-mdrounded-lgrounded-navrounded-controlrounded-control-innerWebsite refresh
Due on 12 December
Fourteen of twenty tasks are done.
rounded-xlrounded-2xlrounded-cardArchive this project?
Its tasks stay where they are.
rounded-3xlrounded-trayKS
rounded-fullNesting
A corner inside a corner turns about the same centre, so the outer radius is the inner radius plus the gap between them. A menu shows it: its rows sit one step of padding in from its edge.
p-1, one step of the spacing scale.Classes
Tailwind's own radius names are mapped onto the ladder, so rounded-md in a component
that was not written for Khaeli still lands on a step.
ClassValueReads
6px
calc(var(--radius) - 2px)8px
var(--radius)8px
var(--radius)12px
var(--radius-card)12px
var(--radius-card)16px
var(--radius-tray)20px
calc(var(--radius-tray) + 4px)6px
var(--radius-small)10px
var(--radius-control)8px
var(--radius-control-inner)8px
var(--radius-nav)6px
var(--radius-chip)12px
var(--radius-card)16px
var(--radius-tray)