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>
This commit is contained in:
Alex Dunmow 2026-11-20 06:39:13 +08:00
parent d631b0f072
commit d91608e827
2 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,18 @@
# 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

View File

@ -46,7 +46,7 @@
"mutedForeground": "40 6% 65%", "mutedForeground": "40 6% 65%",
"accent": "4 86% 56%", "accent": "4 86% 56%",
"accentForeground": "0 0% 6%", "accentForeground": "0 0% 6%",
"destructive": "0 84% 60%", "destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "40 14% 93%", "border": "40 14% 93%",
"input": "40 14% 93%", "input": "40 14% 93%",
@ -101,7 +101,7 @@
"mutedForeground": "48 20% 65%", "mutedForeground": "48 20% 65%",
"accent": "48 100% 52%", "accent": "48 100% 52%",
"accentForeground": "0 0% 6%", "accentForeground": "0 0% 6%",
"destructive": "0 84% 55%", "destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "48 100% 88%", "border": "48 100% 88%",
"input": "48 100% 88%", "input": "48 100% 88%",
@ -156,7 +156,7 @@
"mutedForeground": "213 18% 66%", "mutedForeground": "213 18% 66%",
"accent": "222 92% 62%", "accent": "222 92% 62%",
"accentForeground": "222 20% 7%", "accentForeground": "222 20% 7%",
"destructive": "0 84% 60%", "destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "210 30% 92%", "border": "210 30% 92%",
"input": "210 30% 92%", "input": "210 30% 92%",
@ -211,7 +211,7 @@
"mutedForeground": "82 15% 66%", "mutedForeground": "82 15% 66%",
"accent": "84 82% 52%", "accent": "84 82% 52%",
"accentForeground": "90 12% 7%", "accentForeground": "90 12% 7%",
"destructive": "0 84% 60%", "destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "80 20% 92%", "border": "80 20% 92%",
"input": "80 20% 92%", "input": "80 20% 92%",