Space.

Space rivals colour for how much of a system it shapes, yet it is the part designers cannot see. An 8px rhythm grounds it, with deliberate 4px increments for dense situations. One scale is applied as inset, stack, and inline space.

Base unit
8px grid
Scale
7 steps · 0–40px
Vocabulary
Inset · Stack · Inline
Page scale
The website · W6–W7
4.1

The 8px grid

Everything is spaced on an 8px rhythm. Eight is the base unit; layout steps follow that beat first, so type, padding, and gaps all land on the same measure. The scale also names 4px increments for dense UI, including 4 and 12, where a full eight is too much. Those named steps are deliberate, not exceptions.

8px rhythm
8

Everything aligns to 8px first, with named 4px increments for tighter moments.

Named increments
8162440+ 4px increments (4, 12)

The layout steps. Reach for the 8px rhythm first; the 4px increments are for tight controls only.

4.2

The scale

The six non-zero spacing steps, drawn to their own proportion. Most follow the 8px rhythm; the named 4px increments serve denser moments. Together with the zero step, these seven named values are the entire vocabulary.

The spacing scale8px grid
4xxs · ½
8xs
12sm · ½
16md
24lg
40xl
Squares are proportional to one another; the figures are the true values. The dashed steps (4, 12) are the named 4px increments and sit between the 8px beats by design.
4.3

Inset, stack & inline

The scale is applied three ways. Inset is the padding within an element or container; stack is the vertical space between items; inline is the horizontal space across a row. One measure colour reveals all three. They read apart by form, not by hue: a frame, a horizontal band, a vertical band.

Inset

Padding on all sides: the breathing room within an element.

4
xxs
8
xs
12
sm
16
md
24
lg
40
xl

Stack

Vertical space between stacked items.

xxs4
xs8
sm12
md16
lg24
xl40

Inline

Horizontal space between items in a row.

4xxs
8xs
12sm
16md
24lg
40xl
4.4

Space revealed

The whole vocabulary appears in one worked example. On the left is a finished card. On the right, the same card reveals its spacing: a red inset, stacks between rows, and an inline gap between tags. Each band is labelled with its value.

ReportQuarterly review

A concise read on the period: the headline metrics and where the quarter landed against plan.

RevenueEMEA
A finished content card.
16
Report
8
Quarterly review
8

A concise read on the period: the headline metrics and where the quarter landed against plan.

16
RevenueEMEA
16
Space revealed: inset, stack, inline.
4.5

Squish & stretch

Some controls take an asymmetric inset. A squish cuts the top and bottom for buttons, pills, and table cells, where height is at a premium. A stretch adds top and bottom for inputs and textareas, where the value needs room. Both still draw from the one scale.

168View
Squish: 16 / 8 inset for buttons, pills, and cells.
1216Textbox value
Stretch: 12 / 16 inset for inputs and textareas.
4.6

Misuse

Space is composed, not hand-placed. Use the named scale and the right layout relationship, and never sprinkle one-off margins to nudge things into place.

Don't hand-place one-off margins. Use the named relationship instead.
10
18
30
Don't invent values between the named steps (10, 18, 30).
Don't crowd. Give content room with the larger steps.