Skip to content
Browse library
Docs/Design System/Spacing & density
DESIGN SYSTEM · SPACING & DENSITY

Spacing & density

A 4px-anchored spacing scale and aligned control heights keep toolbars, forms, and grids on one clean rhythm.

01 — SPACING SCALE

Spacing tokens

Use 4–8px inside compact controls, 12–16px inside panels and cards, and 24–32px between page sections.

--biu-space-44pxTight icon/text gap, badge padding
--biu-space-66pxCompact control gap, inline chips
--biu-space-88pxRelated toolbar actions, field label gap
--biu-space-1212pxCard internal spacing, form rows
--biu-space-1616pxPanel padding, grid gutter
--biu-space-2020pxDialog padding, section sub-blocks
--biu-space-2424pxCard grid separation, page headers
--biu-space-3232pxMajor section rhythm
02 — CONTROL HEIGHTS

Aligned control density

Buttons, inputs, selects, and segmented tabs share matching heights at every size tier so toolbars stay flush.

sm--biu-control-sm
md--biu-control-md
lg--biu-control-lg
03 — TOUCH ERGONOMICS

Coarse pointer adaptation

Under @media (pointer: coarse), menu items and compact interactive controls expand to a minimum 40px hit target so touch devices remain comfortable without bloating desktop density.