Commit 96dfda5
fix(design-tokens): add gotchas for @theme var resolution and default mode inversion
- @theme generates Tailwind utilities, NOT CSS custom properties on :root.
If :root references var() values only defined in @theme, they resolve to
undefined at runtime — all text/backgrounds go white.
- Before refactoring a site's color system, verify its existing aesthetic
direction. Dark-first sites break if :root is set to light values.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>1 parent b2e8bf8 commit 96dfda5
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
0 commit comments