A NSW Government website

Command Palette

Search for a command to run...

Spacing

The NSW Design System email framework uses an 8-point spacing scale based on a 4 px increment. This creates predictable spacing across components, ensuring consistency in emails viewed in Outlook, Gmail and iOS Mail.

Why we use a spacing scale

  • Readability: Predictable gaps help users scan long emails more easily on both mobile and desktop.
  • Consistency: Shared values reduce “one-off” padding that can erode the NSW visual identity.
  • Resilience: Fixed pixel steps perform reliably in email clients that don't support modern CSS.
  • Maintainability: A shared scale helps designers and developers communicate using the same spacing values.
  • Responsive design: When columns stack on smaller screens, horizontal gutters become clean vertical gaps.

The scale

  • Base unit: 4 px
  • Common steps: 4, 8, 12, 16, 24, 32, 40, 48 px
  • Usage guidance:
    • 4–12 px: For small elements (e.g. labels, headings)
    • 16–24 px: For paragraph spacing
    • 24–48 px: For sections and larger block spacing
Use caseSpacing (px)
Section padding24–32 top/bottom 16–24 left/right
Between major blocks24–32
Heading to paragraph8–12
Between paragraphs16
Between list items8
Before and after lists16
Button padding12–14 vertical 16–24 horizontal
Clear space around buttons16–24
Image to caption gap8–12

Responsive behaviour

  • Stacked columns: Convert horizontal gutters (16–24 px) into vertical gaps (16–24 px).
  • Edge alignment: Maintain consistent outer padding (e.g. 24 px) to avoid layout shifts.

Default spacing scale

SizePixelsSpacing (px)
00px
14px
28px
312px
416px
520px
624px
728px
832px
940px
1048px
1156px
1264px
1372px
1480px
1588px
1696px
17104px
18112px
19120px
20128px
21136px
22144px
23152px
24160px
25168px
26176px
27184px
28192px
29200px
30208px
31216px
32224px
33232px
34240px
35248px
36256px
37264px
38272px
39280px
40288px
41296px
42304px
43312px
44320px
Next
Layout