# Colour

- **[Foundations](/foundations/)**

Warm paper surfaces, near-black ink and one sky-blue accent. Seven tokens per mode; every shade is derived from them.

## Palette

The brand palette, light mode. The dark values are in the table below.

- **Canvas**
- **Surface**
- **Ink**
- **Muted**
- **Line**
- **Accent**
- **Accent text**

## Tokens

Components read the surface tokens (--kh-*), mapped from these and re-mapped per tone.

- --kh-p-canvas · #faf9f7 · #0b0b0d · Page background
- --kh-p-surface · #ffffff · #1a1a1f · Cards, inputs, panels
- --kh-p-ink · #17171a · #f2f1ee · Text and the primary button
- --kh-p-muted · #6b6b75 · #8f8f9a · Secondary text, 4.5:1 or more
- --kh-p-line · #e8e6e1 · #383842 · Hairline borders
- --kh-p-accent · #1c6ee0 · #5b9bf5 · Links, focus, one emphasis per view
- --kh-p-accent-fg · #ffffff · #0b1a2c · Text on the accent
- --kh-p-danger · #b42318 · #ff8a7d · Error text and invalid borders
- --kh-p-accent-fill · (accent) · (accent) · Optional: what accent text sits on (buttons, the accent band) when a light brand colour fills as itself; links keep the accent

## Rules

When to use what.

- **Accent**: Links, focus and the one primary emphasis in a view. Never a whole card.
- **Shades are derived**: surface-2, surface-3, line-strong, ink-2 and the accent hover and soft fill are mixed in CSS from the seven tokens, so a tone or a style change re-derives them.
- **Danger**: Only for errors and invalid fields. It is not part of a style, so it stays readable on every canvas.

## Do and don't

Side-by-side examples.
