Radius
Corner rounding of surfaces and controls.
Draft
The values shown here are conceptual and may change.
none
0
sm
8
md
12
lg
18
xl
26
full
9999
export const radius = {
none: 0,
sm: 8,
md: 12,
lg: 18,
xl: 26,
full: 9999,
} satisfies Radius;| Key | Typical use |
|---|---|
sm | Checkboxes, small tags |
md | Buttons, inputs |
lg | Cards, list groups |
xl | Bottom sheets, dialogs |
full | Avatars, chips, pills, switches |
The radius of a control
Button, IconButton, FloatingButton, Chip, Input and SegmentedControl read their radius from their component tokens, not from here. Changing md still reaches them, since their tokens point to it. To make only the buttons pills, change their tokens file:
radius: tokens.radius.full,A nested surface should use a smaller radius than its container, so the corners look parallel.