Docs
Spacing

Spacing

We use a grid-based standard with a 4px unit spacing, divided into an algorithm that follows an organic growth scale.

Demo

loading

Spacing units table

AliasUseREM unitDP/PX Unit
microInner spacing of groupings.254
xsLine spacing within groupings.58
smallSpacing for inputs and inner blocks.7512
medium / DefaultSpacing between external components116
largeSpacing between component blocks1.7528
xlSpacing between content blocks2.7544
xxlSpacing between page sections4.572
giantSpacing between distinct pieces of content7.25116

Density. These values are the canonical ones (dimension="normal"). Switching to compact or spacious on the ApollionProvider scales the entire table proportionally — without rewriting consumers. See Dimensions.