claude@clouddev1 00c9deaf6f ADR-0022 stage 1/8: theme token-class colour fields
Add seven `tok_*` Color fields to Theme — keyword,
identifier, number, string, punct, flag, error — populated
in both dark and light themes. WCAG-AA contrast against
each theme's bg.

Identifier and punct sit close to fg/muted so dominant
content reads quietly; literals + flags get warm accent
tones; keyword takes a cool accent (purple) distinct from
the mode-banner blue. tok_error reuses the existing error
palette so lex-error tokens read consistently with [error]
lines elsewhere.

New helper Theme::token_color(&TokenKind) -> Color maps
each token kind to its display colour.

Tests: 672 passing, 0 failing, 1 ignored (668 baseline → +4
theme tests). Clippy clean.

Pure addition; no existing render path uses these yet.
Stage 2 wires them into the input panel.
2026-05-10 17:24:44 +00:00
2026-05-07 11:17:58 +00:00
S
Description
No description provided
19 MiB
v0.2.0
Latest
2026-06-17 23:05:39 +01:00
Languages
Rust 96.3%
MDX 1.3%
Shell 0.8%
JavaScript 0.8%
Astro 0.2%
Other 0.5%