# Theme tokens a theme pack may set A theme pack (`content/theme.json`, schema version 2) may set exactly these 35 tokens. The validator (`theme.schema.json`, `validate_pack`) rejects any other name. `themes.light` is required; `themes.dark` and the other theme modes are optional. Every token is optional on its own: a token you leave out keeps the stock value below. Values are colours: `#rgb`, `#rrggbb`, `rgb()` or `rgba()`. The token map lists 52 tokens because it also shows 17 type scale, line height and spacing tokens (`--fs-*`, `--lh-*`, `--sp-*`). Those are used by the UI but are theme invariant: a theme pack cannot set them. | Token | What it is for | Stock light | Stock dark | |---|---|---|---| | `--bg` | Surfaces: page / sunken / raised | `#F7F6F4` | `#191816` | | `--s0` | Surfaces: page / sunken / raised | `#EFEDEA` | `#141311` | | `--s1` | Surfaces: page / sunken / raised | `#F7F6F4` | `#191816` | | `--s2` | Surfaces: page / sunken / raised | `#FFFFFF` | `#22211E` | | `--s3` | Surfaces: page / sunken / raised | `#EFEDEA` | `#262522` | | `--s4` | Surfaces: page / sunken / raised | `#E3DED6` | `#37352F` | | `--t0` | Ink | `#2B2926` | `#ECE9E4` | | `--t1` | Ink | `#6B665E` | `#A8A49D` | | `--t2` | Ink | `#757068` | `#8B8781` | | `--ac` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb… | `#0E7490` | `#2DD4BF` | | `--aci` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb… | `#FFFFFF` | `#0C1F1A` | | `--acs` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb… | `#E1F2F6` | `#123536` | | `--acb` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb… | `rgba(14,116,144,0.30)` | `rgba(45,212,191,0.35)` | | `--pr` | Info blue (was connector purple) | `#1D4ED8` | `#7DA2F5` | | `--prs` | Info blue (was connector purple) | `#E8EDFB` | `#1C2740` | | `--prb` | Info blue (was connector purple) | `rgba(29,78,216,0.30)` | `rgba(125,162,245,0.35)` | | `--te` | OK green | `#1E6B34` | `#5FBF7A` | | `--tei` | OK green | `#FFFFFF` | `#0C1F1A` | | `--tes` | OK green | `#E7F2E9` | `#1B2E20` | | `--teb` | OK green | `rgba(30,107,52,0.28)` | `rgba(95,191,122,0.35)` | | `--am` | Attention amber | `#8B4D10` | `#E0A458` | | `--ams` | Attention amber | `#F7E9D7` | `#3A2C18` | | `--amb` | Attention amber | `rgba(139,77,16,0.30)` | `rgba(224,164,88,0.35)` | | `--re` | Violation red | `#B42318` | `#F08577` | | `--res` | Violation red | `#FBEAE8` | `#3A1F1B` | | `--reb` | Violation red | `rgba(180,35,24,0.30)` | `rgba(240,133,119,0.35)` | | `--b` | Borders | `#E3DED6` | `#37352F` | | `--bm` | Borders | `#C9C2B6` | `#4A473F` | | `--bs` | Borders | `#B3AB9C` | `#5C584E` | | `--scrollbar` | Borders | `#C9C2B6` | `#4A473F` | | `--anchor` | Anchor rail (dark warm chrome on every light theme) | `#201F1D` | `#0F0E0D` | | `--anchor-raised` | Anchor rail (dark warm chrome on every light theme) | `#35332F` | `#262522` | | `--ink-on-anchor` | Anchor rail (dark warm chrome on every light theme) | `#F5F3EF` | `#F5F3EF` | | `--ink-on-anchor-dim` | Anchor rail (dark warm chrome on every light theme) | `#A8A49D` | `#A8A49D` | | `--shadow-card` | Anchor rail (dark warm chrome on every light theme) | `0 1px 3px rgba(40,35,25,0.08), 0 4px 14px rgba(40,35,25,0.05)` | `0 1px 3px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.3)` | ## Contrast pairs to keep readable Check every pair in light and in dark. Below the warning ratio the pack gets a warning; below the refusal ratio it is refused. | Foreground | Background | Kind | Warning below | Refused below | |---|---|---|---|---| | `--t0` | `--bg` | text | 4.5:1 | 1.5:1 | | `--t0` | `--s2` | text | 4.5:1 | 1.5:1 | | `--t1` | `--s1` | text | 4.5:1 | — | | `--t2` | `--s1` | text | 4.5:1 | — | | `--aci` | `--ac` | text | 4.5:1 | 1.5:1 | | `--tei` | `--te` | text | 4.5:1 | — | | `--ink-on-anchor` | `--anchor` | text | 4.5:1 | 1.5:1 | | `--ink-on-anchor-dim` | `--anchor` | text | 4.5:1 | — | | `--ac` | `--s1` | UI component / graphic | 3:1 | — | | `--pr` | `--s1` | UI component / graphic | 3:1 | — | | `--re` | `--s1` | UI component / graphic | 3:1 | — | | `--am` | `--s1` | UI component / graphic | 3:1 | — | | `--te` | `--s1` | UI component / graphic | 3:1 | — |