mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 08:56:41 +02:00
refactor(theming): re-apply theme validator suite after parallel rebase
The plan-doc commits129971ffc+9db044178dropped the audit-theme-tokens → validate-theme-variables rename, the validate-theme-tokens → validate-theme-utilities rename, the new validate-theme-parity script, brand-literals.md, and the corresponding package.json + lint-staged.config.js + themes.css wiring. The files still existed on disk (git mv changes survived) but were untracked. Restore the validator suite so `pnpm run validate:all` works again: - validate:theme-variables (CSS var names: --muted → --color-muted) - validate:theme-utilities (Tailwind: no white/N, no neutral palette) - validate:theme-parity (every --color-* in :root ⇔ .dark + each [data-theme="..."]) All three wired into validate:all and lint-staged. `pnpm run validate:all` is clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
766ad2ea8f
commit
430aa30cbf
7 changed files with 411 additions and 17 deletions
|
|
@ -35,12 +35,15 @@
|
|||
* ✅ color: hsl(var(--color-foreground));
|
||||
* ✅ background: hsl(var(--color-primary) / 0.12);
|
||||
*
|
||||
* 4. Brand-literal colors (period pink, observatory cosmic scenes, the
|
||||
* automations/spiral indigo→violet ramp, sport/category palettes, the
|
||||
* photo viewer's near-black backdrop, etc.) deliberately stay as
|
||||
* literal hex/rgba/hsl. They are NOT theme intent — they encode brand
|
||||
* or domain semantics that must look the same under every theme
|
||||
* variant. Don't migrate them to tokens.
|
||||
* 4. Brand-literal colors (period pink, photo-viewer near-black backdrop,
|
||||
* skilltree branch accents, spiral indigo→violet ramp, calc retro
|
||||
* skins, etc.) deliberately stay as literal hex/rgba/hsl. They are
|
||||
* NOT theme intent — they encode brand or domain semantics that must
|
||||
* look the same under every theme variant. Don't migrate them to
|
||||
* tokens. The complete inventory with per-module rationale lives in
|
||||
* packages/shared-tailwind/brand-literals.md — add to that register
|
||||
* when introducing a new literal, or prefer a theme token if the
|
||||
* colour is not domain-semantic.
|
||||
*
|
||||
* 5. Token names are stable. There is intentionally NO `--color-info`,
|
||||
* `--color-text`, `--color-destructive`, `--color-surface`, or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue