fix: website factory render pass polish (0.4.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:
parent
f941b154ec
commit
ea179dc34b
19
docs/adr/0005-the-hero-scrim-lets-the-photo-show.md
Normal file
19
docs/adr/0005-the-hero-scrim-lets-the-photo-show.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# The hero scrim lets the photo show
|
||||||
|
|
||||||
|
Decided 2026-11-20 for kindergarten 0.4.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 text over images and every button against what is behind it.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- The light hero scrim is a radial gradient of the theme background centred on the hero text (at 35% across for the left-aligned hero): 84% at the centre, 80% out to 55% of the radius and 40% at the corners. The flat 82% scrim of the last release met contrast but washed the photo out; the text keeps the same backing while the photo reads at the edges. The render harness measures every text element over the photo (orchestrator WO-096).
|
||||||
|
- 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: bluebird dark destructive; bluebird light accent; bluebird light destructive; bluebird light primary; bubblegum dark destructive; bubblegum light destructive; bubblegum light primary; crayon-box dark destructive; crayon-box dark secondary; crayon-box light destructive; crayon-box light secondary; meadow dark destructive; meadow dark secondary; meadow light destructive; meadow light primary; meadow light secondary; sunny-recess dark destructive; sunny-recess dark primary; sunny-recess light destructive; sunny-recess light primary; sunny-recess light secondary. 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
|
||||||
|
|
||||||
|
- kindergarten 0.4.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes.
|
||||||
|
|
||||||
|
Keywords: presets, AA, button contrast, primaryForeground, accentForeground, kindergarten, hero, overlayColor, scrim, radial-gradient, contrast, WO-096, website factory, render pass
|
||||||
50
presets.json
50
presets.json
@ -18,13 +18,13 @@
|
|||||||
"popoverForeground": "222 47% 16%",
|
"popoverForeground": "222 47% 16%",
|
||||||
"primary": "222 80% 54%",
|
"primary": "222 80% 54%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 100%",
|
||||||
"secondary": "4 78% 57%",
|
"secondary": "4 78% 50%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 100%",
|
||||||
"muted": "48 40% 93%",
|
"muted": "48 40% 93%",
|
||||||
"mutedForeground": "222 20% 40%",
|
"mutedForeground": "222 20% 40%",
|
||||||
"accent": "45 96% 56%",
|
"accent": "45 96% 56%",
|
||||||
"accentForeground": "222 50% 14%",
|
"accentForeground": "222 50% 14%",
|
||||||
"destructive": "0 84% 55%",
|
"destructive": "0 84% 50%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 100%",
|
||||||
"border": "222 25% 86%",
|
"border": "222 25% 86%",
|
||||||
"input": "48 30% 90%",
|
"input": "48 30% 90%",
|
||||||
@ -40,13 +40,13 @@
|
|||||||
"primary": "218 90% 66%",
|
"primary": "218 90% 66%",
|
||||||
"primaryForeground": "224 46% 9%",
|
"primaryForeground": "224 46% 9%",
|
||||||
"secondary": "4 84% 64%",
|
"secondary": "4 84% 64%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 9%",
|
||||||
"muted": "224 34% 17%",
|
"muted": "224 34% 17%",
|
||||||
"mutedForeground": "220 20% 70%",
|
"mutedForeground": "220 20% 70%",
|
||||||
"accent": "45 96% 62%",
|
"accent": "45 96% 62%",
|
||||||
"accentForeground": "224 46% 9%",
|
"accentForeground": "224 46% 9%",
|
||||||
"destructive": "0 84% 62%",
|
"destructive": "0 84% 62%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 9%",
|
||||||
"border": "224 32% 22%",
|
"border": "224 32% 22%",
|
||||||
"input": "224 32% 19%",
|
"input": "224 32% 19%",
|
||||||
"ring": "45 96% 62%"
|
"ring": "45 96% 62%"
|
||||||
@ -70,19 +70,19 @@
|
|||||||
"cardForeground": "20 40% 18%",
|
"cardForeground": "20 40% 18%",
|
||||||
"popover": "0 0% 100%",
|
"popover": "0 0% 100%",
|
||||||
"popoverForeground": "20 40% 18%",
|
"popoverForeground": "20 40% 18%",
|
||||||
"primary": "8 82% 56%",
|
"primary": "8 82% 48%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 100%",
|
||||||
"secondary": "205 75% 52%",
|
"secondary": "205 75% 43%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 100%",
|
||||||
"muted": "40 45% 92%",
|
"muted": "40 45% 92%",
|
||||||
"mutedForeground": "20 20% 40%",
|
"mutedForeground": "20 20% 40%",
|
||||||
"accent": "42 96% 55%",
|
"accent": "42 96% 55%",
|
||||||
"accentForeground": "20 45% 16%",
|
"accentForeground": "20 45% 16%",
|
||||||
"destructive": "0 84% 55%",
|
"destructive": "0 84% 50%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 100%",
|
||||||
"border": "32 35% 85%",
|
"border": "32 35% 85%",
|
||||||
"input": "40 35% 90%",
|
"input": "40 35% 90%",
|
||||||
"ring": "8 82% 56%"
|
"ring": "8 82% 48%"
|
||||||
},
|
},
|
||||||
"darkColors": {
|
"darkColors": {
|
||||||
"background": "222 45% 9%",
|
"background": "222 45% 9%",
|
||||||
@ -92,7 +92,7 @@
|
|||||||
"popover": "222 40% 13%",
|
"popover": "222 40% 13%",
|
||||||
"popoverForeground": "40 60% 95%",
|
"popoverForeground": "40 60% 95%",
|
||||||
"primary": "10 88% 64%",
|
"primary": "10 88% 64%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 9%",
|
||||||
"secondary": "205 82% 62%",
|
"secondary": "205 82% 62%",
|
||||||
"secondaryForeground": "222 45% 9%",
|
"secondaryForeground": "222 45% 9%",
|
||||||
"muted": "222 32% 17%",
|
"muted": "222 32% 17%",
|
||||||
@ -100,7 +100,7 @@
|
|||||||
"accent": "44 96% 62%",
|
"accent": "44 96% 62%",
|
||||||
"accentForeground": "222 45% 9%",
|
"accentForeground": "222 45% 9%",
|
||||||
"destructive": "0 84% 62%",
|
"destructive": "0 84% 62%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 9%",
|
||||||
"border": "222 30% 22%",
|
"border": "222 30% 22%",
|
||||||
"input": "222 30% 19%",
|
"input": "222 30% 19%",
|
||||||
"ring": "44 96% 62%"
|
"ring": "44 96% 62%"
|
||||||
@ -124,19 +124,19 @@
|
|||||||
"cardForeground": "218 45% 16%",
|
"cardForeground": "218 45% 16%",
|
||||||
"popover": "0 0% 100%",
|
"popover": "0 0% 100%",
|
||||||
"popoverForeground": "218 45% 16%",
|
"popoverForeground": "218 45% 16%",
|
||||||
"primary": "212 84% 52%",
|
"primary": "212 84% 48%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 100%",
|
||||||
"secondary": "45 95% 55%",
|
"secondary": "45 95% 55%",
|
||||||
"secondaryForeground": "218 50% 14%",
|
"secondaryForeground": "218 50% 14%",
|
||||||
"muted": "205 40% 93%",
|
"muted": "205 40% 93%",
|
||||||
"mutedForeground": "218 22% 42%",
|
"mutedForeground": "218 22% 42%",
|
||||||
"accent": "175 70% 42%",
|
"accent": "175 70% 42%",
|
||||||
"accentForeground": "0 0% 100%",
|
"accentForeground": "0 0% 9%",
|
||||||
"destructive": "0 84% 55%",
|
"destructive": "0 84% 50%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 100%",
|
||||||
"border": "210 30% 86%",
|
"border": "210 30% 86%",
|
||||||
"input": "205 30% 90%",
|
"input": "205 30% 90%",
|
||||||
"ring": "212 84% 52%"
|
"ring": "212 84% 48%"
|
||||||
},
|
},
|
||||||
"darkColors": {
|
"darkColors": {
|
||||||
"background": "220 48% 9%",
|
"background": "220 48% 9%",
|
||||||
@ -154,7 +154,7 @@
|
|||||||
"accent": "172 80% 52%",
|
"accent": "172 80% 52%",
|
||||||
"accentForeground": "220 48% 9%",
|
"accentForeground": "220 48% 9%",
|
||||||
"destructive": "0 84% 62%",
|
"destructive": "0 84% 62%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 9%",
|
||||||
"border": "220 32% 22%",
|
"border": "220 32% 22%",
|
||||||
"input": "220 32% 19%",
|
"input": "220 32% 19%",
|
||||||
"ring": "172 80% 52%"
|
"ring": "172 80% 52%"
|
||||||
@ -178,19 +178,19 @@
|
|||||||
"cardForeground": "140 35% 15%",
|
"cardForeground": "140 35% 15%",
|
||||||
"popover": "0 0% 100%",
|
"popover": "0 0% 100%",
|
||||||
"popoverForeground": "140 35% 15%",
|
"popoverForeground": "140 35% 15%",
|
||||||
"primary": "145 62% 40%",
|
"primary": "145 62% 32%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 100%",
|
||||||
"secondary": "25 88% 55%",
|
"secondary": "25 88% 55%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 9%",
|
||||||
"muted": "90 30% 92%",
|
"muted": "90 30% 92%",
|
||||||
"mutedForeground": "140 18% 38%",
|
"mutedForeground": "140 18% 38%",
|
||||||
"accent": "48 95% 55%",
|
"accent": "48 95% 55%",
|
||||||
"accentForeground": "140 40% 14%",
|
"accentForeground": "140 40% 14%",
|
||||||
"destructive": "0 84% 55%",
|
"destructive": "0 84% 50%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 100%",
|
||||||
"border": "110 25% 84%",
|
"border": "110 25% 84%",
|
||||||
"input": "90 25% 89%",
|
"input": "90 25% 89%",
|
||||||
"ring": "145 62% 40%"
|
"ring": "145 62% 32%"
|
||||||
},
|
},
|
||||||
"darkColors": {
|
"darkColors": {
|
||||||
"background": "200 40% 9%",
|
"background": "200 40% 9%",
|
||||||
@ -202,13 +202,13 @@
|
|||||||
"primary": "145 66% 52%",
|
"primary": "145 66% 52%",
|
||||||
"primaryForeground": "200 40% 9%",
|
"primaryForeground": "200 40% 9%",
|
||||||
"secondary": "25 90% 62%",
|
"secondary": "25 90% 62%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 9%",
|
||||||
"muted": "200 30% 17%",
|
"muted": "200 30% 17%",
|
||||||
"mutedForeground": "90 20% 70%",
|
"mutedForeground": "90 20% 70%",
|
||||||
"accent": "48 96% 62%",
|
"accent": "48 96% 62%",
|
||||||
"accentForeground": "200 40% 9%",
|
"accentForeground": "200 40% 9%",
|
||||||
"destructive": "0 84% 62%",
|
"destructive": "0 84% 62%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 9%",
|
||||||
"border": "200 28% 22%",
|
"border": "200 28% 22%",
|
||||||
"input": "200 28% 19%",
|
"input": "200 28% 19%",
|
||||||
"ring": "48 96% 62%"
|
"ring": "48 96% 62%"
|
||||||
@ -232,7 +232,7 @@
|
|||||||
"cardForeground": "300 35% 18%",
|
"cardForeground": "300 35% 18%",
|
||||||
"popover": "0 0% 100%",
|
"popover": "0 0% 100%",
|
||||||
"popoverForeground": "300 35% 18%",
|
"popoverForeground": "300 35% 18%",
|
||||||
"primary": "330 80% 58%",
|
"primary": "330 80% 49%",
|
||||||
"primaryForeground": "0 0% 100%",
|
"primaryForeground": "0 0% 100%",
|
||||||
"secondary": "265 70% 60%",
|
"secondary": "265 70% 60%",
|
||||||
"secondaryForeground": "0 0% 100%",
|
"secondaryForeground": "0 0% 100%",
|
||||||
@ -240,11 +240,11 @@
|
|||||||
"mutedForeground": "300 18% 42%",
|
"mutedForeground": "300 18% 42%",
|
||||||
"accent": "42 95% 56%",
|
"accent": "42 95% 56%",
|
||||||
"accentForeground": "300 40% 16%",
|
"accentForeground": "300 40% 16%",
|
||||||
"destructive": "0 84% 55%",
|
"destructive": "0 84% 50%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 100%",
|
||||||
"border": "320 30% 88%",
|
"border": "320 30% 88%",
|
||||||
"input": "330 30% 92%",
|
"input": "330 30% 92%",
|
||||||
"ring": "330 80% 58%"
|
"ring": "330 80% 49%"
|
||||||
},
|
},
|
||||||
"darkColors": {
|
"darkColors": {
|
||||||
"background": "285 40% 9%",
|
"background": "285 40% 9%",
|
||||||
@ -262,7 +262,7 @@
|
|||||||
"accent": "45 96% 64%",
|
"accent": "45 96% 64%",
|
||||||
"accentForeground": "285 40% 9%",
|
"accentForeground": "285 40% 9%",
|
||||||
"destructive": "0 84% 62%",
|
"destructive": "0 84% 62%",
|
||||||
"destructiveForeground": "0 0% 100%",
|
"destructiveForeground": "0 0% 9%",
|
||||||
"border": "285 28% 23%",
|
"border": "285 28% 23%",
|
||||||
"input": "285 28% 20%",
|
"input": "285 28% 20%",
|
||||||
"ring": "45 96% 64%"
|
"ring": "45 96% 64%"
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
{% set align = "center" %}
|
{% set align = "center" %}
|
||||||
{% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %}
|
{% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %}
|
||||||
<section class="kg-hero {% if align == "center" %}kg-hero--center{% endif %}{% if class %} {{ class }}{% endif %}">
|
<section class="kg-hero {% if align == "center" %}kg-hero--center{% endif %}{% if class %} {{ class }}{% endif %}">
|
||||||
{% if hasImage %}<div class="kg-hero-media">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="kg-hero-overlay"{% if overlayColor == "light" %} style="background: hsl(var(--background) / 0.82);"{% endif %}></div>{% endif %}</div>{% else %}<div class="kg-hero-media" aria-hidden="true"><div class="kg-confetti-wrap"><div class="kg-confetti-fallback"></div><canvas class="kg-confetti-canvas"></canvas></div><span class="kg-hero-mascot"><span class="kg-mascot inline-block"><svg viewBox="0 0 200 200" width="150" height="150" role="img" aria-label="Pip the mascot"><circle cx="100" cy="115" r="70" fill="hsl(var(--accent))" stroke="hsl(var(--foreground))" stroke-width="4"></circle><circle cx="78" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="122" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="78" cy="98" r="3" fill="hsl(var(--background))"></circle><circle cx="122" cy="98" r="3" fill="hsl(var(--background))"></circle><path d="M 75 130 Q 100 155 125 130" stroke="hsl(var(--foreground))" stroke-width="5" fill="none" stroke-linecap="round"></path><circle cx="60" cy="115" r="6" fill="hsl(var(--secondary))"></circle><circle cx="140" cy="115" r="6" fill="hsl(var(--secondary))"></circle><path d="M 50 60 L 60 35 L 80 50 Z" fill="hsl(var(--primary))"></path><path d="M 150 60 L 140 35 L 120 50 Z" fill="hsl(var(--primary))"></path></svg></span></span></div>{% endif %}
|
{% if hasImage %}<div class="kg-hero-media">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="kg-hero-overlay"{% if overlayColor == "light" %} style="background: radial-gradient(ellipse at {% if variant == "left-aligned" %}35%{% else %}50%{% endif %} 50%, hsl(var(--background) / 0.86) 0%, hsl(var(--background) / 0.8) 50%, hsl(var(--background) / 0.2) 100%);"{% endif %}></div>{% endif %}</div>{% else %}<div class="kg-hero-media" aria-hidden="true"><div class="kg-confetti-wrap"><div class="kg-confetti-fallback"></div><canvas class="kg-confetti-canvas"></canvas></div><span class="kg-hero-mascot"><span class="kg-mascot inline-block"><svg viewBox="0 0 200 200" width="150" height="150" role="img" aria-label="Pip the mascot"><circle cx="100" cy="115" r="70" fill="hsl(var(--accent))" stroke="hsl(var(--foreground))" stroke-width="4"></circle><circle cx="78" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="122" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="78" cy="98" r="3" fill="hsl(var(--background))"></circle><circle cx="122" cy="98" r="3" fill="hsl(var(--background))"></circle><path d="M 75 130 Q 100 155 125 130" stroke="hsl(var(--foreground))" stroke-width="5" fill="none" stroke-linecap="round"></path><circle cx="60" cy="115" r="6" fill="hsl(var(--secondary))"></circle><circle cx="140" cy="115" r="6" fill="hsl(var(--secondary))"></circle><path d="M 50 60 L 60 35 L 80 50 Z" fill="hsl(var(--primary))"></path><path d="M 150 60 L 140 35 L 120 50 Z" fill="hsl(var(--primary))"></path></svg></span></span></div>{% endif %}
|
||||||
<div class="kg-hero-inner">
|
<div class="kg-hero-inner">
|
||||||
{% if eyebrowText %}<span class="kg-sticker">{{ eyebrowText }}</span>{% endif %}
|
{% if eyebrowText %}<span class="kg-sticker">{{ eyebrowText }}</span>{% endif %}
|
||||||
{% if headlineText %}<h1 class="kg-display kg-hero-title"><span class="kg-crayon-underline">{{ headlineText }}</span></h1>{% endif %}
|
{% if headlineText %}<h1 class="kg-display kg-hero-title"><span class="kg-crayon-underline">{{ headlineText }}</span></h1>{% endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user