diff --git a/docs/adr/0003-the-hero-scrim-lets-the-photo-show-and-the-footer-logo-sits-on-a-plate.md b/docs/adr/0003-the-hero-scrim-lets-the-photo-show-and-the-footer-logo-sits-on-a-plate.md new file mode 100644 index 0000000..910aae2 --- /dev/null +++ b/docs/adr/0003-the-hero-scrim-lets-the-photo-show-and-the-footer-logo-sits-on-a-plate.md @@ -0,0 +1,21 @@ +# The hero scrim lets the photo show, and the footer logo sits on a plate + +Decided 2026-11-20 for earthen 0.5.5, 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). +- An image logo in the footer sits on a plate of the theme background. The footer is the primary colour, and when the website factory sets the primary to the brand colour, a logo drawn in that colour vanished on it (orchestrator WO-086). +- 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: ember-loam dark destructive; mossbed dark destructive; mossbed light accent; sage-morning dark destructive; sage-morning light accent; wet-loam 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. +- On the primary-coloured call-to-action band the primary button is the background colour with foreground text. The accent button measured 1.8:1 to 2.6:1 against the band, so it had no visible edge. + +## Consequences + +- earthen 0.5.5 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, earthen, hero, overlayColor, scrim, radial-gradient, contrast, footer, logo, logo plate, brand colour, WO-096, website factory, render pass diff --git a/presets.json b/presets.json index e5212f0..a0a878a 100644 --- a/presets.json +++ b/presets.json @@ -22,7 +22,7 @@ "secondaryForeground": "120 25% 18%", "muted": "40 18% 92%", "mutedForeground": "100 12% 38%", - "accent": "18 55% 48%", + "accent": "18 55% 44%", "accentForeground": "40 30% 96%", "destructive": "8 70% 45%", "destructiveForeground": "40 30% 96%", @@ -45,7 +45,7 @@ "mutedForeground": "90 12% 60%", "accent": "18 65% 58%", "accentForeground": "120 18% 8%", - "destructive": "8 70% 50%", + "destructive": "8 70% 45%", "destructiveForeground": "40 25% 92%", "border": "120 12% 22%", "input": "120 12% 22%", @@ -111,7 +111,7 @@ "mutedForeground": "80 10% 58%", "accent": "25 70% 55%", "accentForeground": "90 20% 6%", - "destructive": "8 70% 50%", + "destructive": "8 70% 44%", "destructiveForeground": "60 20% 90%", "border": "90 12% 20%", "input": "90 12% 20%", @@ -143,7 +143,7 @@ "muted": "70 16% 90%", "mutedForeground": "110 10% 40%", "accent": "38 62% 48%", - "accentForeground": "40 30% 97%", + "accentForeground": "0 0% 9%", "destructive": "8 70% 45%", "destructiveForeground": "40 30% 96%", "border": "90 12% 80%", @@ -165,7 +165,7 @@ "mutedForeground": "90 10% 58%", "accent": "40 65% 56%", "accentForeground": "140 15% 9%", - "destructive": "8 70% 50%", + "destructive": "8 70% 44%", "destructiveForeground": "70 18% 90%", "border": "140 10% 22%", "input": "140 10% 22%", @@ -219,7 +219,7 @@ "mutedForeground": "30 14% 58%", "accent": "90 30% 52%", "accentForeground": "20 22% 7%", - "destructive": "6 72% 52%", + "destructive": "6 72% 44%", "destructiveForeground": "35 25% 90%", "border": "20 14% 21%", "input": "20 14% 21%", diff --git a/templates/overrides/earthen/cta.ninjatpl b/templates/overrides/earthen/cta.ninjatpl index 334b611..8abe397 100644 --- a/templates/overrides/earthen/cta.ninjatpl +++ b/templates/overrides/earthen/cta.ninjatpl @@ -7,7 +7,7 @@ {% if text %}

{{ text }}

{% endif %}
- {% if primaryUrl and primaryLabel %}{{ primaryLabel }}{% endif %} + {% if primaryUrl and primaryLabel %}{{ primaryLabel }}{% endif %} {% if secondaryUrl and secondaryLabel %}{{ secondaryLabel }}{% endif %}
diff --git a/templates/overrides/earthen/footer.ninjatpl b/templates/overrides/earthen/footer.ninjatpl index c4c7024..ff6dd33 100644 --- a/templates/overrides/earthen/footer.ninjatpl +++ b/templates/overrides/earthen/footer.ninjatpl @@ -9,13 +9,13 @@
{% if fl == "minimal" %}
-
{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %}{% if tagline %}{% endif %}
+
{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %}{% if tagline %}{% endif %}
{{ sociallinks("") }}
{{ legalbar() }} {% elif fl == "centered" %}
-{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %} +{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %} {% if tagline %}

{{ tagline }}

{% endif %} {% if columns %}{% endif %} @@ -26,7 +26,7 @@ {% else %}
-{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %} +{% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %} {% if tagline %}

{{ tagline }}

{% endif %} {% if address or email or phone %}
{% if address %}
{{ address }}
{% endif %}{% if email %}{% endif %}{% if phone %}{% endif %}
{% endif %} {{ sociallinks("mt-5") }} diff --git a/templates/overrides/earthen/hero.ninjatpl b/templates/overrides/earthen/hero.ninjatpl index f0fab70..b36f06e 100644 --- a/templates/overrides/earthen/hero.ninjatpl +++ b/templates/overrides/earthen/hero.ninjatpl @@ -33,7 +33,7 @@ {% set align = "center" %} {% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
-{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% endif %}
{{ herocontent(align) }}
{% endif %}