Skip to main content

Spacing

Spacing tokens define the distances, padding, gaps, and structural dimensions used throughout the system.

  • Scale — The base pixel scale that all spacing tokens reference (e.g. scale/4 = 4px).
  • Layout — Semantic spacing tokens for padding, gap, layout heights, and screen size breakpoints.

For token-selection guidance, see Choosing design tokens.

Base scale​

The underlying numeric scale. All semantic spacing tokens map to a step on this scale.

26 tokens

NameTypeValueDescription
scale/0FLOAT0px—
scale/1FLOAT1px—
scale/10FLOAT10px—
scale/12FLOAT12px—
scale/14FLOAT14px—
scale/16FLOAT16px—
scale/18FLOAT18px—
scale/2FLOAT2px—
scale/20FLOAT20px—
scale/22FLOAT22px—
scale/24FLOAT24px—
scale/28FLOAT28px—
scale/32FLOAT32px—
scale/36FLOAT36px—
scale/4FLOAT4px—
scale/40FLOAT40px—
scale/48FLOAT48px—
scale/56FLOAT56px—
scale/6FLOAT6px—
scale/64FLOAT64px—
scale/72FLOAT72px—
scale/8FLOAT8px—
scale/80FLOAT80px—
scale/88FLOAT88px—
scale/96FLOAT96px—
scale/9999FLOAT9999px—

Padding, gap, layout, and screen sizes​

50 tokens

NameTypeValueDescription
gap
gap/2xlSTRINGvar(--scale-16)—
gap/3xlSTRINGvar(--scale-20)—
gap/4xlSTRINGvar(--scale-24)—
gap/default/content/rowSTRINGvar(--gap-sm)—
gap/lgSTRINGvar(--scale-8)—
gap/mdSTRINGvar(--scale-6)—
gap/noneSTRINGvar(--scale-0)—
gap/smSTRINGvar(--scale-4)—
gap/xlSTRINGvar(--scale-12)—
gap/xsSTRINGvar(--scale-2)—
layout
layout/height/contained/lgSTRINGvar(--scale-20)—
layout/height/contained/mdSTRINGvar(--scale-16)—
layout/height/contained/smSTRINGvar(--scale-12)—
layout/height/contained/xlSTRINGvar(--scale-24)—
layout/height/contained/xsSTRINGvar(--scale-8)—
layout/height/standard/2xlSTRINGvar(--scale-56)—
layout/height/standard/3xlSTRINGvar(--scale-64)—
layout/height/standard/4xlSTRINGvar(--scale-72)—
layout/height/standard/5xlSTRINGvar(--scale-80)—
layout/height/standard/lgSTRINGvar(--scale-40)—
layout/height/standard/mdSTRINGvar(--scale-32)—
layout/height/standard/smSTRINGvar(--scale-24)—
layout/height/standard/xlSTRINGvar(--scale-48)—
layout/height/standard/xsSTRINGvar(--scale-16)—
padding
padding/10xlSTRINGvar(--scale-48)—
padding/11xlSTRINGvar(--scale-56)—
padding/2xlSTRINGvar(--scale-12)—
padding/3xlSTRINGvar(--scale-14)—
padding/4xlSTRINGvar(--scale-16)—
padding/5xlSTRINGvar(--scale-20)—
padding/6xlSTRINGvar(--scale-24)—
padding/7xlSTRINGvar(--scale-32)—
padding/8xlSTRINGvar(--scale-36)—
padding/9xlSTRINGvar(--scale-40)—
padding/default/containersSTRINGvar(--padding-lg)—
padding/lgSTRINGvar(--scale-8)—
padding/mdSTRINGvar(--scale-6)—
padding/noneSTRINGvar(--scale-0)—
padding/smSTRINGvar(--scale-4)—
padding/xlSTRINGvar(--scale-10)—
padding/xsSTRINGvar(--scale-2)—
screensize
screensize/2xlFLOAT1536px—
screensize/2xsFLOAT320px—
screensize/desktop/maxFLOAT1960px—
screensize/desktop/minFLOAT1400px—
screensize/lgFLOAT1024px—
screensize/mdFLOAT768px—
screensize/smFLOAT640px—
screensize/xlFLOAT1280px—
screensize/xsFLOAT376px—