Repository navigation
docs(spec): plan #4745 Map the docs site theme to the design tokens - #7255
Conversation
An independent review found two faults that give a wrong result and one group that breaks an owner rule: - The theme sets data-md-color-scheme on the body element, so the selector :root[data-md-color-scheme="slate"] matched no element and the dark scheme would show the light tokens. The plan uses the attribute selector, and the map of the theme variables is under the two scheme selectors. - The implement Job has no Style Dictionary, and the job Design Tokens compares bytes. The docs dark config follows dark-explicit.json, and the Job writes the output as a byte copy of tokens-dark-explicit.css with its selector line replaced. - The headless check stays, with no install on the runner: Playwright and axe-playwright-python come from the docs group of uv.lock, the script starts the Google Chrome of the runner image, and axe-core gives the contrast of each text pair. Also: Source Serif 4 on the reading text with the sizes of DESIGN.md, no test of a zensical.toml value, the new cases in the modules of tests/design that the job Design Tokens runs, and the corrected cited lines.
a3610b4 to
cc723d8
Compare
|
Vetted and revised on 2026-11-26. An independent review found two faults that give a wrong result and one group that breaks an owner rule. The revision (commit
Decisions in the revision, for your judgement: Risk that stays: the implement Job cannot run a browser, so the first proof of group 6 is the job |
The docs site builds with Zensical since #5183, and its palette, fonts, code colors and favicon do not come from the design tokens of #4735. This change maps the Zensical theme variables to the token variables in one hand-written file that holds no color literal, adds a docs dark token file for the slate scheme, loads the three Source faces through the Google Fonts css2 API, and gives the code blocks, the focus outline, the breakpoints and the captions the rules of the design spec. The color literal rule and the constructs row now cover the docs theme tree, and the Docs Site Build checks the layout of the built site in both schemes at two widths.
Plans #4745
Change:
openspec/changes/4745-build-the-docs-site-theme-from/