Tokens

Override CSS variables after StartHDS loads. Required groups include colors, typography, spacing, layout, radii, shadows, focus rings, transitions, z-index, and control sizes.

TokenPurposeOverride notes
--hds-color-primaryPrimary actions and linksSafe to set globally or under a theme wrapper.
--hds-radius-cardCard and panel shapeUse a conservative length to avoid broken layouts.
--hds-space-4Base spacing stepComponents include fallbacks if missing.
--hds-focus-ring-colorVisible keyboard focusKeep strong contrast for accessibility.
.my-product-theme {
  --hds-color-primary: #0f766e;
  --hds-shadow-card: 0 1.25rem 3rem rgb(15 23 42 / 0.14);
}

See docs/tokens.md for a portable Markdown summary.