Radiusjsp
shadcn's radius chain – 6, 8, 10 and 14 – and two roles on top of it: rounded-control for anything you press or type in, rounded-container for anything that holds content.
Foundation- Source
- tokens/semantic/radius.json
- Base
- --radius 10px
- Two roles
rounded-control (8) and rounded-container (14). Pages use these, not the steps.
- shadcn matches
shadcn's own rounded utilities point at the same primitives, so both tiers agree.
- Borders
Widths of 1 and 2: border-width.default and strong.
Scale
Steps
The primitives, with the shadcn utility that reads each. Page code never uses these.
- radius.none0px
- radius.sm6pxrounded-sm
- radius.md8pxrounded-md
- radius.lg10pxrounded-lg
- radius.xl14pxrounded-xl
- radius.full9999px
Roles
What page code and the JSP tier use.
10px. shadcn's --radius; only read directly by Sonner's toasts.
8px. Corners of buttons, inputs and other controls.
14px. Corners of cards, panels and dialogs.
In use
Controls take the control radius, the card the container radius.
Nested surfaces inside a card use the control radius so corners sit concentric.
Borders
Border widths, and the colours that go with them (see Colour → Borders and focus).