From 7fd81cbdfd2e1243bee3680947b93f4198bfed0c Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Fri, 20 Nov 2026 03:51:12 +0800 Subject: [PATCH] fix: render whole sections for factory-compiled sites (0.5.4) Co-Authored-By: Claude Opus 5.5 --- ...0003-the-light-hero-scrim-meets-contrast.md | 18 ++++++++++++++++++ plugin.mod | 2 +- templates/overrides/pastel-dream/hero.ninjatpl | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 docs/adr/0003-the-light-hero-scrim-meets-contrast.md diff --git a/docs/adr/0003-the-light-hero-scrim-meets-contrast.md b/docs/adr/0003-the-light-hero-scrim-meets-contrast.md new file mode 100644 index 0000000..aa75fec --- /dev/null +++ b/docs/adr/0003-the-light-hero-scrim-meets-contrast.md @@ -0,0 +1,18 @@ +# The light hero scrim meets contrast on pastel-dream + +Decided 2026-11-20 for pastel-dream 0.5.4, 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 + +- pastel-dream 0.5.4 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: pastel-dream, 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 453939c..278d1e3 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "pastel-dream" display_name = "Pastel Dream" scope = "@themes" -version = "0.5.3" +version = "0.5.4" description = "Soft bakery and patisserie theme — watercolor washes, scalloped edges, rounded menu cards, and seasonal specials in blush, berry, and lilac." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/pastel-dream/hero.ninjatpl b/templates/overrides/pastel-dream/hero.ninjatpl index e37c8a1..b223603 100644 --- a/templates/overrides/pastel-dream/hero.ninjatpl +++ b/templates/overrides/pastel-dream/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 %}