Commit Graph
10 Commits
Author SHA1 Message Date
Locust agent 757f29f6e9 feat(scripts): add theme contrast measurement harness and measured table
Add scripts/check-contrast.mjs, a plain Node script with no runtime
dependency and no test framework, that measures the WCAG 2.2 contrast
ratio of every theme token pair in the light and the dark theme.

- Read the light values from the :root block and the dark values from
  the .dark block of public/src/main.css, the only stylesheet in the
  build that declares the token values.
- Read the measured pairs from scripts/contrast-pairs.json, so the list
  is reviewable next to the script. Every pair states its own threshold
  and the harness rejects a threshold that disagrees with its category.
- Apply 4.5:1 for body text, 3:1 for large text and 3:1 for UI
  component boundaries, and exit non-zero naming every pair below its
  threshold with its token names, values, measured ratio and threshold.
- Report a token that is missing from a theme as a failure, not a skip.

Commit the measured table to docs/theme-contrast.md: 16 pairs, 32
measurements, 32 pass, 0 fail at commit 552d847.
2026-11-02 22:23:22 +00:00
locust 63e9613499 Merge locust/45f0eb1f-a4f6-4a5b-9467-7bb6cfb3a9cf 2026-11-02 17:30:25 +00:00
Locust agent 34f55f8dbf docs: complete the uncited-claim inventory for the assessment band copy and site claims 2026-11-02 17:29:20 +00:00
locust 1b590bd2ee Merge locust/45f0eb1f-a4f6-4a5b-9467-7bb6cfb3a9cf 2026-11-02 15:07:23 +00:00
Locust agent 153fb0ce58 docs: list assessment band copy and Principle 11 body in the uncited-claim list 2026-11-02 15:07:11 +00:00
Locust agent 39e300bddf docs: add the information architecture
Sections, pages, purposes, the old-to-new path map and the route meta contract that the router implements.
2026-11-02 14:45:45 +00:00
Locust agent e3bebca4f0 docs: capture the pre-redesign route list
Baseline captured from public/src/router/index.js, README.md and the GitHub Pages workflow at 9560c2c, before any route change.
2026-11-02 14:43:06 +00:00
Locust agent 53cd4d4f41 docs: fix cross-references and the reading note in the weak-point record 2026-11-02 13:46:59 +00:00
Locust agent 4ff30d606f docs: complete the uncited-claim and figure list in the weak-point record 2026-11-02 13:46:25 +00:00
Locust agent ad050be061 docs: add weak-point inventory for the BEAT manifesto 2026-11-02 13:43:17 +00:00