Foundations
Colour
Obsidian, plum and electric orchid. Dark is the default, light uses the same plum-tinted neutrals with a deeper orchid so contrast never drops below AA.
Orchid is for four things
Everything around it stays neutral obsidian and plum, so a person's eye goes to what they can act on.
Read the plan before you confirm.
- The one main button on a screen (
--primary). - Links.
- The active indicator: nav underline, the 2px edge of the active sidebar row.
- The R1C2 brand mark.
Nothing else is orchid: not icons, headings, charts' first series by default, badges or decoration.
Do
One orchid button per screen; every other action is outline or ghost.
Don't
Orchid headings, orchid icons, orchid badges or an orchid card background.
Tokens
Both polarities side by side. Use the CSS variable, never the hex, in components. Click a value to copy it.
Surfaces
Plum-tinted neutrals. Each step up is one level of elevation.
| Token | Dark (default) | Light | Worst contrast dark / light | Role |
|---|---|---|---|---|
| - / - | Page canvas | |||
| - / - | Panels, sidebar, code blocks | |||
| - / - | Menus, dialogs, overlays | |||
| - / - | Inset wells, inline code chips | |||
| - / - | Secondary controls |
Text
Two shades carry the hierarchy. Weight and size do the rest.
| Token | Dark (default) | Light | Worst contrast dark / light | Role |
|---|---|---|---|---|
| 18.3:1 AA / 15.8:1 AA | Headings, labels, values | |||
| 10.3:1 AA / 7.0:1 AA | Body prose, descriptions, metadata |
Lines
Hairlines are decoration between rows. Anything a person operates gets an edge of at least 3:1.
| Token | Dark (default) | Light | Worst contrast dark / light | Role |
|---|---|---|---|---|
| - / - | 1px hairline between rows and sections, never the only edge of a control | |||
| 3.0:1 3:1 / 3.1:1 3:1 | Edge of inputs, selects, checkboxes and switches | |||
| 3.0:1 3:1 / 3.1:1 3:1 | Scrollbar thumb on a transparent track | |||
| - / - | Dashed page divider, 10px footer trim |
Orchid
The brand colour. Rare on purpose.
| Token | Dark (default) | Light | Worst contrast dark / light | Role |
|---|---|---|---|---|
| 9.6:1 AA / 5.6:1 AA | The one main button, links, active indicator, the mark | |||
| 10.3:1 AA / 6.6:1 AA | Ink on orchid fills | |||
| - / - | Hover and selection tint |
Status
Colour plus icon plus word, never colour alone.
| Token | Dark (default) | Light | Worst contrast dark / light | Role |
|---|---|---|---|---|
| 7.2:1 AA / 4.6:1 AA | Running, inspecting, network boundary | |||
| 10.5:1 AA / 4.7:1 AA | Checks passed, verified merges | |||
| 11.0:1 AA / 4.7:1 AA | Paused, needs a decision, waiting to retry: slows work down | |||
| 6.8:1 AA / 5.3:1 AA | Act now: blocked checks, failures, destructive actions |
Status colours
Four states, each with an icon and a word. The word carries the meaning; the colour is a second cue.
- Running
- Checks passed
- Needs a decision
- Check failed
Do
Say it in words next to the colour: failed, passed, paused.
Don't
A bare red or green dot that someone with colour-blindness cannot read.
Team members
One hue per member of the team, kept clear of the status colours. Always beside the member's name, never alone.
- Product Owner6.9:1 AA / 4.5:1 AA
- Tech Lead9.8:1 AA / 4.6:1 AA
- Developer8.1:1 AA / 4.6:1 AA
- QA12.1:1 AA / 4.6:1 AA
- DevOps6.1:1 AA / 5.3:1 AA
Contrast, forced colours and tints
The reader's own settings are handled once, in tokens.css, so no component has to.
- Measured floors
- Text and status words reach 4.5:1 on background, card and muted. Control edges, focus rings, icons and the scrollbar thumb reach 3:1. A new colour lands with its ratio.
- More contrast
- Under prefers-contrast: more, hairlines and the plum rule take the --input edge and the scrollbar thumb takes the text colour.
- Forced colours
- Under forced-colors: active, edges become CanvasText and the focus ring Highlight. Gradients vanish there, so every racing cue sits beside a word.
- Tints and shades
- Use an existing token first. A derived one is color-mix(in oklab, var(--token), white or black N%), never in oklch with a neutral and never a hand-edited lightness channel.
- Native controls
- tokens.css sets color-scheme beside the colours, accent-color to orchid and scrollbar-color to the thumb, so checkboxes, pickers and scrollbars follow the theme.
Charts and diagrams
Five chart colours in a fixed order. Orchid leads only where the series is the product's own number.
Diagram surfaces use the --diagram-* tokens (surface, grid, node, zone, edge and a status pair each for primary, info, success, warning and error). They live in the same file, so a flow canvas follows the theme with no extra work.
Download the tokens
One file defines the palette. Change a colour in tokens.json, then regenerate the others; never in a surface's own stylesheet.
- Download tokens.css
tokens.css
Tailwind v4 / shadcn variables, light and dark
- Download tokens.json
tokens.json
W3C design tokens, the single source
- Download tokens.ts
tokens.ts
Typed palette for TypeScript
- Download tokens.go
tokens.go
TrueColor and ANSI 256 for the CLI
In a Tailwind v4 project, import tokens.css after @import "tailwindcss" and map the variables with @theme inline, as this site does in app/globals.css. Put class="dark" on html for the dark palette; tokens.css sets the matching color-scheme itself.