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..ba5d5d7 --- /dev/null +++ b/docs/adr/0002-the-light-hero-scrim-meets-contrast.md @@ -0,0 +1,18 @@ +# The light hero scrim meets contrast on terminal + +Decided 2026-11-20 for terminal 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 + +- terminal 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: terminal, 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 35925f4..f5fae5f 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "terminal" display_name = "Terminal" scope = "@themes" -version = "0.4.2" +version = "0.4.3" description = "Phosphor-on-black TTY theme for dev tools and OSS docs. Window chrome, man-page article layouts, keybind tables, boot logs, monospace type, and a typed-terminal canvas hero. Paper-teletype light mode, phosphor dark mode." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/terminal/hero.ninjatpl b/templates/overrides/terminal/hero.ninjatpl index 796e995..453162d 100644 --- a/templates/overrides/terminal/hero.ninjatpl +++ b/templates/overrides/terminal/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 %}
{% else %}
{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}{% else %}
{% endif %}
{{ herocontent(align) }}