themes-pastel-dream/docs/adr/0004-the-hero-scrim-lets-the-photo-show.md
Alex Dunmow b1fa584c22 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.3 KiB

The hero scrim lets the photo show

Decided 2026-11-20 for pastel-dream 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 berry-cream preset's primary (and ring) is 345 62% 49%, was 52%. Its white button text measured 4.497:1, a hair under AA, and the outline button's pink text over the hero photo 4.36:1.
  • 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: berry-cream dark destructive; berry-cream light accent; berry-cream light destructive; lavender-honey dark destructive; lavender-honey light destructive; lavender-honey light primary; matcha-cream dark destructive; matcha-cream light primary; morning-haze dark destructive; morning-haze light destructive; morning-haze light primary; peach-blossom dark destructive; peach-blossom light primary. 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

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

Keywords: presets, AA, button contrast, primaryForeground, accentForeground, pastel-dream, berry-cream, preset, primary, button contrast, hero, overlayColor, scrim, radial-gradient, contrast, WO-096, website factory, render pass