Border Radius
Border radius tokens and border width conventions.
Radius tokens
The design system uses a base --radius variable (16px) with derived sizes: 16px for surfaces, 10px for controls, and pill for highlight CTAs and tags.
Border radius scale (base: 16px)
sm
rounded-sm
10px
md
rounded-md
10px
lg
rounded-lg
16px
xl
rounded-xl
16px
| Token | Value | Class | Usage |
|---|---|---|---|
| xl | var(--radius) = 16px | rounded-xl | Cards, panels |
| lg | var(--radius) = 16px | rounded-lg | Dialogs, large containers |
| md | calc(var(--radius) - 6px) = 10px | rounded-md | Buttons, inputs, badges |
| sm | calc(var(--radius) - 6px) = 10px | rounded-sm | Menu items, tooltips |
| full | 9999px | rounded-full | Pill CTAs, tags, avatars |
Border widths
| Class | Value | Usage |
|---|---|---|
border | 1px | Default card/input borders |
border-2 | 2px | Active/selected state borders |
h-[0.5px] / w-[0.5px] | 0.5px | Hairline separators (Separator, DropdownMenuSeparator) |
Customizing
Override the base radius to change all derived values:
:root {
--radius: 12px; /* Example: more compact feel */
}