⌘K
Search
Search pages, pieces and blocks.
Spacing
A short scale on a 4px base. Every step has a job, so gaps repeat and pages line up without measuring.
- Base
- 4px
- Steps
- 13
- Class
- gap-2 is 8px
Scale
Hover a step to see where it lives. Click to copy.
The step is the class number: gap-2, p-2 and --spacing(2) are all 8px.
In a real piece
Card, Field, Input, Switch and Button, as shipped. The redlines are measured from the page, not drawn.
Notifications
Choose what reaches you, and when.
Skip the rest of the thread.
Vertical rhythm
Each level down the page takes a smaller step, so nesting reads without dividers.
- 40Section to sectiongap-10 in Pricing, Steps, Footer
- 24Group to groupgap-6 in App Shell content
- 16Legend to its fieldsmb-4 on FieldLegend
- 12Field to fieldgap-3 in the Settings block
- 8Label to controlgap-2 in Field
Account
Do and don't
Off scale values and padding stacked on padding are the two ways gaps drift.
Rules
- 1Use a step, never a value between steps. If nothing fits, the layout is asking for a different step, not a new one.
- 2Space comes from the parent. Use gap on the container, not margins on the children.
- 3Pad once. A card's padding is the only inset; what sits inside it adds none.
- 4Related things sit closer than unrelated things. When in doubt, go one step down inside and one step up outside.