The toggle changed data-theme but the preview stayed dark: applyColorScheme resolves donor scales from the instance's EFFECTIVE mode (#resolveDonorScales ignores the per-call mode option), and the boot had no modeSource — so the scheme always derived dark neutrals/surfaces and overrode the foundation's light tokens. Bound a modeSource to the `mode` state (grafito pattern) + fire its listeners on change, so the instance mode follows the toggle and the scheme re-derives correctly. Verified: surface oklch(0.21)↔(0.98), content flips, both modes read cleanly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>active-uix
parent
f47b794b2a
commit
27050a5a11
Loading…
Reference in new issue