chore: add design-token usage guardrail and allowlist

Add check-design-token-usage.mjs, wire npm scripts, lint-staged, and CI
frontend job. Allowlist WordCarousel and Terminal for required hex.
Strip redundant ds:allow comments from Terminal theme.

Made-with: Cursor
This commit is contained in:
Douglas 2026-04-23 11:51:04 +01:00
parent b589f3c0b5
commit aa888e5ea2
6 changed files with 217 additions and 4 deletions

View file

@ -67,6 +67,9 @@ jobs:
- name: Check Electron Access Guard
run: bash scripts/check-electron-access.sh
- name: Design tokens (engine + no hard-coded colors in UI)
run: npm run check:design-tokens
pytest:
name: Run Python Tests
runs-on: ubuntu-latest