themes-pastel-dream/docs/adr/0005-the-first-preset-primary-reads-as-text-on-the-background.md
Alex Dunmow d991ddc291 fix: website factory launch run defects (0.5.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 19:00:46 +08:00

1.9 KiB

The first preset's primary reads as text on the background

Decided 2026-11-22 for pastel-dream 0.5.8, from the website factory's render pass over all thirty-six blueprint and theme pairs (orchestrator WO-101, ADR 0092).

Context

The website factory compiles a customer's site onto this theme. Its render pass measures every button's text against the button's own fill or, for an outline button, against the page. On the childcare-education and health-wellness home pages the outline hero button ("See our programs", "View treatments") draws its label in the primary colour on the page background, and in the light scheme of morning-haze, the first preset, that pair measured 4.41. ADR 0004 brought every preset colour to AA with its own foreground; it did not measure the primary against the background.

Decision

  • morning-haze's light primary (and the ring that follows it) moves from 340 58% 52% to 340 58% 50%: 4.69 against the background and 4.81 with its foreground, the least lightness move that clears AA with room for rendering.

Consequences

  • pastel-dream 0.5.8 is published to the dev registry; the orchestrator's internal/factory/themes.yaml pins it.
  • No schema field changes. A site with no stored theme setting renders morning-haze live and takes the darker rose with the automatic theme update; a site that applied a preset or saved its colours keeps them. The regression check for sites the factory did not build compared the production release with 0.5.8 (orchestrator docs/works/evidence/WO-101/theme-regression/).
  • Other presets of this and other themes still have a primary under 4.5 against their background (peach-blossom 3.17, matcha-cream 4.47); the render pass checks the first preset of each pair and flagged only this one.

Keywords: presets, morning-haze, primary, ring, outline button, button text, contrast, AA, background, WO-101, website factory, render pass, pastel-dream