Skip to content

Token Reference

The system generates a set of CSS variables (tokens) that you can use in your application.

These tokens are scoped to the surface class (e.g., .surface-card). They change value depending on the surface they are inside.

TokenDescription
--surface-tokenThe background color of the current surface.
--text-high-tokenHigh-contrast text color (e.g., Black on Light, White on Dark).
--text-subtle-tokenLower-contrast text color for secondary information.
--text-subtlest-tokenLowest-contrast text color for placeholders or disabled text.
--border-dec-tokenDecorative border color (low contrast).
--border-int-tokenInteractive border color (higher contrast).
.my-component {
background: var(--surface-token);
color: var(--text-high-token);
border: 1px solid var(--border-dec-token);
}

These tokens are defined on :root and are available everywhere.

TokenDescription
--shadow-smSmall shadow for subtle depth.
--shadow-mdMedium shadow for cards and dropdowns.
--shadow-lgLarge shadow for modals and floating actions.
--shadow-xlExtra large shadow for major overlays.
TokenDescription
--focus-ring-colorThe brand-aware color used for focus rings.

If you have configured a palette in color-config.json, these tokens will be available.

TokenDescription
--chart-1First color in the categorical palette.
--chart-2Second color…
--chart-NNth color.

You may see these tokens in the generated CSS, but they are generally intended for internal use by the engine.

  • --chroma-brand: The base chroma value derived from your key colors.
  • --hue-brand: The base hue value derived from your key colors.