Files
loki/content
4b974062a6 thoughts: Thirteen Days of the Wrong Grey (#498)
A design system with nine CI-enforced CSS invariants documents a tenth rule —
keep lib/config/theme.ts in sync with globals.css — and enforces it with a
comment. Git shows it already broke: --muted was darkened for WCAG AA on
2026-04-15 and COLOR_MUTED caught up on 2026-04-28, so the OG image, PWA
manifest and email templates shipped the contrast-failing grey for 13 days —
precisely the three surfaces that file exists for.

The piece then walks the same duplication chosen deliberately (build-time
surfaces cannot read a database, so clinic identity must exist as a literal
too), the seed-vs-constant guard written for it, and the two ways that guard
nearly lied: a first mutation that produced "no tests" instead of a named
failure because the parser was keyed to the clause it tested, and a postcode
'8008' silently coerced to an integer.

Sourced from vitareba PR #89 and its git history; every figure verified
against the repo rather than recalled.


Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 13:44:32 +00:00
..