Foundations
Radius
One 20px radius that reads as a pill on controls, a small square for marks, and a circle for faces.
Shape follows Round corners. The same 1.25rem radius covers controls and surfaces; at control heights it closes into a pill.
Nesting
Nested shapes keep concentric curves. A child inside a padded container uses a smaller share of the radius than its parent: a status mark inside a pill badge takes rounded-mark, a quarter of the radius, never the full rounded-control. Avatars, the switch thumb and the slider thumb are circles with rounded-avatar.
in sync LE
Tokens
| Token | Tailwind | Value | About |
|---|---|---|---|
| control --sb-radius-control | rounded-control | 1.25rem | Every control; reads as a pill at control heights Derives from Round corners |
| surface --sb-radius-surface | rounded-surface | 1.25rem | Cards, dialogs, menus, toasts, demo frames, code blocks Derives from Round corners |
| mark --sb-radius-mark | rounded-mark | 0.3125rem | Status marks and the loading mark: a quarter of the 1.25rem radius Derives from Round corners |
| avatar --sb-radius-avatar | rounded-avatar | 50% | Avatars, switch thumb, slider thumb: a circle. 9999px is the fallback for tools without percentages Derives from Round corners |