Radius
Radius
Radius has two roles: containers use the base --radius, and controls use --hl-radius-control, derived from it at 0.8× by default. Changing --radius scales both in proportion.
Base token
--radius0.625rem · 10px
Two roles
How round a corner looks depends on its ratio to the element size, so single-line controls sit one step tighter than containers. A thumb inside a track subtracts the track padding to stay concentric.
--radius0.625rem · 10px
Containers: Card, Dialog, Popover, table frame
--hl-radius-control0.5rem · 8px
Controls: Button, Input, Select, Tabs, icon buttons
Complete scale
From subtle rounding to pills, rendered at the actual curvature.
sm0.25rem
md0.375rem
lg0.5rem
[var(--radius)]0.625rem
xl0.75rem
2xl1rem
full9999px