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>
This commit is contained in:
parent
d91608e827
commit
8e50336260
@ -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;
|
||||
|
||||
19
docs/adr/0007-the-hero-headline-fits-its-width.md
Normal file
19
docs/adr/0007-the-hero-headline-fits-its-width.md
Normal 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
|
||||
@ -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;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
name = "brutalist"
|
||||
display_name = "Brutalist"
|
||||
scope = "@themes"
|
||||
version = "0.7.7"
|
||||
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"]
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<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 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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user