diff --git a/docs/adr/0003-every-preset-colour-meets-aa-with-its-foreground.md b/docs/adr/0003-every-preset-colour-meets-aa-with-its-foreground.md new file mode 100644 index 0000000..51877e5 --- /dev/null +++ b/docs/adr/0003-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 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 diff --git a/presets.json b/presets.json index 4e0a770..a6142ff 100644 --- a/presets.json +++ b/presets.json @@ -26,7 +26,7 @@ "muted": "210 14% 94%", "mutedForeground": "215 12% 42%", "accent": "18 95% 55%", - "accentForeground": "0 0% 100%", + "accentForeground": "0 0% 9%", "destructive": "0 78% 50%", "destructiveForeground": "0 0% 100%", "border": "215 14% 86%", @@ -47,8 +47,8 @@ "muted": "220 12% 14%", "mutedForeground": "215 10% 60%", "accent": "18 100% 60%", - "accentForeground": "0 0% 100%", - "destructive": "0 80% 55%", + "accentForeground": "0 0% 9%", + "destructive": "0 80% 52%", "destructiveForeground": "0 0% 100%", "border": "220 14% 20%", "input": "220 14% 18%", @@ -82,7 +82,7 @@ "secondaryForeground": "220 40% 10%", "muted": "210 16% 96%", "mutedForeground": "215 14% 38%", - "accent": "18 92% 50%", + "accent": "18 92% 43%", "accentForeground": "0 0% 100%", "destructive": "0 78% 48%", "destructiveForeground": "0 0% 100%", @@ -104,8 +104,8 @@ "muted": "220 16% 13%", "mutedForeground": "215 12% 62%", "accent": "18 100% 62%", - "accentForeground": "0 0% 100%", - "destructive": "0 80% 58%", + "accentForeground": "0 0% 9%", + "destructive": "0 80% 52%", "destructiveForeground": "0 0% 100%", "border": "220 18% 20%", "input": "220 18% 18%", @@ -133,19 +133,19 @@ "cardForeground": "200 40% 11%", "popover": "0 0% 100%", "popoverForeground": "200 40% 11%", - "primary": "192 82% 38%", + "primary": "192 82% 33%", "primaryForeground": "0 0% 100%", "secondary": "195 22% 91%", "secondaryForeground": "200 40% 16%", "muted": "195 20% 94%", "mutedForeground": "200 14% 40%", "accent": "35 95% 50%", - "accentForeground": "0 0% 100%", + "accentForeground": "0 0% 9%", "destructive": "0 76% 48%", "destructiveForeground": "0 0% 100%", "border": "195 18% 85%", "input": "195 18% 87%", - "ring": "192 82% 38%" + "ring": "192 82% 33%" }, "darkColors": { "background": "198 30% 6%", @@ -162,7 +162,7 @@ "mutedForeground": "195 12% 60%", "accent": "38 100% 58%", "accentForeground": "200 40% 8%", - "destructive": "0 80% 58%", + "destructive": "0 80% 52%", "destructiveForeground": "0 0% 100%", "border": "198 20% 19%", "input": "198 20% 17%", @@ -197,7 +197,7 @@ "muted": "220 12% 93%", "mutedForeground": "220 10% 42%", "accent": "24 80% 52%", - "accentForeground": "0 0% 100%", + "accentForeground": "0 0% 9%", "destructive": "0 74% 48%", "destructiveForeground": "0 0% 100%", "border": "220 12% 85%", @@ -219,7 +219,7 @@ "mutedForeground": "220 10% 60%", "accent": "26 88% 58%", "accentForeground": "220 20% 8%", - "destructive": "0 78% 56%", + "destructive": "0 78% 52%", "destructiveForeground": "0 0% 100%", "border": "220 12% 22%", "input": "220 12% 20%",