Radius roles and strategies

Docs

Corners come from one ladder. Every component's radius token plays a role on it, and the corners check grades each against the project's strategy.

Strategies

concentric is the recommended one and a new project's default.

Strategy Rule
Uniform Controls and surfaces share one radius. Pills stay pills.
Concentric Surfaces sit one rung rounder than the controls inside them.
Custom No rule. Every radius is listed, nothing is graded.

The ladder

Each step names the surface step that sits one rung rounder (what a card wears when a button wears the step) and the two steps below it that the kit's rounded-md and rounded-sm follow.

Step Value Surface md rung sm rung
none 0px none none none
xs 0.125rem sm none none
sm 0.25rem md xs none
md 0.375rem lg sm xs
lg 0.5rem xl md sm
xl 0.75rem 2xl lg md
2xl 1rem 3xl xl lg
3xl 1.5rem 4xl 2xl xl
4xl 2rem 4xl 3xl 2xl
full 9999px 4xl 3xl 2xl

Surfaces are never fully round

A surface's radius (semantic:radius-surface and every component with the surface role) never resolves to a pill: 999px or more, or 50% or more. A save that would newly make one fully round is refused; a project already holding one keeps saving and the corners check fails that row until it is fixed. Under uniform with a fully round control radius, surfaces keep the surface rung, which caps at 4xl.

Roles by component

Role Meaning
control the control radius (semantic:radius)
surface the surface radius (semantic:radius-surface), one rung rounder under concentric, never fully round
pill always fully round
inset a fixed small radius
Component Role
alert surface
avatar pill
badge pill
bubble surface
button control
card surface
checkbox inset
dialog surface
dropdown-menu surface
empty control
input control
item control
kbd inset
menubar control
popover surface
progress pill
radio-group pill
select control
skeleton control
slider pill
switch pill
tabs control
textarea control
toast surface
toggle control
tooltip control

Nested corners

Where the kit draws one rounded corner inside another, the inner corner is derived from the outer one less the inset, and the check expects the pair to stay concentric. The inset is the outer's padding divided by the divisor, plus its border.

Outer Inner Padding divisor Border (px) Inner height (px) Outer hugs one row
popover select item 4 1 33 no
dropdown-menu menu item 1 1 33 no
tabs tab trigger 1 0 29 yes
input input group button — 5 24 yes
input combobox chip — 7 22 yes
menubar menubar trigger 1 1 28 yes