Skip to main content
v0.1 dev

Token reference

Space

The baseline spacing scale used for padding, margin, gap, and flow.

25 tokensglobal · 25Reference category

Overview

The baseline spacing scale used for padding, margin, gap, and flow. Values come from canonical DTCG JSON or are derived from governed responsive and preference contracts. Published names are versioned APIs. This page is a structural counterpart of the audited reference information architecture.

Token Reference

Token pathSetTypeCanonical valueCSS custom property
space.0globaldimension{space.none}--he-space-0
space.1globaldimension{space.3xs}--he-space-1
space.2globaldimension{space.2xs}--he-space-2
space.3globaldimension{space.xs}--he-space-3
space.4globaldimension{space.sm}--he-space-4
space.5globaldimension{space.md}--he-space-5
space.6globaldimension{space.md}--he-space-6
space.8globaldimension{space.lg}--he-space-8
space.10globaldimension{space.xl}--he-space-10
space.12globaldimension{space.xl}--he-space-12
space.16globaldimension{space.2xl}--he-space-16
space.20globaldimension{space.3xl}--he-space-20
space.24globaldimension{space.4xl}--he-space-24
space.30globaldimension{space.4xl}--he-space-30
space.noneglobaldimension0rem--he-space-none
space.3xsglobaldimension0.25rem--he-space-3xs
space.2xsglobaldimension0.5rem--he-space-2xs
space.xsglobaldimension0.75rem--he-space-xs
space.smglobaldimension1rem--he-space-sm
space.mdglobaldimension1.5rem--he-space-md
space.lgglobaldimension2rem--he-space-lg
space.xlglobaldimension3rem--he-space-xl
space.2xlglobaldimension4rem--he-space-2xl
space.3xlglobaldimension5rem--he-space-3xl
space.4xlglobaldimension6rem--he-space-4xl

Usage

  • Consume semantic or component aliases in application code.
  • Use global values only to author or review foundation aliases.
  • Keep responsive and preference behavior aligned across Web and Flutter.
  • Do not edit generated outputs or introduce an unregistered literal.

Open related foundation guidance

Accessibility

Changes require cross-theme contrast, text-scaling, reflow, forced-colors, reduced-motion, and input-modality review where applicable. A token cannot make essential meaning depend on color, opacity, motion, elevation, or viewport size alone.

Web and Flutter API

/* Web */
color: var(--he-space-0);

// Flutter
final value = HeTokens.spaceN0;

The example uses an exact generated name. The table is the complete Web reference; global and semantic Flutter constants are generated in he_tokens.g.dart, while component contracts own component-level values.