themes-brutalist/docs/adr/0006-every-preset-colour-meets-aa-with-its-foreground.md
Alex Dunmow d91608e827 fix: website factory render pass polish (0.7.7)
Hero scrim, button and preset contrast and layout fixes found by the
WO-096 render pass; see docs/adr.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:39:13 +08:00

1.4 KiB

Every preset colour meets AA with its foreground

Decided 2026-11-20 for brutalist 0.7.7, from the website factory's final render pass (orchestrator WO-096, ADR 0084).

Context

The website factory compiles a customer's site onto this theme. The render pass screenshots every page at 1280 and 390 pixels and measures every button's text against its fill.

Decision

  • Every preset's primary, secondary, accent and destructive colour meets AA (4.5:1) with its foreground in both schemes. The render pass measures every button, and these pairs were under it: acid-lime dark destructive; concrete-red dark destructive; hazard-yellow dark destructive; riso-blue dark destructive. Each colour moved the least lightness (at most ten points) that reaches 4.5 with its own foreground, and a colour that could not switched its foreground to white or near-black; a token that held the same colour (the ring) moved with it. The orchestrator's brand colour step keeps whatever contrast a preset has, so a preset under AA also left a branded site under it.

Consequences

  • brutalist 0.7.7 is published to the dev registry; the orchestrator's internal/factory/themes.yaml pins it.
  • No schema field changes. A site keeps the colours it has until a preset is applied again.

Keywords: brutalist, presets, AA, button contrast, primaryForeground, accentForeground, secondaryForeground, destructiveForeground, WO-096, website factory, render pass