From 51f2519ca976c367e0ef3330aade3ca024a20af0 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Fri, 20 Nov 2026 03:51:08 +0800 Subject: [PATCH] fix: render whole sections for factory-compiled sites (0.4.3) Co-Authored-By: Claude Opus 5.5 --- ...0002-the-light-hero-scrim-meets-contrast.md | 18 ++++++++++++++++++ plugin.mod | 2 +- templates/overrides/coffee/hero.ninjatpl | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 docs/adr/0002-the-light-hero-scrim-meets-contrast.md diff --git a/docs/adr/0002-the-light-hero-scrim-meets-contrast.md b/docs/adr/0002-the-light-hero-scrim-meets-contrast.md new file mode 100644 index 0000000..9d27683 --- /dev/null +++ b/docs/adr/0002-the-light-hero-scrim-meets-contrast.md @@ -0,0 +1,18 @@ +# The light hero scrim meets contrast on coffee + +Decided 2026-11-20 for coffee 0.4.3, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADRs 0001 and 0002 shipped. + +## Context + +The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone. + +## Decision + +- The "light" hero scrim is the theme background at 82% opacity, set with an inline style. At 60% the muted subheadline measured 2.2:1 against a real photo in the render review, under the AA minimum; the inline style also keeps the scrim independent of which opacity classes the generated stylesheet holds. + +## Consequences + +- coffee 0.4.3 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. A site that sets the old values renders as before wherever it has an image. + +Keywords: coffee, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review diff --git a/plugin.mod b/plugin.mod index 2dc0b58..edb00b5 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "coffee" display_name = "Coffee" scope = "@themes" -version = "0.4.2" +version = "0.4.3" description = "Warm, hand-crafted theme for cafes, bakeries, and slow-craft makers — kraft paper, doodle illustrations, and roasted browns." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/coffee/hero.ninjatpl b/templates/overrides/coffee/hero.ninjatpl index f306857..5022104 100644 --- a/templates/overrides/coffee/hero.ninjatpl +++ b/templates/overrides/coffee/hero.ninjatpl @@ -30,7 +30,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 %}