veza/packages/design-system/tokens
senke cb511afa6e refactor(design-system): finish Sprint 2 — light theme + 3 viz pigments canonized
Closes Sprint 2 100%. The drift is fully eliminated.

Light theme migration :
- packages/design-system/tokens/semantic/light.json now exhaustively mirrors
  the former apps/web/src/index.css [data-theme="light"] block byte-for-byte
  (~50 tuned values: bg/surface/border/text/accent/error/sage/gold/kin/live/
  shadow/glass/scrollbar/grain-opacity).
- apps/web/src/index.css [data-theme="light"] block reduced from 70 LOC to 5
  (only --primary-foreground shadcn override remains). 1398 -> 1334 LOC total.

3 viz pigments canonized :
- packages/design-system/tokens/primitive/color.json : added viz.sakura
  (#e0a0b8), viz.terminal (#3eaa5e), viz.magenta (#c840a0). Now 8 pigments
  total (5 principaux + 3 extras for charts >5 series).
- semantic/dark.json : sumi.viz exposes the 3 new pigments as well.
- components/charts/PieChart.tsx : DEFAULT_COLORS[5..7] now use
  var(--sumi-viz-{sakura,terminal,magenta}) — all hex literals eliminated.
  ESLint hex-color rule clean on this file.

Build OK (vite 13.3s). All --sumi-* aliases now sourced from tokens.css.
The only --sumi-* defined in index.css are app-specific shadcn shims
(--background, --foreground, etc. mapping shadcn vars to --sumi-*) and
runtime state (--sumi-patina-warmth, --sumi-grain-opacity for dark base).

Sprint 2 metrics : 32 -> 0 hex literals in apps/web/src.
Single source of truth = packages/design-system/tokens/*.json.
ESLint guardrail enforces it for new code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 16:57:12 +02:00
..
primitive refactor(design-system): finish Sprint 2 — light theme + 3 viz pigments canonized 2026-04-27 16:57:12 +02:00
semantic refactor(design-system): finish Sprint 2 — light theme + 3 viz pigments canonized 2026-04-27 16:57:12 +02:00