# Tokens

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

- Group: Foundations
- HTML page: https://design.ipmnx.com/foundations/tokens/
- Spec: https://design.ipmnx.com/design/#tokens

## Design tokens as JSON

Every token in tokens.css in the W3C Design Tokens format (DTCG 2025.10). Values are the light theme at comfortable density; dark and compact values are under $extensions on each token.

- [All tokens (default)](https://design.ipmnx.com/tokens.json): every token in tokens.css; the accent is the :root fallback (ordNX violet)
- [ordNX](https://design.ipmnx.com/tokens/ord.json): the full set as computed inside a data-nx-product="ord" wrapper, with the ordNX accent
- [CheckNX](https://design.ipmnx.com/tokens/check.json): the full set as computed inside a data-nx-product="check" wrapper, with the CheckNX accent
- [certNX](https://design.ipmnx.com/tokens/cert.json): the full set as computed inside a data-nx-product="cert" wrapper, with the certNX accent
- [FileNX](https://design.ipmnx.com/tokens/file.json): the full set as computed inside a data-nx-product="file" wrapper, with the FileNX accent
- [FirmNX](https://design.ipmnx.com/tokens/firm.json): the full set as computed inside a data-nx-product="firm" wrapper, with the FirmNX accent
- [SkyONEx](https://design.ipmnx.com/tokens/sky.json): the full set as computed inside a data-nx-product="sky" wrapper, with the SkyONEx accent
- [coproNX](https://design.ipmnx.com/tokens/copro.json): the full set as computed inside a data-nx-product="copro" wrapper, with the coproNX accent
- [hostNX](https://design.ipmnx.com/tokens/host.json): the full set as computed inside a data-nx-product="host" wrapper, with the hostNX accent
- [NX suite](https://design.ipmnx.com/tokens/nx.json): the full set as computed inside a data-nx-product="nx" wrapper, with the NX suite accent

## 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).

---

Source: registry.js (NX Design System)
