fix(spa): align theme tokens with extension source of truth
Replace drifted token names (--wp-text-dim, --wp-text-faint, missing bg4/border2/text2-4/accent2 etc.) in src/manager/styles/theme.css with the full token set from src/components/shared/theme.css, and expand tailwind.config.js to expose all tokens so Task 2+ SPA views can consume them without naming debt.
This commit is contained in:
@@ -1,20 +1,53 @@
|
||||
/* Shared theme tokens — keep in sync with src/components/shared/theme.css. */
|
||||
/* Theme tokens shared with the extension.
|
||||
* Mirrors src/components/shared/theme.css verbatim — keep them in sync.
|
||||
* Brand palette pinned to public/images/favicon.svg — indigo / violet / teal.
|
||||
*/
|
||||
:root {
|
||||
/* Backgrounds — match ComfyUI's node interior */
|
||||
--wp-bg: #1e1e1e;
|
||||
--wp-bg2: #262626;
|
||||
--wp-bg3: #2e2e2e;
|
||||
--wp-bg2: #232323;
|
||||
--wp-bg3: #2a2a2a;
|
||||
--wp-bg4: #333;
|
||||
|
||||
/* Borders */
|
||||
--wp-border: #3a3a3a;
|
||||
--wp-border2: #4a4a4a;
|
||||
|
||||
/* Text — four tiers from primary to ghost. */
|
||||
--wp-text: #ddd;
|
||||
--wp-text-dim: #999;
|
||||
--wp-text-faint: #6e6e6e;
|
||||
--wp-text2: #aaa;
|
||||
--wp-text3: #666;
|
||||
--wp-text4: #888;
|
||||
|
||||
/* Brand — logo palette */
|
||||
--wp-accent: #6366f1;
|
||||
--wp-accent2: #a970ff;
|
||||
--wp-accent-glow: rgba(99, 102, 241, 0.15);
|
||||
--wp-violet: #a970ff;
|
||||
--wp-violet-bg: rgba(169, 112, 255, 0.12);
|
||||
--wp-teal: #33d6c6;
|
||||
--wp-teal-bg: rgba(51, 214, 198, 0.12);
|
||||
--wp-brand-gradient: linear-gradient(135deg, #6366f1, #33d6c6);
|
||||
|
||||
/* Semantic */
|
||||
--wp-green: #6bc96f;
|
||||
--wp-green-bg: rgba(107, 201, 111, 0.12);
|
||||
--wp-amber: #fbbf24;
|
||||
--wp-amber-bg: rgba(251, 191, 36, 0.12);
|
||||
--wp-red: #f87171;
|
||||
--wp-red-bg: rgba(248, 113, 113, 0.12);
|
||||
|
||||
/* Module-type colors */
|
||||
--wp-rose: #f472b6;
|
||||
--wp-rose-bg: rgba(244, 114, 182, 0.12);
|
||||
|
||||
/* Geometry */
|
||||
--wp-radius: 6px;
|
||||
--wp-radius-sm: 4px;
|
||||
|
||||
/* Typography — system fallback only inside the SPA (no webfont bundle yet). */
|
||||
--wp-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--wp-font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
|
||||
}
|
||||
|
||||
html, body { background: var(--wp-bg); color: var(--wp-text); margin: 0; }
|
||||
html, body { background: var(--wp-bg); color: var(--wp-text); margin: 0; font-family: var(--wp-font-sans); }
|
||||
|
||||
@@ -9,13 +9,27 @@ export default {
|
||||
bg: "var(--wp-bg)",
|
||||
bg2: "var(--wp-bg2)",
|
||||
bg3: "var(--wp-bg3)",
|
||||
bg4: "var(--wp-bg4)",
|
||||
border: "var(--wp-border)",
|
||||
border2: "var(--wp-border2)",
|
||||
text: "var(--wp-text)",
|
||||
text2: "var(--wp-text2)",
|
||||
text3: "var(--wp-text3)",
|
||||
text4: "var(--wp-text4)",
|
||||
accent: "var(--wp-accent)",
|
||||
accent2: "var(--wp-accent2)",
|
||||
violet: "var(--wp-violet)",
|
||||
teal: "var(--wp-teal)",
|
||||
green: "var(--wp-green)",
|
||||
amber: "var(--wp-amber)",
|
||||
red: "var(--wp-red)",
|
||||
rose: "var(--wp-rose)",
|
||||
},
|
||||
},
|
||||
fontFamily: {
|
||||
sans: "var(--wp-font-sans)",
|
||||
mono: "var(--wp-font-mono)",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
|
||||
Reference in New Issue
Block a user