diff --git a/docs/adr/0005-the-hero-scrim-lets-the-photo-show.md b/docs/adr/0005-the-hero-scrim-lets-the-photo-show.md new file mode 100644 index 0000000..4552d1b --- /dev/null +++ b/docs/adr/0005-the-hero-scrim-lets-the-photo-show.md @@ -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 diff --git a/presets.json b/presets.json index cb40247..95e167b 100644 --- a/presets.json +++ b/presets.json @@ -18,13 +18,13 @@ "popoverForeground": "222 47% 16%", "primary": "222 80% 54%", "primaryForeground": "0 0% 100%", - "secondary": "4 78% 57%", + "secondary": "4 78% 50%", "secondaryForeground": "0 0% 100%", "muted": "48 40% 93%", "mutedForeground": "222 20% 40%", "accent": "45 96% 56%", "accentForeground": "222 50% 14%", - "destructive": "0 84% 55%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "222 25% 86%", "input": "48 30% 90%", @@ -40,13 +40,13 @@ "primary": "218 90% 66%", "primaryForeground": "224 46% 9%", "secondary": "4 84% 64%", - "secondaryForeground": "0 0% 100%", + "secondaryForeground": "0 0% 9%", "muted": "224 34% 17%", "mutedForeground": "220 20% 70%", "accent": "45 96% 62%", "accentForeground": "224 46% 9%", "destructive": "0 84% 62%", - "destructiveForeground": "0 0% 100%", + "destructiveForeground": "0 0% 9%", "border": "224 32% 22%", "input": "224 32% 19%", "ring": "45 96% 62%" @@ -70,19 +70,19 @@ "cardForeground": "20 40% 18%", "popover": "0 0% 100%", "popoverForeground": "20 40% 18%", - "primary": "8 82% 56%", + "primary": "8 82% 48%", "primaryForeground": "0 0% 100%", - "secondary": "205 75% 52%", + "secondary": "205 75% 43%", "secondaryForeground": "0 0% 100%", "muted": "40 45% 92%", "mutedForeground": "20 20% 40%", "accent": "42 96% 55%", "accentForeground": "20 45% 16%", - "destructive": "0 84% 55%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "32 35% 85%", "input": "40 35% 90%", - "ring": "8 82% 56%" + "ring": "8 82% 48%" }, "darkColors": { "background": "222 45% 9%", @@ -92,7 +92,7 @@ "popover": "222 40% 13%", "popoverForeground": "40 60% 95%", "primary": "10 88% 64%", - "primaryForeground": "0 0% 100%", + "primaryForeground": "0 0% 9%", "secondary": "205 82% 62%", "secondaryForeground": "222 45% 9%", "muted": "222 32% 17%", @@ -100,7 +100,7 @@ "accent": "44 96% 62%", "accentForeground": "222 45% 9%", "destructive": "0 84% 62%", - "destructiveForeground": "0 0% 100%", + "destructiveForeground": "0 0% 9%", "border": "222 30% 22%", "input": "222 30% 19%", "ring": "44 96% 62%" @@ -124,19 +124,19 @@ "cardForeground": "218 45% 16%", "popover": "0 0% 100%", "popoverForeground": "218 45% 16%", - "primary": "212 84% 52%", + "primary": "212 84% 48%", "primaryForeground": "0 0% 100%", "secondary": "45 95% 55%", "secondaryForeground": "218 50% 14%", "muted": "205 40% 93%", "mutedForeground": "218 22% 42%", "accent": "175 70% 42%", - "accentForeground": "0 0% 100%", - "destructive": "0 84% 55%", + "accentForeground": "0 0% 9%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "210 30% 86%", "input": "205 30% 90%", - "ring": "212 84% 52%" + "ring": "212 84% 48%" }, "darkColors": { "background": "220 48% 9%", @@ -154,7 +154,7 @@ "accent": "172 80% 52%", "accentForeground": "220 48% 9%", "destructive": "0 84% 62%", - "destructiveForeground": "0 0% 100%", + "destructiveForeground": "0 0% 9%", "border": "220 32% 22%", "input": "220 32% 19%", "ring": "172 80% 52%" @@ -178,19 +178,19 @@ "cardForeground": "140 35% 15%", "popover": "0 0% 100%", "popoverForeground": "140 35% 15%", - "primary": "145 62% 40%", + "primary": "145 62% 32%", "primaryForeground": "0 0% 100%", "secondary": "25 88% 55%", - "secondaryForeground": "0 0% 100%", + "secondaryForeground": "0 0% 9%", "muted": "90 30% 92%", "mutedForeground": "140 18% 38%", "accent": "48 95% 55%", "accentForeground": "140 40% 14%", - "destructive": "0 84% 55%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "110 25% 84%", "input": "90 25% 89%", - "ring": "145 62% 40%" + "ring": "145 62% 32%" }, "darkColors": { "background": "200 40% 9%", @@ -202,13 +202,13 @@ "primary": "145 66% 52%", "primaryForeground": "200 40% 9%", "secondary": "25 90% 62%", - "secondaryForeground": "0 0% 100%", + "secondaryForeground": "0 0% 9%", "muted": "200 30% 17%", "mutedForeground": "90 20% 70%", "accent": "48 96% 62%", "accentForeground": "200 40% 9%", "destructive": "0 84% 62%", - "destructiveForeground": "0 0% 100%", + "destructiveForeground": "0 0% 9%", "border": "200 28% 22%", "input": "200 28% 19%", "ring": "48 96% 62%" @@ -232,7 +232,7 @@ "cardForeground": "300 35% 18%", "popover": "0 0% 100%", "popoverForeground": "300 35% 18%", - "primary": "330 80% 58%", + "primary": "330 80% 49%", "primaryForeground": "0 0% 100%", "secondary": "265 70% 60%", "secondaryForeground": "0 0% 100%", @@ -240,11 +240,11 @@ "mutedForeground": "300 18% 42%", "accent": "42 95% 56%", "accentForeground": "300 40% 16%", - "destructive": "0 84% 55%", + "destructive": "0 84% 50%", "destructiveForeground": "0 0% 100%", "border": "320 30% 88%", "input": "330 30% 92%", - "ring": "330 80% 58%" + "ring": "330 80% 49%" }, "darkColors": { "background": "285 40% 9%", @@ -262,7 +262,7 @@ "accent": "45 96% 64%", "accentForeground": "285 40% 9%", "destructive": "0 84% 62%", - "destructiveForeground": "0 0% 100%", + "destructiveForeground": "0 0% 9%", "border": "285 28% 23%", "input": "285 28% 20%", "ring": "45 96% 64%" diff --git a/templates/overrides/kindergarten/hero.ninjatpl b/templates/overrides/kindergarten/hero.ninjatpl index 354e899..8c419f9 100644 --- a/templates/overrides/kindergarten/hero.ninjatpl +++ b/templates/overrides/kindergarten/hero.ninjatpl @@ -13,7 +13,7 @@ {% set align = "center" %} {% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %}
-{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% else %}{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% else %}{% endif %}
{% if eyebrowText %}{{ eyebrowText }}{% endif %} {% if headlineText %}

{{ headlineText }}

{% endif %}