# Color

> OKLCH roles in the shadcn vocabulary, three presets, light and dark. Text pairs are contrast-checked when tokens build; the build fails below WCAG AA.

Rules: color marks attention, not decoration. Neutral surfaces; one accent for the primary action and selection; success, warning and critical only when something needs a person, always with a word or icon. Status text uses the `*-foreground` roles, fills use the base role.

## Graphite roles

| Role | Light | Dark |
| --- | --- | --- |
| `--background` | `oklch(0.975 0.002 265)` | `oklch(0.205 0.003 265)` |
| `--foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--card` | `oklch(1 0 0)` | `oklch(0.238 0.003 265)` |
| `--card-foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--popover` | `oklch(0.995 0.001 265)` | `oklch(0.268 0.004 265)` |
| `--popover-foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--primary` | `oklch(0.555 0.205 257)` | `oklch(0.555 0.205 257)` |
| `--primary-foreground` | `oklch(1 0 0)` | `oklch(1 0 0)` |
| `--primary-hover` | `oklch(0.515 0.2 257)` | `oklch(0.595 0.2 257)` |
| `--link` | `oklch(0.52 0.2 257)` | `oklch(0.74 0.14 252)` |
| `--secondary` | `oklch(0 0 0 / 0.055)` | `oklch(1 0 0 / 0.1)` |
| `--secondary-foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--muted` | `oklch(0 0 0 / 0.035)` | `oklch(1 0 0 / 0.055)` |
| `--muted-foreground` | `oklch(0.43 0.008 265)` | `oklch(0.76 0.004 265)` |
| `--subtle-foreground` | `oklch(0.49 0.008 265)` | `oklch(0.7 0.005 265)` |
| `--accent` | `oklch(0 0 0 / 0.05)` | `oklch(1 0 0 / 0.075)` |
| `--accent-foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--selection` | `oklch(0.6 0.17 257 / 0.16)` | `oklch(0.62 0.17 257 / 0.26)` |
| `--destructive` | `oklch(0.56 0.21 27)` | `oklch(0.58 0.2 25)` |
| `--destructive-foreground` | `oklch(0.48 0.19 27)` | `oklch(0.76 0.15 22)` |
| `--success` | `oklch(0.62 0.17 148)` | `oklch(0.74 0.18 148)` |
| `--success-foreground` | `oklch(0.46 0.12 150)` | `oklch(0.8 0.17 148)` |
| `--warning` | `oklch(0.75 0.16 70)` | `oklch(0.8 0.15 72)` |
| `--warning-foreground` | `oklch(0.49 0.12 60)` | `oklch(0.83 0.14 75)` |
| `--info` | `oklch(0.6 0.15 250)` | `oklch(0.7 0.13 245)` |
| `--info-foreground` | `oklch(0.47 0.15 255)` | `oklch(0.78 0.11 245)` |
| `--border` | `oklch(0 0 0 / 0.09)` | `oklch(1 0 0 / 0.085)` |
| `--border-strong` | `oklch(0 0 0 / 0.15)` | `oklch(1 0 0 / 0.15)` |
| `--input` | `oklch(0 0 0 / 0.43)` | `oklch(1 0 0 / 0.36)` |
| `--ring` | `oklch(0.58 0.19 257)` | `oklch(0.66 0.17 257)` |
| `--overlay` | `oklch(0 0 0 / 0.25)` | `oklch(0 0 0 / 0.5)` |
| `--sidebar` | `oklch(0.945 0.003 265 / 0.8)` | `oklch(0.235 0.004 265 / 0.78)` |
| `--sidebar-foreground` | `oklch(0.215 0.005 265)` | `oklch(0.955 0.002 265)` |
| `--sidebar-accent` | `oklch(0 0 0 / 0.07)` | `oklch(1 0 0 / 0.1)` |
| `--sidebar-border` | `oklch(0 0 0 / 0.1)` | `oklch(0 0 0 / 0.5)` |
| `--chart-1` | `oklch(0.55 0.19 255)` | `oklch(0.68 0.16 252)` |
| `--chart-2` | `oklch(0.66 0.17 50)` | `oklch(0.74 0.15 55)` |
| `--chart-3` | `oklch(0.6 0.12 185)` | `oklch(0.72 0.12 180)` |
| `--chart-4` | `oklch(0.55 0.2 305)` | `oklch(0.68 0.16 305)` |
| `--chart-5` | `oklch(0.62 0.15 130)` | `oklch(0.75 0.14 120)` |
| `--chart-muted` | `oklch(0.62 0.006 265)` | `oklch(0.6 0.004 265)` |
| `--chart-grid` | `oklch(0 0 0 / 0.07)` | `oklch(1 0 0 / 0.06)` |
| `--chart-axis` | `oklch(0 0 0 / 0.2)` | `oklch(1 0 0 / 0.16)` |

## Presets

- **Graphite** (`data-preset="graphite"`): Native, neutral and calm. Mac-like materials, system blue, color only where attention is needed. Modes: light, dark.
- **Flight deck** (`data-preset="flight-deck"`): Soft graphite with a blue bias and an ice-blue action. Depth from lightness, no glass. Modes: dark.
- **Deep space** (`data-preset="deep-space"`): Near-black void, nebula light and frosted glass for docs heroes, onboarding and empty states. Modes: dark.
