Skip to content

Tokens

Two-layer token model: RGB channel vars are the source of truth, rgb() aliases are the convenience layer consumers read.

View as Markdown

Design tokens as JSON

Every token in tokens.css in the W3C Design Tokens format (DTCG 2025.10), for Figma, Tokens Studio, Style Dictionary and AI tools. Values are the light theme; dark and compact values are under $extensions on each token.

Download tokens.jsonhttps://design.ipmnx.com/tokens.json

Per product: the values inside a data-nx-product wrapper, with that accent applied. The default file uses the ordNX violet fallback.

Tokens

  • --nx-accent-600-rgb
  • --nx-accent-600
  • --nx-mark-stroke
  • data-nx-product
  • data-theme
  • data-nx-density

Accessibility

  • Dark mode (data-theme="dark") overrides only the neutral channel vars on :root. Every component recolours with zero per-component dark CSS; accent tints (50/100/700) are derived via color-mix() so any future product dark-themes for free.

Do / Don’t

  • Do: Compose alpha with the -rgb channel var (rgb(var(--nx-accent-600-rgb) / .7)) rather than a new hard-coded colour.Don't read the -rgb channel var directly as a colour. Always go through the rgb() alias or an explicit rgb(var(...) / alpha).

View in spec