themes-brutalist/docs/adr/0001-compiled-sites-render-whole-sections.md
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

20 lines
1.3 KiB
Markdown

# 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