fix: website factory render pass polish (0.4.4)

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 d9d3e37365
commit 85cac0f4f1
2 changed files with 30 additions and 12 deletions

View File

@ -0,0 +1,18 @@
# Every preset colour meets AA with its foreground
Decided 2026-11-20 for scifi-clean 0.4.4, 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: cleanroom dark accent; cleanroom dark destructive; cleanroom light accent; flightline dark accent; flightline dark destructive; flightline light accent; graphite-lab dark destructive; graphite-lab light accent; signal-cyan dark destructive; signal-cyan light accent; signal-cyan light primary. 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
- scifi-clean 0.4.4 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: scifi-clean, presets, AA, button contrast, primaryForeground, accentForeground, secondaryForeground, destructiveForeground, WO-096, website factory, render pass

View File

@ -26,7 +26,7 @@
"muted": "210 14% 94%", "muted": "210 14% 94%",
"mutedForeground": "215 12% 42%", "mutedForeground": "215 12% 42%",
"accent": "18 95% 55%", "accent": "18 95% 55%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 9%",
"destructive": "0 78% 50%", "destructive": "0 78% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "215 14% 86%", "border": "215 14% 86%",
@ -47,8 +47,8 @@
"muted": "220 12% 14%", "muted": "220 12% 14%",
"mutedForeground": "215 10% 60%", "mutedForeground": "215 10% 60%",
"accent": "18 100% 60%", "accent": "18 100% 60%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 9%",
"destructive": "0 80% 55%", "destructive": "0 80% 52%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "220 14% 20%", "border": "220 14% 20%",
"input": "220 14% 18%", "input": "220 14% 18%",
@ -82,7 +82,7 @@
"secondaryForeground": "220 40% 10%", "secondaryForeground": "220 40% 10%",
"muted": "210 16% 96%", "muted": "210 16% 96%",
"mutedForeground": "215 14% 38%", "mutedForeground": "215 14% 38%",
"accent": "18 92% 50%", "accent": "18 92% 43%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 100%",
"destructive": "0 78% 48%", "destructive": "0 78% 48%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
@ -104,8 +104,8 @@
"muted": "220 16% 13%", "muted": "220 16% 13%",
"mutedForeground": "215 12% 62%", "mutedForeground": "215 12% 62%",
"accent": "18 100% 62%", "accent": "18 100% 62%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 9%",
"destructive": "0 80% 58%", "destructive": "0 80% 52%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "220 18% 20%", "border": "220 18% 20%",
"input": "220 18% 18%", "input": "220 18% 18%",
@ -133,19 +133,19 @@
"cardForeground": "200 40% 11%", "cardForeground": "200 40% 11%",
"popover": "0 0% 100%", "popover": "0 0% 100%",
"popoverForeground": "200 40% 11%", "popoverForeground": "200 40% 11%",
"primary": "192 82% 38%", "primary": "192 82% 33%",
"primaryForeground": "0 0% 100%", "primaryForeground": "0 0% 100%",
"secondary": "195 22% 91%", "secondary": "195 22% 91%",
"secondaryForeground": "200 40% 16%", "secondaryForeground": "200 40% 16%",
"muted": "195 20% 94%", "muted": "195 20% 94%",
"mutedForeground": "200 14% 40%", "mutedForeground": "200 14% 40%",
"accent": "35 95% 50%", "accent": "35 95% 50%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 9%",
"destructive": "0 76% 48%", "destructive": "0 76% 48%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "195 18% 85%", "border": "195 18% 85%",
"input": "195 18% 87%", "input": "195 18% 87%",
"ring": "192 82% 38%" "ring": "192 82% 33%"
}, },
"darkColors": { "darkColors": {
"background": "198 30% 6%", "background": "198 30% 6%",
@ -162,7 +162,7 @@
"mutedForeground": "195 12% 60%", "mutedForeground": "195 12% 60%",
"accent": "38 100% 58%", "accent": "38 100% 58%",
"accentForeground": "200 40% 8%", "accentForeground": "200 40% 8%",
"destructive": "0 80% 58%", "destructive": "0 80% 52%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "198 20% 19%", "border": "198 20% 19%",
"input": "198 20% 17%", "input": "198 20% 17%",
@ -197,7 +197,7 @@
"muted": "220 12% 93%", "muted": "220 12% 93%",
"mutedForeground": "220 10% 42%", "mutedForeground": "220 10% 42%",
"accent": "24 80% 52%", "accent": "24 80% 52%",
"accentForeground": "0 0% 100%", "accentForeground": "0 0% 9%",
"destructive": "0 74% 48%", "destructive": "0 74% 48%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "220 12% 85%", "border": "220 12% 85%",
@ -219,7 +219,7 @@
"mutedForeground": "220 10% 60%", "mutedForeground": "220 10% 60%",
"accent": "26 88% 58%", "accent": "26 88% 58%",
"accentForeground": "220 20% 8%", "accentForeground": "220 20% 8%",
"destructive": "0 78% 56%", "destructive": "0 78% 52%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "220 12% 22%", "border": "220 12% 22%",
"input": "220 12% 20%", "input": "220 12% 20%",