From d91608e82729d3f630bc0f644bfc99e520d22bbf Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Fri, 20 Nov 2026 06:39:13 +0800 Subject: [PATCH] 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 --- ...eset-colour-meets-aa-with-its-foreground.md | 18 ++++++++++++++++++ presets.json | 8 ++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 docs/adr/0006-every-preset-colour-meets-aa-with-its-foreground.md diff --git a/docs/adr/0006-every-preset-colour-meets-aa-with-its-foreground.md b/docs/adr/0006-every-preset-colour-meets-aa-with-its-foreground.md new file mode 100644 index 0000000..14e7cff --- /dev/null +++ b/docs/adr/0006-every-preset-colour-meets-aa-with-its-foreground.md @@ -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 diff --git a/presets.json b/presets.json index d726e3e..2617116 100644 --- a/presets.json +++ b/presets.json @@ -46,7 +46,7 @@ "mutedForeground": "40 6% 65%", "accent": "4 86% 56%", "accentForeground": "0 0% 6%", - "destructive": "0 84% 60%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "40 14% 93%", "input": "40 14% 93%", @@ -101,7 +101,7 @@ "mutedForeground": "48 20% 65%", "accent": "48 100% 52%", "accentForeground": "0 0% 6%", - "destructive": "0 84% 55%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "48 100% 88%", "input": "48 100% 88%", @@ -156,7 +156,7 @@ "mutedForeground": "213 18% 66%", "accent": "222 92% 62%", "accentForeground": "222 20% 7%", - "destructive": "0 84% 60%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "210 30% 92%", "input": "210 30% 92%", @@ -211,7 +211,7 @@ "mutedForeground": "82 15% 66%", "accent": "84 82% 52%", "accentForeground": "90 12% 7%", - "destructive": "0 84% 60%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "80 20% 92%", "input": "80 20% 92%",