diff --git a/docs/adr/0003-hero-text-stays-light-on-a-photo.md b/docs/adr/0003-hero-text-stays-light-on-a-photo.md new file mode 100644 index 0000000..100fe90 --- /dev/null +++ b/docs/adr/0003-hero-text-stays-light-on-a-photo.md @@ -0,0 +1,18 @@ +# Hero text stays light on a photo on brutalist + +Decided 2026-11-20 for brutalist 0.7.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 + +- Under the "light" overlay the hero headline keeps the foreground colour. The photo treatment (background colour with `mix-blend-mode: difference`) is meant for a bare photo and turned the headline pale grey on the light scrim; `data-has-media` is now true only for a photo without that scrim. + +## Consequences + +- brutalist 0.7.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: brutalist, 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 1d29d80..8666ff9 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "brutalist" display_name = "Brutalist" scope = "@themes" -version = "0.7.3" +version = "0.7.4" description = "Concrete, oversized type, hard 12-col grid theme for design studios, architecture firms and art galleries." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/brutalist/hero.ninjatpl b/templates/overrides/brutalist/hero.ninjatpl index 4acce12..1d8ac29 100644 --- a/templates/overrides/brutalist/hero.ninjatpl +++ b/templates/overrides/brutalist/hero.ninjatpl @@ -9,7 +9,7 @@ {% set sUrl = ctaSecondary.url %} {% set variant = template|default:"centered" %} {% set hasImage = backgroundImage %} -
+
{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}
{% endif %}