feat: bridge --cc-* tokens to tldraw --color-* variable layer; fix first-render theme fallback

This commit is contained in:
CC Worker
2026-05-31 22:56:31 +00:00
parent 0150ca3c32
commit 01a8a59349
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -1,2 +1,12 @@
@import url("@tldraw/tldraw/tldraw.css");
@import url('./cc-design-system.css');
.tl-container {
--color-panel: var(--cc-bg-panel);
--color-text: var(--cc-text-primary);
--color-muted: var(--cc-border);
--color-muted-1: var(--cc-border-strong);
--color-background: var(--cc-bg-canvas);
--color-selected: var(--cc-selected);
--color-accent: var(--cc-action-primary);
}