Skip to content

Spacing and density

The spacing scale, the control sizes, and the two densities that move them.

Shown at the top of every page.

HealthyNeeds youDown
Range

Could not refresh. Showing data from 4 minutes ago.

SiteReleaseState
capsid0.132.0Live
carrel0.131.2Waiting

Spacing tokens

TokenValueSampleJob
--space-12pxhairline gaps: an icon beside its count
--space-1-53pxhalf a step: a hairline nudge (a chevron's margin, a control's padding less its edge)
--space-24pxinside a control: icon to label
--space-2-56pxhalf a step: the gap in a chip, a segmented control or a toolbar's tight group
--space-38pxbetween controls in a toolbar
--space-3-510pxhalf a step: a compact panel's inner gap
--space-412pxbetween rows of a form, cell padding
--space-4-514pxhalf a step: a dense card's padding, a list's gap on a product site
--space-516pxpanel padding, the page gutter on a phone
--space-5-520pxhalf a step: a card's padding, a form's field gap on a product site
--space-624pxbetween panels, the page gutter
--space-6-528pxhalf a step: between a heading and its panel on a product site
--space-732pxbetween sections
--space-7-540pxhalf a step: between the groups of a long form or a marketing band
--space-848pxbetween major regions of a reading page
--space-8-556pxhalf a step: a marketing band's inner padding
--space-964pxabove a page footer
--space-9-580pxbetween the bands of a marketing page
--space-1096pxa hero band's padding, the widest gap on a page

Control tokens

TokenValueJob
--control34pxa control's height with a fine pointer (one step above the Portal's 32; shadcn vega's h-9)
--target24pxthe smallest hit area (WCAG 2.5.8 asks 24)
--control-h-coarse44pxa control's height with a coarse pointer

Compact density

TokenValueJob
--control34pxa control's height with a fine pointer (one step above the Portal's 32; shadcn vega's h-9)
--target24pxthe smallest hit area (WCAG 2.5.8 asks 24)
--pad-x12pxa control's inline padding (vega's px-3)
--pad-y7pxa control's block padding where it is not a fixed height (a textarea, a menu item)
--pad-card20pxa card or panel's padding (shadcn's card spacing, nova 16 and vega 24)
--fs-label0.6875remcolumn labels and section titles, uppercase; nothing is set smaller
--fs-detail0.8125remthe line under a row title
--fs-body0.875remapp body and rows (vega's text-sm)
--fs-lead0.9375rema page's lead line
--gap14pxbetween rows of a form and between sibling blocks
--row-h40pxthe least height of a list or table row

Comfortable density

TokenValueJob
--control36pxa control's height with a fine pointer (one step above the Portal's 32; shadcn vega's h-9)
--target28pxthe smallest hit area (WCAG 2.5.8 asks 24)
--pad-x12pxa control's inline padding (vega's px-3)
--pad-y8pxa control's block padding where it is not a fixed height (a textarea, a menu item)
--pad-card24pxa card or panel's padding (shadcn's card spacing, nova 16 and vega 24)
--fs-label0.75remcolumn labels and section titles, uppercase; nothing is set smaller
--fs-detail0.8125remthe line under a row title
--fs-body0.875remapp body and rows (vega's text-sm)
--fs-lead1rema page's lead line
--gap16pxbetween rows of a form and between sibling blocks
--row-h44pxthe least height of a list or table row