Spacing and Layout
Visual language
Space creates hierarchy.
Geometry of Trust relies on rhythm rather than decoration. Consistent spacing allows structure to emerge naturally.
Whitespace is not empty.
It separates concepts, groups related information and guides attention before color or typography become necessary.
Foundation¶
Spacing scale¶
| Token | Value | Typical use |
|---|---|---|
--space-1 |
4px | Optical corrections |
--space-2 |
8px | Tight controls |
--space-3 |
12px | Compact groups |
--space-4 |
16px | Standard component spacing |
--space-6 |
24px | Card interiors |
--space-8 |
32px | Component groups |
--space-12 |
48px | Section interiors |
--space-16 |
64px | Compact section spacing |
--space-24 |
96px | Default section rhythm |
--space-32 |
128px | Marketing hero rhythm |
Spacing in context¶
Control
16
Control
Group A
32
Group B
Section A
64
Section B
Visual rhythm¶
Page layouts¶
| Context | Width | Columns | Gutter |
|---|---|---|---|
| Marketing | 1280px | 12 | 24–48px |
| Documentation | 1440px | Navigation + content | 24–40px |
| Application | Fluid | 12 | 24px |
| Dense data | Fluid | 16 | 16–24px |
Composition¶
Principles¶
- Group related information before styling it.
- Keep spacing consistent across similar components.
- Use whitespace to reveal hierarchy.
- Align components to the underlying grid.
- Invent arbitrary spacing values.
- Fill empty areas because they feel unused.
- Reduce spacing to fit more information.
- Mix unrelated spacing scales.
Philosophy¶
Spacing
### Space communicates relationships.
Objects that belong together move together.
Objects that represent different concepts remain visually independent.
Good spacing makes the interface understandable before a single word is read.
Knowledge graph