Radius
Tailwind's border radius steps, written as multiples of one CSS variable, so a single value rounds every corner. With the components that use each step.
The scale
At the default --radius: 0.5rem the steps match Tailwind's docs. Controls round at 8px, the rows inside a popup at 4px and Badge at 6px, so a row's corner follows the popup around it. To change the radius, set --radius as Theming shows; a shadcn theme's value rounds differently, as Themes from shadcn/ui explains.
| Token | Of --radius | Default | Used for |
|---|---|---|---|
--radius-xs | ×0.25 | 2px | Small marks inside a component |
--radius-sm | ×0.5 | 4px | Menu and list rows, Checkbox, chips |
--radius-md | ×0.75 | 6px | Badge, a Button at xs, Tooltip |
--radius-lg | ×1 | 8px | Button, Input, Select, every popup |
--radius-xl | ×1.5 | 12px | Card, Toast, Toolbar |
--radius-2xl | ×2 | 16px | Dialog, Alert Dialog |
--radius-3xl | ×3 | 24px | |
--radius-4xl | ×4 | 32px |