Compare commits

..

9 Commits

Author SHA1 Message Date
Alex Dunmow
f86dfe00c8 fix: website factory launch run defects (0.4.9)
Footer contact details, eyebrow alignment, long headlines, scrims and
grid rows found by the WO-101 render pass; see docs/adr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:27:50 +08:00
Alex Dunmow
cb3bf48c06 fix: website factory render pass polish (0.4.8)
Hero scrim, button and preset contrast and layout fixes found by the
WO-096 render pass; see docs/adr.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:39:13 +08:00
Alex Dunmow
2cf2ae521e bump to 0.4.8 2026-11-20 06:32:08 +08:00
Alex Dunmow
ae4b2c6ad1 bump to 0.4.7 2026-11-20 06:15:16 +08:00
Alex Dunmow
ef8567cc18 bump to 0.4.6 2026-11-20 06:05:07 +08:00
Alex Dunmow
78c681d342 bump to 0.4.5 2026-11-20 05:33:13 +08:00
Alex Dunmow
d5025abe5d fix: render whole sections for factory-compiled sites (0.4.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:10:01 +08:00
Alex Dunmow
9413979189 fix: render whole sections for factory-compiled sites (0.4.3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:51:14 +08:00
Alex Dunmow
0662651194 fix: render whole sections for factory-compiled sites (0.4.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:51:53 +08:00
11 changed files with 112 additions and 20 deletions

View File

@ -40,7 +40,7 @@
max-width: 80ch; max-width: 80ch;
} }
.terminal-prose a { .terminal-prose a:not([class]) {
color: hsl(var(--accent)); color: hsl(var(--accent));
text-decoration: underline; text-decoration: underline;
text-underline-offset: 0.2em; text-underline-offset: 0.2em;

View File

@ -0,0 +1,18 @@
# Compiled sites render whole sections on terminal
Decided 2026-11-20 for terminal 0.4.2, from the website factory's visual review (orchestrator WO-094, ADR 0078).
## 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
- rich-section renders one column with the text at a readable width when the section has no image. It used to keep a two-column grid with an empty media cell, so a compiled site whose about or contact section was waiting for a photo showed half the section blank.
## Consequences
- terminal 0.4.2 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

View File

@ -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

View File

@ -0,0 +1,18 @@
# The hero subheadline meets contrast over a photo on terminal
Decided 2026-11-20 for terminal 0.4.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
- Over a photo the hero subheadline uses the foreground colour. The muted colour measured 3.5:1 on the light scrim at phone width, under the AA minimum.
## Consequences
- terminal 0.4.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: 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

View File

@ -0,0 +1,20 @@
# The hero scrim lets the photo show
Decided 2026-11-20 for terminal 0.4.8, from the website factory's final render pass (orchestrator WO-096, ADR 0084).
## Context
The website factory compiles a customer's site onto this theme. The render pass screenshots every page at 1280 and 390 pixels and measures text over images and every button against what is behind it.
## Decision
- The light hero scrim is a radial gradient of the theme background centred on the hero text (at 35% across for the left-aligned hero): 84% at the centre, 80% out to 55% of the radius and 40% at the corners. The flat 82% scrim of the last release met contrast but washed the photo out; the text keeps the same backing while the photo reads at the edges. The render harness measures every text element over the photo (orchestrator WO-096).
- Every preset's primary, secondary, accent and destructive colour meets AA (4.5:1) with its foreground in both schemes. The render pass measures every button, and these pairs were under it: amber-crt dark destructive; amber-crt light accent; amber-crt light primary; ice-terminal dark destructive; ice-terminal light accent; magenta-hacker dark destructive; paper-tty dark destructive; phosphor-green dark destructive. Each colour moved the least lightness (at most ten points) that reaches 4.5 with its own foreground, and a colour that could not switched its foreground to white or near-black; a token that held the same colour (the ring) moved with it. The orchestrator's brand colour step keeps whatever contrast a preset has, so a preset under AA also left a branded site under it.
- Prose link colours (`.terminal-prose a`, in both the manifest CSS and `assets/style.css`) apply only to links without their own classes. The default page template wraps every section in the prose styles, so the blog index's active filter pill drew its label in the accent on its own dark fill.
## Consequences
- terminal 0.4.8 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes.
Keywords: terminal-prose, filter pill, presets, AA, button contrast, primaryForeground, accentForeground, terminal, hero, overlayColor, scrim, radial-gradient, contrast, WO-096, website factory, render pass

View File

@ -0,0 +1,18 @@
# The hero eyebrow keeps its contrast over a photo
Decided 2026-11-22 for terminal 0.4.9, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
## Context
The website factory compiles a customer's site onto this theme. The render pass now also renders a 60 to 80 character headline on every theme. On the blog-publication home page the long headline made the hero taller, the eyebrow chip ("$ A WEEKLY LETTER") moved out to where the radial light scrim is thin, and its primary text on the chip's 40% muted fill over the photo measured 3.4 at 1280 and 2.3 at 390 pixels.
## Decision
- Over a photo the eyebrow chip has an opaque background fill, so its text sits on the theme background whatever the photo does behind it. Without a photo the chip keeps its 40% muted fill.
## Consequences
- terminal 0.4.9 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.9 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: hero, eyebrow, terminal-eyebrow, bg-muted/40, bg-background, contrast, photo, scrim, long headline, WO-101, website factory, launch runs, terminal

View File

@ -166,7 +166,7 @@ css:
line-height: 1.7; line-height: 1.7;
} }
.terminal-prose a { .terminal-prose a:not([class]) {
color: hsl(var(--accent)); color: hsl(var(--accent));
text-decoration: underline; text-decoration: underline;
text-underline-offset: 0.2em; text-underline-offset: 0.2em;

View File

@ -2,7 +2,7 @@
name = "terminal" name = "terminal"
display_name = "Terminal" display_name = "Terminal"
scope = "@themes" scope = "@themes"
version = "0.4.1" version = "0.4.9"
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." 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" kind = "theme"
categories = ["templates"] categories = ["templates"]

View File

@ -46,7 +46,7 @@
"mutedForeground": "120 40% 50%", "mutedForeground": "120 40% 50%",
"accent": "120 100% 60%", "accent": "120 100% 60%",
"accentForeground": "0 0% 4%", "accentForeground": "0 0% 4%",
"destructive": "0 90% 55%", "destructive": "0 90% 48%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "120 60% 25%", "border": "120 60% 25%",
"input": "120 50% 18%", "input": "120 50% 18%",
@ -72,19 +72,19 @@
"cardForeground": "30 25% 15%", "cardForeground": "30 25% 15%",
"popover": "40 30% 99%", "popover": "40 30% 99%",
"popoverForeground": "30 25% 15%", "popoverForeground": "30 25% 15%",
"primary": "30 80% 40%", "primary": "30 80% 37%",
"primaryForeground": "40 30% 98%", "primaryForeground": "40 30% 98%",
"secondary": "38 25% 90%", "secondary": "38 25% 90%",
"secondaryForeground": "30 25% 22%", "secondaryForeground": "30 25% 22%",
"muted": "40 20% 91%", "muted": "40 20% 91%",
"mutedForeground": "30 15% 40%", "mutedForeground": "30 15% 40%",
"accent": "25 85% 43%", "accent": "25 85% 39%",
"accentForeground": "40 30% 98%", "accentForeground": "40 30% 98%",
"destructive": "0 70% 45%", "destructive": "0 70% 45%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "38 20% 78%", "border": "38 20% 78%",
"input": "38 20% 84%", "input": "38 20% 84%",
"ring": "30 80% 40%" "ring": "30 80% 37%"
}, },
"darkColors": { "darkColors": {
"background": "30 20% 4%", "background": "30 20% 4%",
@ -101,7 +101,7 @@
"mutedForeground": "38 50% 50%", "mutedForeground": "38 50% 50%",
"accent": "45 100% 60%", "accent": "45 100% 60%",
"accentForeground": "30 20% 4%", "accentForeground": "30 20% 4%",
"destructive": "0 90% 55%", "destructive": "0 90% 48%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "38 60% 28%", "border": "38 60% 28%",
"input": "38 50% 20%", "input": "38 50% 20%",
@ -157,7 +157,7 @@
"accent": "60 100% 70%", "accent": "60 100% 70%",
"accentForeground": "0 0% 5%", "accentForeground": "0 0% 5%",
"destructive": "0 90% 60%", "destructive": "0 90% 60%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 9%",
"border": "0 0% 30%", "border": "0 0% 30%",
"input": "0 0% 18%", "input": "0 0% 18%",
"ring": "0 0% 95%" "ring": "0 0% 95%"
@ -188,7 +188,7 @@
"secondaryForeground": "200 40% 20%", "secondaryForeground": "200 40% 20%",
"muted": "200 20% 92%", "muted": "200 20% 92%",
"mutedForeground": "200 15% 40%", "mutedForeground": "200 15% 40%",
"accent": "185 85% 32%", "accent": "185 85% 29%",
"accentForeground": "200 30% 98%", "accentForeground": "200 30% 98%",
"destructive": "0 70% 45%", "destructive": "0 70% 45%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
@ -211,7 +211,7 @@
"mutedForeground": "185 40% 52%", "mutedForeground": "185 40% 52%",
"accent": "175 95% 55%", "accent": "175 95% 55%",
"accentForeground": "200 40% 5%", "accentForeground": "200 40% 5%",
"destructive": "0 85% 55%", "destructive": "0 85% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "190 60% 26%", "border": "190 60% 26%",
"input": "190 50% 18%", "input": "190 50% 18%",
@ -266,7 +266,7 @@
"mutedForeground": "320 40% 55%", "mutedForeground": "320 40% 55%",
"accent": "285 90% 62%", "accent": "285 90% 62%",
"accentForeground": "300 25% 5%", "accentForeground": "300 25% 5%",
"destructive": "0 85% 58%", "destructive": "0 85% 50%",
"destructiveForeground": "0 0% 100%", "destructiveForeground": "0 0% 100%",
"border": "320 55% 28%", "border": "320 55% 28%",
"input": "320 45% 20%", "input": "320 45% 20%",

View File

@ -11,9 +11,9 @@
{% set hasImage = backgroundImage %} {% set hasImage = backgroundImage %}
{% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %} {% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %}
{% macro herocontent(align) %} {% macro herocontent(align) %}
{% if eyebrowText %}<span class="terminal-eyebrow inline-block mb-4 border border-border bg-muted/40 px-3 py-1">$ {{ eyebrowText }} <span aria-hidden="true" class="caret-blink">_</span></span>{% endif %} {% if eyebrowText %}<span class="terminal-eyebrow inline-block mb-4 border border-border {% if hasImage %}bg-background{% else %}bg-muted/40{% endif %} px-3 py-1">$ {{ eyebrowText }} <span aria-hidden="true" class="caret-blink">_</span></span>{% endif %}
{% if headlineText %}<h1 class="terminal-heading text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight text-foreground">{{ headlineText }}</h1>{% endif %} {% if headlineText %}<h1 class="terminal-heading text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight text-foreground">{{ headlineText }}</h1>{% endif %}
{% if subText %}<h2 class="mt-4 text-xl sm:text-2xl text-muted-foreground max-w-2xl{% if align == "center" %} mx-auto{% endif %}">{{ subText }}</h2>{% endif %} {% if subText %}<h2 class="mt-4 text-xl sm:text-2xl text-muted-foreground max-w-2xl{% if align == "center" %} mx-auto{% endif %}"{% if hasImage %} style="color:hsl(var(--foreground));"{% endif %}>{{ subText }}</h2>{% endif %}
{% if descText %}<p class="mt-4 max-w-xl leading-relaxed text-muted-foreground{% if align == "center" %} mx-auto{% endif %}">{{ descText }}</p>{% endif %} {% if descText %}<p class="mt-4 max-w-xl leading-relaxed text-muted-foreground{% if align == "center" %} mx-auto{% endif %}">{{ descText }}</p>{% endif %}
{% if pText or sText %}<div class="mt-8 flex flex-col sm:flex-row gap-4{% if align == "center" %} justify-center{% endif %}"> {% if pText or sText %}<div class="mt-8 flex flex-col sm:flex-row gap-4{% if align == "center" %} justify-center{% endif %}">
{% if pText and pUrl %}<a href="{{ pUrl }}" class="terminal-mono inline-flex items-center justify-center gap-2 border border-primary bg-primary px-6 py-3 font-semibold uppercase tracking-wider text-primary-foreground transition-colors hover:bg-transparent hover:text-primary">{{ pText }}</a>{% endif %} {% if pText and pUrl %}<a href="{{ pUrl }}" class="terminal-mono inline-flex items-center justify-center gap-2 border border-primary bg-primary px-6 py-3 font-semibold uppercase tracking-wider text-primary-foreground transition-colors hover:bg-transparent hover:text-primary">{{ pText }}</a>{% endif %}
@ -33,7 +33,7 @@
{% set align = "center" %} {% set align = "center" %}
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %} {% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
<section class="hero relative flex flex-col overflow-hidden bg-background text-foreground {% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-96{% else %}min-h-[75vh]{% endif %} {% if verticalAlign == "top" %}justify-start pt-20{% elif verticalAlign == "bottom" %}justify-end pb-20{% else %}justify-center{% endif %}{% if class %} {{ class }}{% endif %}"> <section class="hero relative flex flex-col overflow-hidden bg-background text-foreground {% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-96{% else %}min-h-[75vh]{% endif %} {% if verticalAlign == "top" %}justify-start pt-20{% elif verticalAlign == "bottom" %}justify-end pb-20{% else %}justify-center{% endif %}{% if class %} {{ class }}{% endif %}">
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="absolute inset-0 {% if overlayColor == "light" %}bg-background/60{% elif overlayColor == "primary" %}bg-primary/50{% elif overlayOpacity <= 30 %}bg-black/30{% elif overlayOpacity <= 50 %}bg-black/50{% elif overlayOpacity <= 70 %}bg-black/70{% else %}bg-black/80{% endif %}"></div>{% endif %}</div>{% else %}<div class="tty-rain-wrap z-0"><div class="tty-rain-fallback"></div><canvas class="tty-rain-canvas" aria-hidden="true"></canvas></div>{% endif %} {% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div{% if overlayColor == "light" %} style="background: radial-gradient(ellipse at {% if variant == "left-aligned" %}35%{% else %}50%{% endif %} 50%, hsl(var(--background) / 0.86) 0%, hsl(var(--background) / 0.8) 50%, hsl(var(--background) / 0.2) 100%);"{% endif %} class="absolute inset-0 {% if overlayColor == "light" %}{% elif overlayColor == "primary" %}bg-primary/50{% elif overlayOpacity <= 30 %}bg-black/30{% elif overlayOpacity <= 50 %}bg-black/50{% elif overlayOpacity <= 70 %}bg-black/70{% else %}bg-black/80{% endif %}"></div>{% endif %}</div>{% else %}<div class="tty-rain-wrap z-0"><div class="tty-rain-fallback"></div><canvas class="tty-rain-canvas" aria-hidden="true"></canvas></div>{% endif %}
<div aria-hidden="true" class="tty-scanlines pointer-events-none absolute inset-0 z-0"></div> <div aria-hidden="true" class="tty-scanlines pointer-events-none absolute inset-0 z-0"></div>
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}">{{ herocontent(align) }}</div> <div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}">{{ herocontent(align) }}</div>
</section> </section>

View File

@ -1,14 +1,14 @@
{# rich_section terminal override: mono eyebrow, heading, HUD-framed media, CTA. Field reads + {% img %} preserved. #} {# rich_section terminal override: mono eyebrow, heading, HUD-framed media, CTA. Field reads + {% img %} preserved. #}
<section class="py-16 md:py-24 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}"> <section class="py-16 md:py-24 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}">
<div class="mx-auto grid max-w-6xl items-center gap-10 px-4 md:grid-cols-2 md:gap-16"> <div class="mx-auto grid max-w-6xl items-center gap-10 px-4 {% if media %}md:grid-cols-2{% endif %} md:gap-16">
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}"> <div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %} {% if not media %}max-w-3xl{% endif %}">
{% if eyebrow %}<p class="terminal-mono text-xs font-semibold uppercase tracking-widest text-accent">{{ eyebrow }}</p>{% endif %} {% if eyebrow %}<p class="terminal-mono text-xs font-semibold uppercase tracking-widest text-accent">{{ eyebrow }}</p>{% endif %}
{% if heading %}<h2 class="terminal-heading mt-2 text-3xl font-semibold tracking-tight md:text-4xl" data-text="{{ heading }}">{{ heading }}</h2>{% endif %} {% if heading %}<h2 class="terminal-heading mt-2 text-3xl font-semibold tracking-tight md:text-4xl" data-text="{{ heading }}">{{ heading }}</h2>{% endif %}
{% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground">{{ body|safe }}</div>{% endif %} {% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground">{{ body|safe }}</div>{% endif %}
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="terminal-mono uppercase tracking-wider mt-6 inline-flex items-center gap-2 rounded-none bg-primary px-5 py-3 font-semibold text-primary-foreground transition-opacity hover:opacity-90">{{ ctaLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %} {% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="terminal-mono uppercase tracking-wider mt-6 inline-flex items-center gap-2 rounded-none bg-primary px-5 py-3 font-semibold text-primary-foreground transition-opacity hover:opacity-90">{{ ctaLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
</div> </div>
<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}"> {% if media %}<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
{% if media %}<div class="tty-corners overflow-hidden rounded-md border border-dashed border-primary/50 tty-frame">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>{% endif %} <div class="tty-corners overflow-hidden rounded-md border border-dashed border-primary/50 tty-frame">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>
</div> </div>{% endif %}
</div> </div>
</section> </section>