Spacing & corners
Shared measurements for cards, fields, controls, and page sections.
Spacing scale
Start with a 4 px grid. Use smaller steps inside controls and larger steps between groups.
- 4 pxLabel to supporting text
--space-1 - 8 pxIcon to label
--space-2 - 12 pxGap between related fields
--space-3 - 16 pxGap between cards
--space-4 - 20 pxCard padding
--space-5 - 24 pxGap between card groups
--space-6 - 32 pxInset for roomy panels
--space-8 - 48 pxBetween sections
--space-12 - 64 pxMajor sections on wide screens
--space-16
Corner radii
Use the same radius for surfaces that serve the same purpose.
- Square
0 pxDividers and flush edges - Small
8 pxSwatches and nav items - Control
12 pxFields and icon tiles - Card
20 pxCards and panels - Pill
999 pxButtons and badges - Circle
50%Avatars and round controls
Surfaces & borders
Use the theme border to separate adjacent surfaces.
- Canvas
--canvasPage background - Surface
--surfaceCards, dialogs, and panels - Tinted surface
--action-tintNavigation cards and accents