mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
scripts/build-tokens.ts emits src/v2/styles/tokens.css with explicit naming overrides for the special cases (--r-row-pad, --r-elev-*, --r-nav-h, abbreviated layout vars). tsx wired into devDeps; build:tokens script + predev/prebuild hooks keep the CSS in sync. Backfill missing tokens that lived only in CSS: --r-color-fav joins colorBrand, and the focus colors in colorDark / colorLight match the translucent values components actually consume (not the unused #ffffff / #111117 they used to declare). Drop the orphan --r-focus-ring-color (zero references in the codebase). Adopt --r-radius-card (14px) for RMenuPanel and RDialog instead of hard-coded 14px; switch a NotesTab badge from 10px to --r-radius-lg. Closes the "panels use 14px not --r-radius-lg" pitfall — the constitution no longer needs that footnote. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>