Token reference

Choose names by their purpose, then assign values from your own design.

92 tokens

Surfaces

Give each surface a role, from the page canvas to raised cards and inset fields. Map these roles to your own palette, and choose text colors for the surface they appear on.

  • --bg-body core

    Page or application canvas behind main content.

    Usage: html/body background
  • --bg-main core

    Primary content surface.

    Usage: main column, article, panel
  • --bg-inset core

    Recessed surface below the main background.

    Usage: asides, wells, form fields, inputs
  • --bg-raised core

    Surface elevated above the main background.

    Usage: cards, menus, dropdowns, raised panels
  • --bg-inset-strong extended

    Deeper inset than inset when two recessed levels are needed.

  • --bg-raised-strong extended

    Stronger elevation than raised when two raised levels are needed.

  • --bg-brand core

    Background filled with the primary brand color.

    Usage: call-to-action buttons
  • --bg-brand-secondary core

    Background filled with a secondary brand color.

  • --bg-success core

    Background for success state regions.

    Usage: banners, badges
  • --bg-warning core

    Background for warning state regions.

  • --bg-danger core

    Background for danger/error state regions.

  • --bg-info core

    Background for informational state regions.

  • --bg-disabled core

    Background for disabled controls or inert regions.

  • --bg-inverse core

    Contrasting surface inverted from the current theme (e.g. dark on light themes).

Text colors

Express emphasis, interaction, and status without coupling copy to a palette step. Check contrast against the actual background; a pairing describes intent, not a guarantee of accessibility.

  • --text-primary core

    Main body and default copy text.

    Usage: body, headings by default
  • --text-secondary core

    Supporting copy with less emphasis than primary.

    Usage: subtitles, metadata, secondary labels
  • --text-subtle core

    Quietest text for hints, captions, and de-emphasized content.

    Usage: captions, placeholder-adjacent hints
  • --text-interactive core

    Default color for text links and text-styled controls. Hover/active use text-interactive-hover and text-interactive-active.

    Usage: links, text buttons
  • --text-interactive-hover core

    Hover state for interactive text.

  • --text-interactive-active core

    Active/pressed state for interactive text.

  • --text-brand core

    Text colored with the primary brand accent.

  • --text-brand-secondary core

    Text colored with a secondary brand accent.

  • --text-success core

    Text for success messaging and status.

  • --text-warning core

    Text for warning messaging and status.

  • --text-danger core

    Text for danger/error messaging and status.

  • --text-info core

    Text for informational messaging and status.

  • --text-disabled core

    Text on disabled controls or unavailable actions.

  • --text-inverse core

    Text intended for inverse or high-contrast surfaces.

Border colors

Use neutral dividers for structure and status colors to reinforce meaning. Border color is separate from border width and radius.

Icon colors

Extended tokens give icons their own color roles when inheriting text color is not enough. Use currentColor in SVGs to pick up the assigned role.

Chart colors

Extended series colors provide consistent references for data visualization. Choose a distinguishable palette and supplement color with labels, patterns, or shapes.

Typography

Define typefaces, a size scale, weights, and text rhythm once. Components can then describe their typographic role without repeating font values.

Spacing

Apply a shared scale to gaps, padding, and margins. The steps describe relative size; assign values that fit your design rather than treating them as a prescribed numeric scale.

  • --space-xs core

    Tightest spacing step.

    Usage: icon gaps, dense stacks
  • --space-sm core

    Small spacing step.

  • --space-md core

    Default spacing step for common layout padding or gaps.

  • --space-lg core

    Large spacing step for section padding.

  • --space-xl core

    Extra-large spacing step.

  • --space-xxl core

    Largest spacing step for major layout separation.

Border shape & width

Keep corner treatments consistent with core radius tokens. Extended width tokens are available when your design benefits from shared stroke weights.

Motion

Pair durations with easing curves to give transitions a consistent feel. Honor reduced-motion preferences; assigning a duration does not make every animation necessary.

  • --ease-in core

    Accelerating easing curve.

    Usage: system-initiated animations
  • --ease-out core

    Decelerating easing curve.

    Usage: user-initiated animations
  • --ease-linear core

    Constant-rate easing; defaults to the CSS keyword linear.

    Usage: fades or color transitions
  • --duration-fast core

    Short motion duration.

    Usage: micro-interactions, hover
  • --duration-normal core

    Default motion duration for most UI transitions.

Layout & layering

Share content widths and a deliberate stacking order. Z-index values only compare within their stacking context, and do not override the browser’s top layer.

  • --content-max-width core

    Max width for primary page content.

    Usage: main layout container, nav header
  • --overlay-max-width core

    Max width for overlays such as dialogs.

    Usage: modals, dialogs
  • --z-menu core

    Z-index for menus and dropdowns.

  • --z-sticky core

    Z-index for sticky headers or bars.

  • --z-fixed core

    Z-index for fixed-position chrome.

  • --z-drawer core

    Z-index for drawers and side panels.

  • --z-dialog core

    Z-index for modal dialogs.

  • --z-popover core

    Z-index for tooltips and popovers.

  • --z-tooltip core

    Z-index for tooltips.

  • --z-toast core

    Z-index for toasts and global notifications.

Focus & shadow

Make keyboard focus visible and use a shared shadow for elevation. This example assigns a color to the focus-ring token and supplies outline width and style at the point of use.

  • --focus-ring core

    Focus indicator color or shorthand used for :focus-visible outlines.

    Usage: keyboard focus rings on interactive elements
  • --box-shadow core

    Default elevation shadow for raised surfaces.