--uit-spacing-* scale. Pick the ordinal step that expresses the relationship between regions, then let the theme resolve its length.var().| Token | Typical use |
|---|---|
--uit-spacing-2xs | Hairline separation between tightly coupled parts. |
--uit-spacing-xsmall | Gap between an element and its immediate label or indicator. |
--uit-spacing-small | Gap inside a compact group. |
--uit-spacing-sm-med | Gap between related controls. |
--uit-spacing-medium | Gap between items in a group. |
--uit-spacing-med-lg | Gap between elements in a text stack. |
--uit-spacing-large | Screen and surface content inset. |
--uit-spacing-xlarge | Separation between distinct sections. |
--uit-spacing-2xl | Major section break. |
--uit-spacing-3xl | Larger major section break. |
--uit-spacing-4xl | Generous vertical rhythm on sparse screens. |
--uit-spacing-5xl | Largest step; use sparingly. |
--uit-icon-2xs, --uit-icon-xsmall, --uit-icon-small, --uit-icon-medium, --uit-icon-large, --uit-icon-xlarge, --uit-icon-2xl.ButtonItemIconSize, AvatarSize, ChipAvatarSize, MediaWrapperSize, and similar. Use the --uit-icon-* tokens only for icons you place yourself.import { TextStyle, TextView } from '@wearables-ui-toolkit/mrbd';
<section className="detail-block">
<TextView as="h2" textStyle={TextStyle.HEADING2}>Route</TextView>
<TextView textStyle={TextStyle.BODY2}>Turn right in 200 metres</TextView>
</section>
.detail-block {
display: flex;
flex-direction: column;
gap: var(--uit-spacing-med-lg);
padding-inline: var(--uit-spacing-large);
}
large horizontal inset.ScrollView, VerticalList, and ButtonRail extend to both screen edges; their children own the content insets. Do not wrap them in a page inset. Inside a ScrollView, put authored content in a single wrapper that carries the large inline inset rather than padding the scroll viewport itself.Panel may also extend edge to edge. Modals stay inset.Container, StaticContainer, Surface, and Panel uses the large spacing token from the component edge.ButtonRail or ButtonGroup sits outside the route’s vertical scroller and keeps the xsmall spacing token as its bottom clearance.ListItem rows have no additional gap between them.min(), max(), clamp(), a grid track, or a shadow. Changing the unit to em or rem does not make it a token.