# Color

> Neutral ramp + one accent per product, remapped by data-nx-product; status and chart palettes are fixed.

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

## Tokens

- `--nx-ink`
- `--nx-slate-700`
- `--nx-slate-500`
- `--nx-slate-300`
- `--nx-hairline`
- `--nx-surface-2`
- `--nx-white`
- `--nx-paper`
- `--nx-accent-50`
- `--nx-accent-100`
- `--nx-accent-600`
- `--nx-accent-700`
- `--nx-on-accent`
- `--nx-success`
- `--nx-warning`
- `--nx-serious`
- `--nx-danger`
- `--nx-chart-1`
- `--nx-chart-2`
- `--nx-chart-3`
- `--nx-chart-4`
- `--nx-chart-5`
- `--nx-chart-6`

## Palette

### Neutrals

Neutral names describe the light theme. Every neutral flips in dark mode, so pick a token by its role (text, surface, border), not by the colour its name suggests.

| Label | Token | Product | Note |
| --- | --- | --- | --- |
| Ink (text) | `--nx-ink` |   | Near-black in light, near-white in dark. |
| Slate 700 (secondary text) | `--nx-slate-700` |   |   |
| Slate 500 (muted text) | `--nx-slate-500` |   |   |
| Slate 300 (faint, disabled) | `--nx-slate-300` |   |   |
| Hairline (borders) | `--nx-hairline` |   |   |
| Surface-2 (subtle fill) | `--nx-surface-2` |   | Light grey in light, one step above Surface in dark. |
| Surface (cards, inputs) | `--nx-white` |   | White in light, dark slate in dark. |
| Paper (page background) | `--nx-paper` |   | Off-white in light, darkest background in dark. |

### Accent ramps

| Label | Token | Product | Note |
| --- | --- | --- | --- |
| ordNX 50 | `--nx-accent-50` | `ord` |   |
| ordNX 100 | `--nx-accent-100` | `ord` |   |
| ordNX 600 (signature) | `--nx-accent-600` | `ord` |   |
| ordNX 700 | `--nx-accent-700` | `ord` |   |
| checkNX 50 | `--nx-accent-50` | `check` |   |
| checkNX 100 | `--nx-accent-100` | `check` |   |
| checkNX 600 (signature) | `--nx-accent-600` | `check` |   |
| checkNX 700 | `--nx-accent-700` | `check` |   |
| certNX 50 (standalone) | `--nx-accent-50` | `cert` |   |
| certNX 100 (standalone) | `--nx-accent-100` | `cert` |   |
| certNX 600 (signature, standalone) | `--nx-accent-600` | `cert` |   |
| certNX 700 (standalone) | `--nx-accent-700` | `cert` |   |
| fileNX 50 | `--nx-accent-50` | `file` |   |
| fileNX 100 | `--nx-accent-100` | `file` |   |
| fileNX 600 (signature) | `--nx-accent-600` | `file` |   |
| fileNX 700 | `--nx-accent-700` | `file` |   |
| firmNX 50 | `--nx-accent-50` | `firm` |   |
| firmNX 100 | `--nx-accent-100` | `firm` |   |
| firmNX 600 (signature) | `--nx-accent-600` | `firm` |   |
| firmNX 700 | `--nx-accent-700` | `firm` |   |
| SkyONEx 50 | `--nx-accent-50` | `sky` |   |
| SkyONEx 100 | `--nx-accent-100` | `sky` |   |
| SkyONEx 600 (signature) | `--nx-accent-600` | `sky` |   |
| SkyONEx 700 | `--nx-accent-700` | `sky` |   |
| coproNX 50 | `--nx-accent-50` | `copro` |   |
| coproNX 100 | `--nx-accent-100` | `copro` |   |
| coproNX 600 (signature) | `--nx-accent-600` | `copro` |   |
| coproNX 700 | `--nx-accent-700` | `copro` |   |
| hostNX 50 | `--nx-accent-50` | `host` |   |
| hostNX 100 | `--nx-accent-100` | `host` |   |
| hostNX 600 (signature) | `--nx-accent-600` | `host` |   |
| hostNX 700 | `--nx-accent-700` | `host` |   |

### Status

| Label | Token | Product | Note |
| --- | --- | --- | --- |
| Success | `--nx-success` |   |   |
| Warning | `--nx-warning` |   |   |
| Serious | `--nx-serious` |   |   |
| Danger | `--nx-danger` |   |   |

### Chart

| Label | Token | Product | Note |
| --- | --- | --- | --- |
| Chart 1 | `--nx-chart-1` |   |   |
| Chart 2 | `--nx-chart-2` |   |   |
| Chart 3 | `--nx-chart-3` |   |   |
| Chart 4 | `--nx-chart-4` |   |   |
| Chart 5 | `--nx-chart-5` |   |   |
| Chart 6 | `--nx-chart-6` |   |   |

## Accessibility

- accent-600 is for fills/large graphics only; use accent-700 for text on accent-50/100 tints to clear WCAG AA.
- Status colour is always paired with an icon + label text, never colour alone.

## Do / Don't

- Do: Theme with one data-nx-product attribute and let tokens cascade.
- Don't hard-code a hex value in a component. Always go through --nx-\*.

---

Source: registry.js (NX Design System)
