Foundation

Spacing

Grids, margins, gutters, and vertical rhythm for PDS Health pages. Everything is built on an 8-pixel scale — spacing values snap to the scale so layouts stay consistent across brands and breakpoints.

8-Pixel Scale

Each token maps a pixel value to a scale number (8px = 100, 16px = 200, and so on). Bars below are rendered at actual height.

0px · 0
1px · 1
2px · 25
4px · 50
8px · 100
16px · 200
24px · 300
32px · 400
40px · 500
48px · 600
56px · 700
64px · 800
72px · 900
80px · 1000
88px · 1100
96px · 1200
104px · 1300
112px · 1400
120px · 1500
128px · 1600
136px · 1700
160px · 1800

Padding Tokens

T-shirt sizes resolve to different values on mobile vs desktop from s upward; xxxs through xs are the same everywhere.

TokenMobileDesktop
padding-xxxs4px4px
padding-xxs8px8px
padding-xs16px16px
padding-s24px32px
padding-m32px48px
padding-l48px72px
padding-xl56px80px
padding-xxl72px96px
padding-xxxl96px112px

Grid

Pink areas are margins and gutters; white areas are columns. Rendered proportionally to each design width.

Desktop — 1440px design width

12 columns · 40px gutters · 80px margins

Tablet — 834px design width

12 columns · 24px gutters · 48px margins

Mobile — 402px design width

4 columns · 16px gutters · 24px margins

Vertical Rhythm

Padding typeDesktopTabletMobile
Exterior Padding (xl)80px80px56px
Section Padding (lg)72px64px48px
Element Padding (sm)32px32px24px
Text Padding (xs)16px16px16px

Exterior: Vertical padding at the beginning and end of a container. Section: Vertical padding for section breaks within a container — when more space is needed between two groups of related content. Element: Vertical padding between elements such as text and buttons, icons and text, pictures and text. Text: Vertical padding between text blocks.

Rhythm in context (desktop values)

xl (80px) — exterior

Lorem ipsum dolor sit amet

xs (16px)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lobortis sem at commodo faucibus.

lg (72px) — section

Nunc ut quam sed odio gravida fermentum quis accumsan metus, aliquam dui massa sodales eu vestibulum.

sm (32px) — element
Find a Dentist
xl (80px) — exterior

Source of truth: O2 Design System Figma — Spacing (node 26-69). Two flags for Figma cleanup: (1) the Gutters section header reads "Desktop: 48px" but the drawn guides and callouts are 40px — documented as 40px here; (2) the 2px scale token is labeled "25" — verify intent.