diff --git a/docs/adr/0005-the-eyebrow-lines-up-with-the-headline.md b/docs/adr/0005-the-eyebrow-lines-up-with-the-headline.md new file mode 100644 index 0000000..0ababa5 --- /dev/null +++ b/docs/adr/0005-the-eyebrow-lines-up-with-the-headline.md @@ -0,0 +1,19 @@ +# The eyebrow lines up with the headline, and the photo scrim is drawn inline + +Decided 2026-11-22 for noir 0.4.7, from the website factory's launch runs (orchestrator WO-101, ADR 0092). + +## Context + +The website factory compiles a customer's site onto this theme. Twelve launch sites built on dev on 2026-11-22 showed defects on their home pages, recorded in the orchestrator's `docs/works/evidence/WO-090/runs/RESULTS.md`; the render pass now also renders a 60 to 80 character headline with long words on every theme. + +## Decision + +- A left-aligned hero eyebrow has no leading rule. The rule before the eyebrow text pushed it right of the headline on the split and left-aligned heroes, as it did by 16 pixels on art-deco and magazine-bold, whose hero markup noir shares; the centred hero keeps a rule on each side. +- The scrim of the light hero overlay is an inline 60% black. As the class `bg-black/60` it depended on the site's Tailwind build having picked the class up from the theme, and on a freshly built site it had not: the white hero text measured 2.1 to 3.5 on a bright venue photo in the long-headline render. + +## Consequences + +- noir 0.4.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. Production sites on this theme pick the change up with the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.4.7 (orchestrator `docs/works/evidence/WO-101/theme-regression/`). + +Keywords: eyebrow, kicker, noir-rule, scrim, bg-black/60, overlayColor light, contrast, WO-101, website factory, launch runs, noir diff --git a/plugin.mod b/plugin.mod index 4806dec..4b6f4c8 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "noir" display_name = "Noir" scope = "@themes" -version = "0.4.6" +version = "0.4.7" description = "Detective and true-crime dossier theme: case-file cards, typewriter type, redaction bars, evidence board and film grain. High-key gallery by day, darkroom black by night." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/noir/hero.ninjatpl b/templates/overrides/noir/hero.ninjatpl index 2fcd8f7..38b05da 100644 --- a/templates/overrides/noir/hero.ninjatpl +++ b/templates/overrides/noir/hero.ninjatpl @@ -12,7 +12,7 @@ {# With a background image the content sits on a dark grayscale photo + dark scrim in BOTH modes, so onImg switches text to light utility classes. #} {% set showOverlay = hasImage %} {% macro herocontent(align, onImg) %} -{% if eyebrowText %}
{{ eyebrowText }}
{% endif %} +{% if eyebrowText %}
{% if align == "center" %}{% endif %}{{ eyebrowText }}
{% endif %} {% if headlineText %}

{{ headlineText }}

{% endif %} {% if subText %}

{{ subText }}

{% endif %} {% if descText %}

{{ descText }}

{% endif %} @@ -34,7 +34,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, hasImage) }}
{% endif %}