Compare commits

...

9 Commits

Author SHA1 Message Date
Alex Dunmow
8e50336260 fix: website factory launch run defects (0.7.8)
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:47 +08:00
Alex Dunmow
d91608e827 fix: website factory render pass polish (0.7.7)
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
d631b0f072 bump to 0.7.7 2026-11-20 06:05:07 +08:00
Alex Dunmow
10ee3542b2 fix: render whole sections for factory-compiled sites (0.7.6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:00:56 +08:00
Alex Dunmow
aaefe3b04b fix: render whole sections for factory-compiled sites (0.7.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:51:15 +08:00
Alex Dunmow
a5757bc00f docs: name ADR 0003 for its decision
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:44:42 +08:00
Alex Dunmow
31880d3aa6 fix: render whole sections for factory-compiled sites (0.7.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:44:36 +08:00
Alex Dunmow
b7f3f678cb fix: render whole sections for factory-compiled sites (0.7.3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:18:22 +08:00
Alex Dunmow
5878766bc0 fix: render whole sections for factory-compiled sites (0.7.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:51:54 +08:00
13 changed files with 162 additions and 16 deletions

View File

@ -280,14 +280,22 @@
.brutalist-hero .headline {
font-family: var(--font-heading, "Space Grotesk", sans-serif);
font-weight: 700;
font-size: clamp(3rem, 22vw, 18rem);
font-size: clamp(2rem, min(var(--headline-word, 22vw), var(--headline-length, 22vw)), 18rem);
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
color: hsl(var(--foreground));
margin: 0;
overflow-wrap: anywhere;
}
.brutalist-hero .headline-mid { --headline-length: min(12vw, 9.5rem); }
.brutalist-hero .headline-long { --headline-length: min(8vw, 6.5rem); }
.brutalist-hero .headline-w7 { --headline-word: min(16vw, 12.5rem); }
.brutalist-hero .headline-w9 { --headline-word: min(12.5vw, 10rem); }
.brutalist-hero .headline-w11 { --headline-word: min(10.5vw, 8.25rem); }
.brutalist-hero .headline-w13 { --headline-word: min(9vw, 7rem); }
.brutalist-hero[data-has-media="true"] .headline {
color: hsl(var(--background));
mix-blend-mode: difference;

View File

@ -0,0 +1,19 @@
# Compiled sites render whole sections on brutalist
Decided 2026-11-20 for brutalist 0.7.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.
- The hero draws a scrim over its photo: the theme background at 75% for the "light" overlay, the primary colour for "primary", and black at 60% otherwise. It had none, so muted text over a busy photo failed contrast.
## Consequences
- brutalist 0.7.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: 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

View File

@ -0,0 +1,18 @@
# Second render review of compiled sites on brutalist
Decided 2026-11-20 for brutalist 0.7.3, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADR 0001 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 hero scrim from ADR 0001 is drawn with an inline style, because the Tailwind classes it used are not in the generated stylesheet and no scrim rendered.
## Consequences
- brutalist 0.7.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: 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

View File

@ -0,0 +1,18 @@
# The hero headline keeps its colour under a light scrim 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

View File

@ -0,0 +1,18 @@
# The light hero scrim meets contrast on brutalist
Decided 2026-11-20 for brutalist 0.7.5, 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
- brutalist 0.7.5 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

View File

@ -0,0 +1,18 @@
# Hero text over a photo uses the foreground colour on brutalist
Decided 2026-11-20 for brutalist 0.7.6, 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 4.48:1 on the light scrim at phone width, just under the AA minimum.
## Consequences
- brutalist 0.7.6 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

View File

@ -0,0 +1,18 @@
# Every preset colour meets AA with its foreground
Decided 2026-11-20 for brutalist 0.7.7, 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 every button's text against its fill.
## Decision
- 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: acid-lime dark destructive; concrete-red dark destructive; hazard-yellow dark destructive; riso-blue 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.
## Consequences
- brutalist 0.7.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. A site keeps the colours it has until a preset is applied again.
Keywords: brutalist, presets, AA, button contrast, primaryForeground, accentForeground, secondaryForeground, destructiveForeground, WO-096, website factory, render pass

View File

@ -0,0 +1,19 @@
# The hero headline fits its width
Decided 2026-11-22 for brutalist 0.7.8, 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
- The hero headline takes its size from its longest word and its length. The template adds `headline-w7`, `headline-w9`, `headline-w11` or `headline-w13` for each word of 7 to 8, 9 to 10, 11 to 12 and 13 or more letters, and `headline-mid` or `headline-long` past 20 and 40 characters; each sets a custom property, and the font size is the smaller of the two, between 2rem and the old 18rem. The sizes allow about 0.7em a letter for the uppercase display face, in viewport width and capped in rem by the 70rem column. `overflow-wrap: anywhere` breaks a word that is longer still. The old `clamp(3rem, 22vw, 18rem)` fitted about six letters, so Kova Studio's "RISOGRAPHED" and "IDENTITIES" ran off the right edge at 1280 and 390, and its ten-word headline filled two and a half screens. A short headline of short words keeps the old size.
- `assets/style.css` carries the same rules, since it is served after the site stylesheet and repeats the headline rule.
## Consequences
- brutalist 0.7.8 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.7.8 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: hero, headline, long headline, headline-w7, headline-w9, headline-w11, headline-w13, headline-mid, headline-long, clamp, overflow-wrap, clipped headline, WO-101, website factory, launch runs, brutalist

View File

@ -407,14 +407,24 @@ css:
.brutalist-hero .headline {
font-family: var(--font-heading, "Space Grotesk", sans-serif);
font-weight: 700;
font-size: clamp(3rem, 22vw, 18rem);
font-size: clamp(2rem, min(var(--headline-word, 22vw), var(--headline-length, 22vw)), 18rem);
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
color: hsl(var(--foreground));
margin: 0;
overflow-wrap: anywhere;
}
/* The longest word must fit the hero's width (about 0.7em a letter in uppercase Space Grotesk), and a long
headline takes fewer lines. Later word classes win, so the longest word sets the size. */
.brutalist-hero .headline-mid { --headline-length: min(12vw, 9.5rem); }
.brutalist-hero .headline-long { --headline-length: min(8vw, 6.5rem); }
.brutalist-hero .headline-w7 { --headline-word: min(16vw, 12.5rem); }
.brutalist-hero .headline-w9 { --headline-word: min(12.5vw, 10rem); }
.brutalist-hero .headline-w11 { --headline-word: min(10.5vw, 8.25rem); }
.brutalist-hero .headline-w13 { --headline-word: min(9vw, 7rem); }
.brutalist-hero[data-has-media="true"] .headline {
color: hsl(var(--background));
mix-blend-mode: difference;

View File

@ -2,7 +2,7 @@
name = "brutalist"
display_name = "Brutalist"
scope = "@themes"
version = "0.7.1"
version = "0.7.8"
description = "Concrete, oversized type, hard 12-col grid theme for design studios, architecture firms and art galleries."
kind = "theme"
categories = ["templates"]

View File

@ -46,7 +46,7 @@
"mutedForeground": "40 6% 65%",
"accent": "4 86% 56%",
"accentForeground": "0 0% 6%",
"destructive": "0 84% 60%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "40 14% 93%",
"input": "40 14% 93%",
@ -101,7 +101,7 @@
"mutedForeground": "48 20% 65%",
"accent": "48 100% 52%",
"accentForeground": "0 0% 6%",
"destructive": "0 84% 55%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "48 100% 88%",
"input": "48 100% 88%",
@ -156,7 +156,7 @@
"mutedForeground": "213 18% 66%",
"accent": "222 92% 62%",
"accentForeground": "222 20% 7%",
"destructive": "0 84% 60%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "210 30% 92%",
"input": "210 30% 92%",
@ -211,7 +211,7 @@
"mutedForeground": "82 15% 66%",
"accent": "84 82% 52%",
"accentForeground": "90 12% 7%",
"destructive": "0 84% 60%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "80 20% 92%",
"input": "80 20% 92%",

View File

@ -9,13 +9,13 @@
{% set sUrl = ctaSecondary.url %}
{% set variant = template|default:"centered" %}
{% set hasImage = backgroundImage %}
<section class="brutalist-hero relative overflow-hidden bg-background text-foreground{% if class %} {{ class }}{% endif %}" data-has-media="{% if hasImage %}true{% else %}false{% endif %}">
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}</div>{% endif %}
<section class="brutalist-hero relative overflow-hidden bg-background text-foreground{% if class %} {{ class }}{% endif %}" data-has-media="{% if hasImage and overlayColor != "light" %}true{% else %}false{% endif %}">
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}<div class="absolute inset-0" style="background: {% if overlayColor == "light" %}hsl(var(--background) / 0.82){% elif overlayColor == "primary" %}hsl(var(--primary) / 0.5){% else %}rgb(0 0 0 / 0.6){% endif %};"></div></div>{% endif %}
<div class="bru-wrap relative z-10 {% if variant == "centered" %}text-center{% endif %}">
<div style="max-width:70rem;{% if variant == "centered" %}margin:0 auto{% endif %}">
{% if eyebrowText %}<span class="bru-tag mb-6">{{ eyebrowText }}</span>{% endif %}
{% if headlineText %}<h1 class="headline">{{ headlineText }}</h1>{% endif %}
{% if subText %}<p class="mt-6" style="font-family:var(--font-heading,'Space Grotesk',sans-serif);font-weight:400;font-size:clamp(1.1rem,2vw,1.6rem);color:hsl(var(--muted-foreground));max-width:42rem;{% if variant == "centered" %}margin-left:auto;margin-right:auto{% endif %}">{{ subText }}</p>{% endif %}
{% if headlineText %}<h1 class="headline{% if headlineText|length > 40 %} headline-long{% elif headlineText|length > 20 %} headline-mid{% endif %}{% for w in headlineText|split:" " %}{% if w|length > 12 %} headline-w13{% elif w|length > 10 %} headline-w11{% elif w|length > 8 %} headline-w9{% elif w|length > 6 %} headline-w7{% endif %}{% endfor %}">{{ headlineText }}</h1>{% endif %}
{% if subText %}<p class="mt-6" style="font-family:var(--font-heading,'Space Grotesk',sans-serif);font-weight:400;font-size:clamp(1.1rem,2vw,1.6rem);color:hsl(var({% if hasImage %}--foreground{% else %}--muted-foreground{% endif %}));max-width:42rem;{% if variant == "centered" %}margin-left:auto;margin-right:auto{% endif %}">{{ subText }}</p>{% endif %}
{% if descText %}<p class="mt-4 text-lg text-muted-foreground" style="max-width:42rem;{% if variant == "centered" %}margin-left:auto;margin-right:auto{% endif %}">{{ descText }}</p>{% endif %}
{% if pText or sText %}<div class="mt-9 flex flex-col sm:flex-row gap-4 {% if variant == "centered" %}justify-center{% endif %}">{% if pText and pUrl %}<a href="{{ pUrl }}" class="bru-btn bru-btn-solid">{{ pText }}</a>{% endif %}{% if sText and sUrl %}<a href="{{ sUrl }}" class="bru-btn bru-btn-ghost">{{ sText }}</a>{% endif %}</div>{% endif %}
{% if trustLogos %}<div class="mt-12"><p class="bru-meta mb-4">Trusted by</p><div class="flex flex-wrap items-center gap-8 {% if variant == "centered" %}justify-center{% endif %}">{% for logo in trustLogos %}{% if logo.url %}<a href="{{ logo.url }}" target="_blank" rel="noopener noreferrer" class="opacity-70 hover:opacity-100 transition-opacity">{% img logo.image alt=logo.alt class="h-8 w-auto" %}</a>{% else %}{% img logo.image alt=logo.alt class="h-8 w-auto opacity-70" %}{% endif %}{% endfor %}</div></div>{% endif %}

View File

@ -1,14 +1,14 @@
{# brutalist rich-section override — split text/media with bordered media frame. Fields: background, mediaPosition, eyebrow, heading, body, ctaUrl, ctaLabel, media, mediaAlt. #}
<section class="bru-section {% 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="bru-wrap grid items-center gap-10 md:grid-cols-2 md:gap-16">
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}">
<div class="bru-wrap grid items-center gap-10 {% if media %}md:grid-cols-2{% endif %} md:gap-16">
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %} {% if not media %}max-w-3xl{% endif %}">
{% if eyebrow %}<span class="bru-tag mb-4">{{ eyebrow }}</span>{% endif %}
{% if heading %}<h2 class="bru-kicker" style="font-size:clamp(1.75rem,4vw,3rem)">{{ heading }}</h2>{% endif %}
{% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-accent [&_a]:underline [&_strong]:text-foreground">{{ body|safe }}</div>{% endif %}
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="bru-btn bru-btn-solid mt-6">{{ ctaLabel }} →</a>{% endif %}
</div>
<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
{% if media %}<div class="bru-slab bru-shadow overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>{% endif %}
</div>
{% if media %}<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
<div class="bru-slab bru-shadow overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>
</div>{% endif %}
</div>
</section>