Space and grid
Spacing, the grid and corners.
Scale
One scale on a 0.25rem base, the same rhythm as the line heights.
| Token | Value |
|---|---|
space.1 | 0.25rem |
space.2 | 0.5rem |
space.3 | 0.75rem |
space.4 | 1rem |
space.6 | 1.5rem |
space.8 | 2rem |
space.12 | 3rem |
space.16 | 4rem |
space.24 | 6rem |
space.32 | 8rem |
Roles per register
| Role | Website | Interface | Academic |
|---|---|---|---|
--wg-space-inline | 0.75rem | 0.75rem | 0.75rem |
--wg-space-stack | 1.5rem | 1rem | 1.5rem |
--wg-space-pad | 2rem | 2rem | 2rem |
--wg-space-gap | 2rem | 1.5rem | 1.5rem |
--wg-space-section | 8rem | 4rem | 6rem |
--wg-space-gutter | 4rem | 1.5rem | 2rem |
--wg-space-gutter-narrow | 1.5rem | 1rem | 1.5rem |
The grid
The website sits on a 2rem grid: card edges, gaps and padding land on its lines, and cards take uneven spans. Interfaces and academic work sit on a 0.5rem cell. The grid is always 1px lines at 3% of the register's grid colour.
Corners
The ground and chrome stay square. Cards, buttons, fields and markers take 0.25rem: half a grid cell. No pills, no squircles.