Skip to content
Theme

Space and size

One spacing scale in rem, named by multiples of 0.25rem, and the fixed sizes of controls, icons, borders and the focus ring. Layout primitives take a step of the scale, so a gap off the scale is a type error.

Space

TokenValuePreviewUse
space.00rem
space.10.25rem
space.20.5rem
space.30.75rem
space.41rem
space.51.25rem
space.61.5rem
space.82rem
space.102.5rem
space.123rem
space.164rem
space.205rem
space.246rem

Size

TokenValueUse
size.controlSm1.75remHeight of a small control.
size.controlMd2.25remHeight of a control.
size.controlLg2.75remHeight of a large control.
size.iconSm1remAn icon inside small text or a small control.
size.iconMd1.125remAn icon beside body text or in a control.
size.iconLg1.5remA standalone icon.
size.target1.5remThe smallest pointer target (WCAG 2.5.8: 24 CSS pixels).
size.border1pxThe width of borders and dividers.
size.focusRing2pxThe width of the focus ring.
size.focusOffset1pxThe gap between an element and its focus ring.