Skip to content

Foundations

Spacing

A four-pixel grid. Small steps hold things together, large steps separate sections; any value off the scale produces no CSS.

Experience

What it looks like in use.

02 — Challenge

How the gate works

Every screen is checked before anyone calls it done.

  1. gap-3Eyebrow and heading
  2. gap-4Heading and text
  3. gap-6Text and actions
  4. The highlighted bands are the gaps: tighter where things belong together.

System

The logic and the rules behind it.
  • Proximity groups. Inside a block the steps are small (4–24 pixels); between sections they are large (128px, 96px, 56px).
  • Sections bring their own rhythm. <Section> sets the space above and below; screens add none between sections.
  • Only the scale exists. p-5 or gap-10 produce no CSS, and the check reports them as dead classes.

Specifications

Every value, as tokens and utilities.
  • 0 · 0px
  • 1 · 4px
  • 2 · 8px
  • 3 · 12px
  • 4 · 16px
  • 6 · 24px
  • 8 · 32px
  • 12 · 48px
  • 16 · 64px
  • 24 · 96px

Screens and patterns use these values through named roles such as gap-stack and gap-group; see Layout.

Section rhythm
TokenValue
section.paddingTop.desktop128px
section.paddingBottom.desktop96px
section.paddingTop.mobile56px