Acceptance Criteria
site/content/_layout.md adds:tint-mode: dark
tint-lock: true
site/content/docs/_layout.md adds:tint-mode: auto
tint-lock: false
site/content/runes/_layout.md adds the same tint-mode: auto, tint-lock: falsesite/content/plan/docs/_layout.md adds the same tint-mode: auto, tint-lock: falsesite/content/plan/_layout.md (if it exists) does not unlock — /plan/* is plan-system marketing and correctly inherits the root's dark-locked default- After the change, navigating the site shows:
- Marketing pages (
/, /about, /blog/*, /plan/*) render in dark, regardless of system preference - Theme toggle hidden on marketing pages (per the locked contract)
- Docs pages (
/docs/*, /runes/*, /plan/docs/*) respect saved user preference; toggle visible - Navigating from a docs page (light, by user choice) to a marketing page → marketing renders dark; toggle hides
- Navigating back to a docs page → light returns; toggle reappears
- Visual regression / SSR snapshot for at least one page in each subtree confirms no flash of incorrect theme
Approach
This is a small content edit (frontmatter updates on four layout files) that puts the whole SPEC-052 machinery on stage.
The /plan/* routes are marketing pages for refrakt's planning system (the @refrakt-md/plan plugin and CLI), not the repo-root plan/ directory — that's dev-only and never rendered on the site. So /plan/* correctly inherits the root's dark-locked default with no special handling needed; only /plan/docs/_layout.md flips to auto.
Manual smoke test pass after deploying to dev server: click through every section of the site, confirm the toggle visibility flips at the expected boundaries, confirm no FOIT.
Dependencies
- WORK-211 — theme toggle exists and honours
data-tint-lock. - WORK-212, WORK-213, WORK-214 — cascade machinery shipping.
References
- SPEC-052 — "Refrakt Site Adoption" section with the configuration table
- Layout files:
site/content/_layout.md, site/content/docs/_layout.md, site/content/runes/_layout.md, site/content/plan/docs/_layout.md