themes-editorial/docs/adr/0004-pages-read-wider-and-sections-keep-real-headings.md
Alex Dunmow 3f7026b01f fix: website factory render pass polish (0.5.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:12 +08:00

2.6 KiB

Pages read wider, and sections keep real headings

Decided 2026-11-20 for editorial 0.5.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 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).
  • The default page template lays sections out in a 76rem column (editorial-column--page) without the article prose styles; the 64ch measure, the paragraph indent and the prose link colours stay for articles. About, contact and blog pages squeezed every section into the article measure, indented every second paragraph of a section and drew the active blog filter pill's label in the accent on its dark fill (1.9:1). Prose link colours now apply only to links without their own classes.
  • Rich section and team headings are serif display headings at their stated size. The tracked small-caps label class set them at 0.72rem, so an inner page had no visible heading.
  • 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: book-paper dark accent; book-paper dark destructive; legal-pad dark destructive; nightdesk dark destructive; sepia-review 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

  • editorial 0.5.7 is published to the dev registry; the orchestrator's internal/factory/themes.yaml pins it.
  • No schema field changes.

Keywords: prose-editorial, category filter, pill, presets, AA, button contrast, primaryForeground, accentForeground, editorial, default template, editorial-column, editorial-column--page, rich-section, team, heading, editorial-caps, hero, scrim, radial-gradient, WO-096, website factory, render pass