Skip to content
DocsFoundationsSpacingLast updated Nov 2, 2026

Spacing

Three spacing scales named by what sits on either side of the gap: layout between page regions, section between groups inside a region, component inside one part. Each step resolves per breakpoint, so a page tightens on tablet and mobile without new tokens.

Layout

Between page regions: the nav and the hero, one section and the next.

TokenDesktopTabletMobile
spacing/layout/none0 px0 px0 px
spacing/layout/xs32 px24 px16 px
spacing/layout/sm48 px32 px24 px
spacing/layout/md64 px48 px32 px
spacing/layout/lg96 px64 px48 px
spacing/layout/xl128 px88 px64 px

Section

Between groups inside a region: a heading and its grid, one row of cards and the next.

TokenDesktopTabletMobile
spacing/section/none0 px0 px0 px
spacing/section/xs12 px12 px8 px
spacing/section/sm16 px16 px12 px
spacing/section/md24 px20 px16 px
spacing/section/lg32 px24 px20 px
spacing/section/xl48 px32 px24 px

Component

Inside one part: an icon and its label, a field and its hint.

TokenDesktopTabletMobile
spacing/component/none0 px0 px0 px
spacing/component/xs4 px4 px4 px
spacing/component/sm8 px8 px8 px
spacing/component/md12 px12 px8 px
spacing/component/lg16 px16 px12 px
spacing/component/xl24 px20 px16 px