Pre-alphaThe registry and the CLI are not published yet.Roadmap

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
Conceptual
export const radius = {
	none: 0,
	sm: 8,
	md: 12,
	lg: 18,
	xl: 26,
	full: 9999,
} satisfies Radius;
KeyTypical use
smCheckboxes, small tags
mdButtons, inputs
lgCards, list groups
xlBottom sheets, dialogs
fullAvatars, 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:

theme/components/button.ts
radius: tokens.radius.full,

A nested surface should use a smaller radius than its container, so the corners look parallel.