Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

ci(design-system): DS-2b 主题兼容冻结守卫 (#3700)

Kirozengc2caa869fec7
diff --git a/apps/desktop/src/main/__tests__/localThemesDiskInvariants.test.ts b/apps/desktop/src/main/__tests__/localThemesDiskInvariants.test.ts
new file mode 100644
index 0000000000..c987d90a2c
--- /dev/null
+++ b/apps/desktop/src/main/__tests__/localThemesDiskInvariants.test.ts
@@ -0,0 +1,133 @@
+/**
+ * DS-2b 用户本地主题不变量(main loader 磁盘 + 解析)。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ *
+ * 缺口登记(治理合同 §7):parseLocalThemeJson 会丢掉顶层未知字段的内存投影,
+ * 这是当前实际行为,不是「未知字段不丢」的已完成能力。colors 内未知键仍保留。
+ */
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const osMock = vi.hoisted(() => ({ homedir: '' }));
+
+vi.mock('node:os', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('node:os')>();
+ return {
+ ...actual,
+ default: { ...actual, homedir: () => osMock.homedir },
+ homedir: () => osMock.homedir,
+ };
+});
+
+vi.mock('../logger.js', () => ({
+ createLogger: () => ({
+ debug: vi.fn(),
+ info: vi.fn(),
+ warn: vi.fn(),
+ }),
+}));
+
+import { mkdtempSync, realpathSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+
+import {
+ getLocalThemesDir,
+ loadLocalThemesSync,
+ resetLocalThemesMigrationForTest,
+} from '../local-themes/loader';
+
+const FIXTURE_DIR = fileURLToPath(
+ new URL('../../renderer/themes/__tests__/fixtures/local-themes/', import.meta.url),
+);
+
+const FIXTURE_FILES = [
+ 'legacy-placeholder.json',
+ 'unknown-colors.json',
+ 'unknown-toplevel.json',
+ 'external-import-missing-switch.json',
+] as const;
+
+function readExact(filePath: string): Buffer {
+ return fs.readFileSync(filePath);
+}
+
+describe('DS-2b · 用户主题磁盘与加载不变量', () => {
+ let home: string;
+
+ beforeEach(() => {
+ home = realpathSync(mkdtempSync(path.join(tmpdir(), 'ds2b-themes-home-')));
+ osMock.homedir = home;
+ resetLocalThemesMigrationForTest();
+
+ const dir = path.join(home, '.cindy', 'themes');
+ fs.mkdirSync(dir, { recursive: true });
+ for (const name of FIXTURE_FILES) {
+ fs.copyFileSync(path.join(FIXTURE_DIR, name), path.join(dir, name));
+ }
+ });
+
+ afterEach(() => {
+ fs.rmSync(home, { recursive: true, force: true });
+ });
+
+ it('真实加载 + 归一化后磁盘字节不变', () => {
+ const dir = getLocalThemesDir();
+ const before = new Map<string, Buffer>();
+ for (const name of FIXTURE_FILES) {
+ before.set(name, readExact(path.join(dir, name)));
+ }
+
+ const result = loadLocalThemesSync();
+ expect(result.success).toBe(true);
+ expect(result.themes.length).toBe(FIXTURE_FILES.length);
+
+ for (const name of FIXTURE_FILES) {
+ const after = readExact(path.join(dir, name));
+ expect(after.equals(before.get(name)!), `${name} 磁盘字节被改写`).toBe(true);
+ }
+ });
+
+ it('colors 内未知键经真实加载后仍在内存里', () => {
+ const result = loadLocalThemesSync();
+ expect(result.success).toBe(true);
+ const theme = result.themes.find((entry) => entry.id === 'ds2b-unknown-colors-local');
+ expect(theme).toBeDefined();
+ expect(theme?.colors['my-plugin-accent']).toBe('#112233');
+ expect(theme?.colors['future-slot-xyz']).toBe('var(--text-secondary)');
+ expect(theme?.family).toBe('ds2b-fake-family');
+ });
+
+ it('顶层未知字段当前从内存投影丢弃(已登记缺口,不是已完成能力)', () => {
+ const result = loadLocalThemesSync();
+ expect(result.success).toBe(true);
+ const theme = result.themes.find((entry) => entry.id === 'ds2b-unknown-toplevel-local');
+ expect(theme).toBeDefined();
+ expect(theme).not.toHaveProperty('author');
+ expect(theme).not.toHaveProperty('comment');
+ expect(theme).not.toHaveProperty('version');
+ expect(theme?.colors.surface).toBe('#ffffff');
+
+ const onDisk = JSON.parse(
+ fs.readFileSync(path.join(getLocalThemesDir(), 'unknown-toplevel.json'), 'utf8'),
+ ) as Record<string, unknown>;
+ expect(onDisk.author).toBe('not-a-real-user');
+ expect(onDisk.comment).toBe('fake extra field for DS-2b gap freeze');
+ expect(onDisk.version).toBe(2);
+ });
+
+ it('缺 family 的老文件仍能加载', () => {
+ const result = loadLocalThemesSync();
+ expect(result.success).toBe(true);
+ const theme = result.themes.find((entry) => entry.id === 'ds2b-legacy-placeholder-local');
+ expect(theme).toBeDefined();
+ expect(theme?.family).toBeUndefined();
+ expect(theme?.name).toBe('DS2b Legacy Placeholder');
+ });
+});
diff --git a/apps/desktop/src/renderer/themes/__tests__/builtinThemesFreeze.test.ts b/apps/desktop/src/renderer/themes/__tests__/builtinThemesFreeze.test.ts
new file mode 100644
index 0000000000..cfd29b4f19
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/builtinThemesFreeze.test.ts
@@ -0,0 +1,74 @@
+/**
+ * DS-2b 内置主题 override 冻结守卫。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ */
+import { describe, expect, it } from 'vitest';
+
+import { builtinThemes } from '../registry';
+import { readJsonFixture, themeFreezeMismatch } from './themeFreezeSupport';
+
+const FIXTURE = 'apps/desktop/src/renderer/themes/__tests__/fixtures/builtin-theme-overrides.json';
+
+interface BuiltinThemeSnapshot {
+ source: string;
+ count: number;
+ themeIds: string[];
+ themes: Record<
+ string,
+ { id: string; name: string; type: string; colors: Record<string, string> }
+ >;
+}
+
+function extractLive() {
+ const themeIds = Object.keys(builtinThemes);
+ const themes: BuiltinThemeSnapshot['themes'] = {};
+ for (const id of themeIds) {
+ const theme = builtinThemes[id];
+ if (!theme) continue;
+ themes[id] = {
+ id: theme.id,
+ name: theme.name,
+ type: theme.type,
+ colors: { ...(theme.colors as Record<string, string>) },
+ };
+ }
+ return { themeIds, themes };
+}
+
+describe('DS-2b · 内置主题冻结', () => {
+ const snapshot = readJsonFixture<BuiltinThemeSnapshot>(import.meta.url, './fixtures/builtin-theme-overrides.json');
+ const live = extractLive();
+
+ it('主题清单条目数与实时提取数一致', () => {
+ expect(snapshot.themeIds.length, themeFreezeMismatch('themeIds.length', FIXTURE)).toBe(
+ snapshot.count,
+ );
+ expect(live.themeIds.length, themeFreezeMismatch('builtinThemes 主题数', FIXTURE)).toBe(
+ snapshot.count,
+ );
+ expect(Object.keys(snapshot.themes).length, themeFreezeMismatch('themes 对象键数', FIXTURE)).toBe(
+ snapshot.count,
+ );
+ });
+
+ it('11 套主题清单本身与快照一致(增删主题必须显式更新快照)', () => {
+ expect(live.themeIds, themeFreezeMismatch('内置主题清单', FIXTURE)).toEqual(snapshot.themeIds);
+ });
+
+ it('每套主题的 id / name / type / override 集合逐值冻结', () => {
+ expect(live.themes, themeFreezeMismatch('内置主题 override', FIXTURE)).toEqual(snapshot.themes);
+ });
+
+ it('自证伪:模拟改名任一主题 ID 后必然与快照不匹配', () => {
+ expect(live.themeIds[0]).toBe('default-light');
+ const renamedIds = live.themeIds.map((id, index) =>
+ index === 0 ? 'default-light-renamed-for-ds2b-falsification' : id,
+ );
+ expect(renamedIds).not.toEqual(snapshot.themeIds);
+ });
+});
diff --git a/apps/desktop/src/renderer/themes/__tests__/desktopColorDefaultsFreeze.test.ts b/apps/desktop/src/renderer/themes/__tests__/desktopColorDefaultsFreeze.test.ts
new file mode 100644
index 0000000000..78f0a47cd8
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/desktopColorDefaultsFreeze.test.ts
@@ -0,0 +1,61 @@
+/**
+ * DS-2b Desktop Color ID 冻结守卫。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ */
+import { describe, expect, it } from 'vitest';
+
+import { colorRegistry } from '../color-registry';
+import '../colors';
+import { readJsonFixture, themeFreezeMismatch } from './themeFreezeSupport';
+
+const FIXTURE = 'apps/desktop/src/renderer/themes/__tests__/fixtures/desktop-color-defaults.json';
+
+interface ColorDefaultsSnapshot {
+ source: string;
+ count: number;
+ colors: Array<{ id: string; light: string | null; dark: string | null }>;
+}
+
+function extractLive() {
+ return colorRegistry.getColors().map((entry) => ({
+ id: entry.id,
+ light: entry.defaults.light,
+ dark: entry.defaults.dark,
+ }));
+}
+
+describe('DS-2b · Desktop Color ID 冻结', () => {
+ const snapshot = readJsonFixture<ColorDefaultsSnapshot>(
+ import.meta.url,
+ './fixtures/desktop-color-defaults.json',
+ );
+ const live = extractLive();
+
+ it('snapshot 条目数与实时提取数一致', () => {
+ expect(
+ snapshot.colors.length,
+ themeFreezeMismatch('desktop-color-defaults.colors.length', FIXTURE),
+ ).toBe(snapshot.count);
+ expect(live.length, themeFreezeMismatch('实时 registerColor 数', FIXTURE)).toBe(snapshot.count);
+ });
+
+ it('全量 id + light/dark 默认值与快照逐值相等', () => {
+ expect(live, themeFreezeMismatch('Desktop ColorRegistry 默认值', FIXTURE)).toEqual(
+ snapshot.colors,
+ );
+ });
+
+ it('自证伪:模拟改名任一旧 ID 后必然与快照不匹配', () => {
+ expect(live[0]?.id).toBe('surface');
+ const renamed = live.map((entry, index) =>
+ index === 0 ? { ...entry, id: 'surface-renamed-for-ds2b-falsification' } : entry,
+ );
+ expect(renamed).not.toEqual(snapshot.colors);
+ expect(renamed.map((entry) => entry.id)).not.toEqual(snapshot.colors.map((entry) => entry.id));
+ });
+});
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/builtin-theme-overrides.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/builtin-theme-overrides.json
new file mode 100644
index 0000000000..18f107bd0b
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/builtin-theme-overrides.json
@@ -0,0 +1,1188 @@
+{
+ "source": "apps/desktop/src/renderer/themes/registry.ts + builtin/",
+ "count": 11,
+ "themeIds": [
+ "default-light",
+ "atom-one-light",
+ "solarized-light",
+ "cindy-light",
+ "cindy-dark",
+ "default-dark",
+ "eclipse",
+ "one-dark-pro",
+ "github-dark",
+ "monokai-pro",
+ "material-ocean-hc"
+ ],
+ "themes": {
+ "default-light": {
+ "id": "default-light",
+ "name": "Default Light",
+ "type": "light",
+ "colors": {
+ "perm-auto-selected-text": "#417CDD"
+ }
+ },
+ "atom-one-light": {
+ "id": "atom-one-light",
+ "name": "Atom One Light",
+ "type": "light",
+ "colors": {
+ "surface": "#FAFAFA",
+ "surface-hsl": "0 0% 98%",
+ "surface-elevated": "#FFFFFF",
+ "surface-elevated-soft": "#EAEAEB",
+ "surface-card-ivory": "#FFFFFF",
+ "surface-chip": "#EAEAEB",
+ "surface-chip-alt": "#EAEAEB",
+ "surface-hover": "#E4E4E5",
+ "surface-hover-soft": "#FAFAFA",
+ "surface-hover-hsl": "240 2% 89%",
+ "surface-on-card": "#FFFFFF",
+ "border-default": "#D4D4D5",
+ "border-default-hsl": "240 2% 83%",
+ "border-shadcn-hsl": "240 2% 83%",
+ "border-transparent-mixed": "transparent",
+ "text-primary": "#383A42",
+ "text-primary-on-dark": "#383A42",
+ "text-primary-emphasis": "#383A42",
+ "text-primary-inv": "#383A42",
+ "text-primary-body-strong": "#383A42",
+ "text-primary-hsl": "224 8% 24%",
+ "text-secondary": "#696c77",
+ "text-secondary-cross": "#696c77",
+ "text-secondary-mid": "#696c77",
+ "text-tertiary": "#A0A1A7",
+ "text-tertiary-stone": "#A0A1A7",
+ "text-tertiary-mid": "#A0A1A7",
+ "text-tertiary-hsl": "228 4% 64%",
+ "text-disabled": "#C8C8C9",
+ "text-disabled-tertiary": "#C8C8C9",
+ "accent-cta-bg": "#4078F2",
+ "accent-cta-bg-pure": "#4078F2",
+ "accent-emphasis": "#4078F2",
+ "accent-soft": "#2050c0",
+ "accent-hover": "#2050c0",
+ "accent-pure-cta-fg": "#FFFFFF",
+ "switch-track-on": "#4078F2",
+ "accent": "240 2% 89%",
+ "agent-actions-rail": "#D4D4D5",
+ "ask-checkbox-border": "#A0A1A7",
+ "background": "0 0% 98%",
+ "create-agent-control-bg": "#FAFAFA",
+ "create-agent-control-bg-hover": "#E4E4E5",
+ "create-agent-control-bg-pressed": "#E4E4E5",
+ "create-agent-control-border": "#D4D4D5",
+ "create-agent-control-icon": "#383A42",
+ "create-agent-control-text": "#383A42",
+ "create-agent-quick-card-bg": "#FAFAFA",
+ "create-agent-quick-card-bg-hover": "#E4E4E5",
+ "create-agent-quick-card-border": "#D4D4D5",
+ "create-agent-quick-card-icon": "#383A42",
+ "create-agent-quick-card-icon-bg": "#EAEAEB",
+ "create-agent-quick-card-text": "#383A42",
+ "create-agent-segment-inactive-text": "#696c77",
+ "create-agent-segment-track-bg": "#FAFAFA",
+ "send-btn-bg": "#FAFAFA",
+ "send-btn-icon": "#383A42",
+ "chat-input-chip-border": "#D4D4D5",
+ "chat-input-text": "#383A42",
+ "color-primary": "#383A42",
+ "confirm-bg": "#FFFFFF",
+ "confirm-btn-primary-bg": "#4078F2",
+ "confirm-btn-primary-text": "#FFFFFF",
+ "confirm-btn-secondary-border": "#D4D4D5",
+ "confirm-btn-secondary-hover": "rgba(0, 0, 0, 0.06)",
+ "confirm-btn-secondary-text": "#383A42",
+ "confirm-title": "#383A42",
+ "drop-overlay-bg": "rgba(64, 120, 242, 0.1)",
+ "file-chip-bg": "#EAEAEB",
+ "file-remove-bg": "#A0A1A7",
+ "info-700": "#2050c0",
+ "model-trigger-hover": "#E4E4E5",
+ "msg-link": "#4078F2",
+ "msg-scrollbar-hover": "#A0A1A7",
+ "muted": "240 2% 92%",
+ "muted-foreground": "220 6% 44%",
+ "perm-allow-btn-bg": "#4078F2",
+ "perm-allow-btn-text": "#FFFFFF",
+ "perm-allow-kbd-bg": "#EAEAEB",
+ "perm-allow-kbd-border": "#D4D4D5",
+ "perm-code-bg": "#EAEAEB",
+ "perm-item-selected-bg": "#EAEAEB",
+ "plan-outline-active-bg": "#EAEAEB",
+ "plan-toolbar-btn-hover-bg": "#E4E4E5",
+ "popover": "0 0% 100%",
+ "primary-foreground": "0 0% 100%",
+ "search-match-fg": "224 8% 24%",
+ "secondary": "240 2% 92%",
+ "settings-btn-primary-text": "#FFFFFF",
+ "settings-btn-secondary-hover-bg": "#E4E4E5",
+ "text-placeholder": "#C8C8C9",
+ "settings-integration-avatar-bg": "#EAEAEB",
+ "settings-logout-bg": "#EAEAEB",
+ "settings-menu-bg-hover": "#E4E4E5",
+ "settings-menu-bg-selected": "#EAEAEB",
+ "settings-source-link": "#4078F2",
+ "settings-theme-auto-dark": "#FAFAFA",
+ "sidebar-action-icon": "228 4% 64%",
+ "sidebar-item-active": "240 2% 92%",
+ "splash-bg": "0 0% 98%",
+ "splash-text": "220 6% 44%",
+ "splash-text-destructive": "224 8% 24%",
+ "splash-text-muted": "228 4% 64%",
+ "titlebar-icon": "220 6% 44%",
+ "tooltip-bg": "#383A42",
+ "tooltip-text": "#FAFAFA",
+ "update-btn-border": "#4078F2",
+ "update-btn-text": "#4078F2"
+ }
+ },
+ "solarized-light": {
+ "id": "solarized-light",
+ "name": "Solarized Light",
+ "type": "light",
+ "colors": {
+ "surface": "#fdf6e3",
+ "surface-hsl": "44 86% 94%",
+ "surface-elevated": "#eee8d5",
+ "surface-elevated-soft": "#eee8d5",
+ "surface-card-ivory": "#eee8d5",
+ "surface-chip": "#eee8d5",
+ "surface-chip-alt": "#eee8d5",
+ "surface-hover": "#eee8d5",
+ "surface-hover-soft": "#fdf6e3",
+ "surface-hover-hsl": "46 42% 88%",
+ "surface-on-card": "#eee8d5",
+ "border-default": "#e1dcc4",
+ "border-default-hsl": "50 33% 82%",
+ "border-shadcn-hsl": "50 33% 82%",
+ "border-transparent-mixed": "transparent",
+ "text-primary": "#757575",
+ "text-primary-on-dark": "#757575",
+ "text-primary-emphasis": "#757575",
+ "text-primary-inv": "#757575",
+ "text-primary-body-strong": "#757575",
+ "text-primary-hsl": "0 0% 46%",
+ "text-secondary": "#828282",
+ "text-secondary-cross": "#828282",
+ "text-secondary-mid": "#828282",
+ "text-tertiary": "#999999",
+ "text-tertiary-stone": "#999999",
+ "text-tertiary-mid": "#999999",
+ "text-tertiary-hsl": "0 0% 60%",
+ "text-disabled": "#bdbdbd",
+ "text-disabled-tertiary": "#bdbdbd",
+ "accent-cta-bg": "#859900",
+ "accent-cta-bg-pure": "#859900",
+ "accent-emphasis": "#859900",
+ "accent-soft": "#5e6a00",
+ "accent-hover": "#5e6a00",
+ "accent-pure-cta-fg": "#FFFFFF",
+ "switch-track-on": "#5e6a00",
+ "accent": "46 42% 88%",
+ "agent-actions-rail": "#e1dcc4",
+ "ask-checkbox-border": "#999999",
+ "background": "44 86% 94%",
+ "chat-input-bg": "#eee8d5",
+ "create-agent-control-bg": "#eee8d5",
+ "create-agent-control-bg-hover": "#fdf6e3",
+ "create-agent-control-bg-pressed": "#eee8d5",
+ "create-agent-control-border": "#e1dcc4",
+ "create-agent-control-icon": "#757575",
+ "create-agent-control-text": "#757575",
+ "create-agent-quick-card-bg": "#eee8d5",
+ "create-agent-quick-card-bg-hover": "#fdf6e3",
+ "create-agent-quick-card-border": "#e1dcc4",
+ "create-agent-quick-card-icon": "#757575",
+ "create-agent-quick-card-icon-bg": "#fdf6e3",
+ "create-agent-quick-card-text": "#757575",
+ "create-agent-segment-inactive-text": "#828282",
+ "create-agent-segment-track-bg": "#eee8d5",
+ "chat-input-chip-border": "#e1dcc4",
+ "chat-input-text": "#757575",
+ "color-primary": "#757575",
+ "confirm-bg": "#eee8d5",
+ "confirm-btn-primary-bg": "#859900",
+ "confirm-btn-primary-text": "#FFFFFF",
+ "confirm-btn-secondary-border": "#e1dcc4",
+ "confirm-btn-secondary-hover": "rgba(0, 0, 0, 0.06)",
+ "confirm-btn-secondary-text": "#757575",
+ "confirm-title": "#757575",
+ "drop-overlay-bg": "rgba(133, 153, 0, 0.1)",
+ "file-chip-bg": "#eee8d5",
+ "file-remove-bg": "#999999",
+ "info-700": "#5e6a00",
+ "model-trigger-hover": "#eee8d5",
+ "msg-link": "#859900",
+ "msg-scrollbar-hover": "#999999",
+ "msg-user-bg": "#eee8d5",
+ "muted": "46 42% 88%",
+ "muted-foreground": "0 0% 51%",
+ "perm-auto-selected-text": "#859900",
+ "perm-allow-btn-bg": "#859900",
+ "perm-allow-btn-text": "#FFFFFF",
+ "perm-allow-kbd-bg": "#eee8d5",
+ "perm-allow-kbd-border": "#e1dcc4",
+ "perm-code-bg": "#eee8d5",
+ "perm-item-selected-bg": "#eee8d5",
+ "plan-outline-active-bg": "#eee8d5",
+ "plan-toolbar-btn-hover-bg": "#eee8d5",
+ "popover": "46 42% 88%",
+ "primary-foreground": "0 0% 100%",
+ "search-match-fg": "0 0% 46%",
+ "secondary": "46 42% 88%",
+ "settings-btn-primary-text": "#FFFFFF",
+ "settings-btn-secondary-hover-bg": "#eee8d5",
+ "text-placeholder": "#bdbdbd",
+ "settings-integration-avatar-bg": "#eee8d5",
+ "settings-logout-bg": "#eee8d5",
+ "settings-menu-bg-hover": "#eee8d5",
+ "settings-menu-bg-selected": "#eee8d5",
+ "settings-source-link": "#859900",
+ "settings-theme-auto-dark": "#fdf6e3",
+ "sidebar-action-icon": "0 0% 60%",
+ "sidebar-item-active": "46 42% 88%",
+ "splash-bg": "44 86% 94%",
+ "splash-text": "0 0% 51%",
+ "splash-text-destructive": "0 0% 46%",
+ "splash-text-muted": "0 0% 60%",
+ "titlebar-icon": "0 0% 51%",
+ "tooltip-bg": "#757575",
+ "tooltip-text": "#fdf6e3",
+ "update-btn-border": "#859900",
+ "update-btn-text": "#859900"
+ }
+ },
+ "cindy-light": {
+ "id": "cindy-light",
+ "name": "CINDY Light",
+ "type": "light",
+ "colors": {
+ "surface": "#F2F2ED",
+ "surface-hsl": "60.0 16.1% 93.9%",
+ "surface-elevated": "#FDFDF8",
+ "surface-elevated-soft": "#FAFAF5",
+ "surface-card-ivory": "#FDFDF8",
+ "surface-chip": "#EEEEE9",
+ "surface-chip-alt": "#FAFAF5",
+ "surface-hover": "#EEEEE9",
+ "surface-hover-soft": "#F0F0EB",
+ "surface-hover-hsl": "60.0 12.8% 92.4%",
+ "surface-on-card": "#FFFFFF",
+ "switch-track-off": "#888888",
+ "switch-track-on": "#4A4D51",
+ "status-badge-fg": "#1F1F1F",
+ "border-default": "#E4E4DF",
+ "border-default-hsl": "60.0 8.5% 88.4%",
+ "border-shadcn-hsl": "60.0 8.5% 88.4%",
+ "border-transparent-mixed": "transparent",
+ "text-primary": "#1A1A1A",
+ "text-primary-on-dark": "#FFFFFF",
+ "text-primary-emphasis": "#0C0C0C",
+ "text-primary-inv": "#FFFFFF",
+ "text-primary-body-strong": "#1A1A1A",
+ "text-primary-hsl": "0.0 0.0% 10.2%",
+ "text-secondary": "#888883",
+ "text-secondary-cross": "#888883",
+ "text-secondary-mid": "#6B6B67",
+ "text-tertiary": "#6B6B67",
+ "text-tertiary-stone": "#6B6B67",
+ "text-tertiary-mid": "#6B6B67",
+ "text-tertiary-hsl": "60.0 1.9% 41.2%",
+ "text-disabled": "#6B6B67",
+ "text-disabled-tertiary": "#6B6B67",
+ "accent-cta-bg": "#3C3F43",
+ "accent-cta-bg-pure": "#3C3F43",
+ "accent-emphasis": "#3C3F43",
+ "accent-soft": "#25282C",
+ "accent-hover": "#2E3237",
+ "accent-pure-cta-fg": "#FCFCFC",
+ "accent": "60.0 12.8% 92.4%",
+ "agent-actions-rail": "#E4E4DF",
+ "ask-checkbox-border": "#6B6B67",
+ "ask-option-list-bg": "#FFFFFF",
+ "background": "60.0 16.1% 93.9%",
+ "chat-input-bg": "#FDFDF8",
+ "chat-input-border-focus": "rgba(107, 107, 103, 0.30)",
+ "chat-input-chip-border": "#E4E4DF",
+ "chat-input-text": "#1A1A1A",
+ "color-primary": "#1A1A1A",
+ "caret-accent": "#417CDD",
+ "confirm-bg": "#FDFDF8",
+ "confirm-btn-primary-bg": "#3C3F43",
+ "confirm-btn-primary-text": "#FCFCFC",
+ "confirm-btn-secondary-border": "#E4E4DF",
+ "confirm-btn-secondary-hover": "rgba(0, 0, 0, 0.06)",
+ "confirm-btn-secondary-text": "#1A1A1A",
+ "confirm-title": "#1A1A1A",
+ "file-chip-bg": "#DFDFDA",
+ "file-remove-bg": "#6B6B67",
+ "info-700": "#1D4ED8",
+ "model-trigger-hover": "#EEEEE9",
+ "model-item-hover": "#EFEFEA",
+ "msg-link": "#1D4ED8",
+ "msg-scrollbar-hover": "#DFDFDA",
+ "msg-user-bg": "#FDFDF8",
+ "muted": "60.0 12.8% 92.4%",
+ "muted-foreground": "60.0 1.9% 41.2%",
+ "perm-auto-selected-text": "#417CDD",
+ "perm-allow-btn-bg": "#3C3F43",
+ "perm-allow-btn-text": "#FCFCFC",
+ "perm-allow-kbd-bg": "rgba(255, 255, 255, 0.16)",
+ "perm-allow-kbd-border": "rgba(255, 255, 255, 0.30)",
+ "perm-code-bg": "#FAFAF5",
+ "perm-item-selected-bg": "#F6F6F1",
+ "plan-outline-active-bg": "#F6F6F1",
+ "plan-toolbar-btn-hover-bg": "#E8E8E3",
+ "popover": "60.0 55.6% 98.2%",
+ "primary-foreground": "0.0 0.0% 100.0%",
+ "search-match-fg": "0.0 0.0% 10.2%",
+ "secondary": "60.0 12.8% 92.4%",
+ "settings-btn-primary-text": "#FCFCFC",
+ "settings-btn-secondary-hover-bg": "#F6F6F1",
+ "text-placeholder": "#6B6B67",
+ "settings-integration-avatar-bg": "#FDFDF8",
+ "settings-logout-bg": "#FDFDF8",
+ "settings-menu-bg-hover": "#E8E8E3",
+ "settings-menu-bg-selected": "#F6F6F1",
+ "settings-source-link": "#1D4ED8",
+ "settings-theme-auto-dark": "#181818",
+ "sidebar-action-icon": "60.0 2.1% 52.4%",
+ "cmd-palette-item-meta": "#888883",
+ "sidebar-item-active-foreground": "#FCFCFC",
+ "sidebar-item-active-border": "transparent",
+ "sidebar-item-active": "214.3 5.5% 24.9%",
+ "splash-bg": "60.0 16.1% 93.9%",
+ "splash-text": "60.0 1.9% 41.2%",
+ "splash-text-destructive": "0.0 0.0% 10.2%",
+ "splash-text-muted": "60.0 1.9% 41.2%",
+ "titlebar-icon": "60.0 1.9% 41.2%",
+ "tooltip-bg": "#3C3F43",
+ "tooltip-text": "#FFFFFF",
+ "update-btn-border": "#3C3F43",
+ "update-btn-bg": "#3C3F43",
+ "update-btn-text": "#FCFCFC",
+ "update-btn-hover": "#2E3237",
+ "accent-foreground": "0.0 0.0% 10.2%",
+ "panel-bg": "#F2F2ED",
+ "primary": "214.3 5.5% 24.9%",
+ "ring": "217.3 69.7% 56.1%",
+ "settings-theme-auto-light": "#F2F2ED",
+ "foreground": "0.0 0.0% 10.2%",
+ "border": "60.0 8.5% 88.4%",
+ "input": "60.0 8.5% 88.4%",
+ "secondary-foreground": "0.0 0.0% 10.2%",
+ "popover-foreground": "0.0 0.0% 10.2%",
+ "titlebar": "60.0 16.1% 93.9%",
+ "titlebar-border": "60.0 8.5% 88.4%",
+ "titlebar-button-hover": "60.0 12.8% 92.4%",
+ "titlebar-control-hover": "60.0 12.8% 92.4%",
+ "sidebar": "60.0 12.8% 92.4%",
+ "sidebar-border": "60.0 8.5% 88.4%",
+ "sidebar-item-hover": "0.0 0.0% 0.0% / 0.05",
+ "sidebar-search-bg": "60.0 12.8% 92.4%",
+ "sidebar-search-input-bg": "rgba(255, 255, 250, 0.55)",
+ "sidebar-muted": "60.0 2.1% 52.4%",
+ "surface-translucent-sidebar": "rgba(238, 238, 233, 0.85)",
+ "surface-translucent-main": "#F2F2ED",
+ "surface-translucent-overlay": "rgba(251, 251, 246, 0.90)",
+ "composer-pill-bg": "#FFFFFA",
+ "composer-pill-icon": "#1A1A1A",
+ "send-btn-bg": "#3C3F43",
+ "send-btn-icon": "#FCFCFC",
+ "send-btn-disabled-bg": "#444242",
+ "send-btn-disabled-icon": "#585555",
+ "send-btn-hover-bg": "#2E3237",
+ "send-btn-pressed-bg": "#25282C",
+ "ask-badge-bg": "#F6F6F1",
+ "ask-header-chip-bg": "#F6F6F1",
+ "cmd-palette-item-hover": "#F6F6F1",
+ "create-agent-control-bg": "#FFFFFA",
+ "create-agent-control-border": "#E4E4DF",
+ "create-agent-control-icon": "#1A1A1A",
+ "create-agent-control-text": "#1A1A1A",
+ "create-agent-quick-card-bg": "#FDFDF8",
+ "create-agent-quick-card-bg-hover": "#F6F6F1",
+ "create-agent-quick-card-border": "#E4E4DF",
+ "create-agent-quick-card-icon": "#1A1A1A",
+ "create-agent-quick-card-icon-bg": "#F2F2ED",
+ "create-agent-quick-card-text": "#1A1A1A",
+ "create-agent-segment-inactive-text": "#9D9D98",
+ "create-agent-segment-track-bg": "#F2F2ED",
+ "create-agent-send-disabled-bg": "#F2F2ED",
+ "create-agent-send-disabled-icon": "#9D9D98",
+ "md-table-bg": "rgba(241, 241, 236, 0.55)",
+ "settings-integration-avatar-border": "#EDEDE8",
+ "sidebar-list-muted": "#888883",
+ "sidebar-nav-text": "#1A1A1A",
+ "sidebar-user-card-bg-hover": "rgba(26, 26, 26, 0.06)",
+ "sidebar-user-card-border": "rgba(26, 26, 26, 0.10)",
+ "sidebar-user-card-text": "#1A1A1A",
+ "ask-option-hover": "var(--surface-hover-soft)",
+ "ask-send-disabled-bg": "var(--surface-elevated-soft)",
+ "completion-badge-fg": "#1f1f1e",
+ "create-agent-control-bg-hover": "var(--surface-hover)",
+ "create-agent-control-bg-pressed": "var(--surface-hover-soft)",
+ "create-agent-send-icon": "#FCFCFC"
+ }
+ },
+ "cindy-dark": {
+ "id": "cindy-dark",
+ "name": "CINDY Dark",
+ "type": "dark",
+ "colors": {
+ "surface": "#181818",
+ "surface-hsl": "0 0% 9.4%",
+ "surface-elevated": "#1F1F1F",
+ "surface-elevated-soft": "#1D1D1D",
+ "surface-card-ivory": "#1F1F1F",
+ "surface-chip": "#1D1D1D",
+ "surface-chip-alt": "#1D1D1D",
+ "surface-hover": "#1D1D1D",
+ "surface-hover-soft": "#191919",
+ "surface-hover-hsl": "0 0% 11.4%",
+ "surface-on-card": "#181818",
+ "switch-track-off": "#787878",
+ "switch-track-on": "#EEEEEE",
+ "status-badge-fg": "#121212",
+ "border-default": "#313131",
+ "border-default-hsl": "0 0% 19.2%",
+ "border-shadcn-hsl": "0 0% 19.2%",
+ "border-transparent-mixed": "#313131",
+ "text-primary": "#D4D4D4",
+ "text-primary-on-dark": "#FFFFFF",
+ "text-primary-emphasis": "#FFFFFF",
+ "text-primary-inv": "#181818",
+ "text-primary-body-strong": "#D4D4D4",
+ "text-primary-hsl": "0.0 0.0% 83.1%",
+ "text-secondary": "#6F6F6F",
+ "text-secondary-cross": "#6F6F6F",
+ "text-secondary-mid": "#C1C1C1",
+ "text-tertiary": "#C1C1C1",
+ "text-tertiary-stone": "#C1C1C1",
+ "text-tertiary-mid": "#C1C1C1",
+ "text-tertiary-hsl": "0.0 0.0% 75.7%",
+ "text-disabled": "#C1C1C1",
+ "text-disabled-tertiary": "#C1C1C1",
+ "accent-cta-bg": "#EEEEEE",
+ "accent-cta-bg-pure": "#EEEEEE",
+ "accent-emphasis": "#EEEEEE",
+ "accent-soft": "#D4D4D4",
+ "accent-hover": "#E2E2E2",
+ "accent-pure-cta-fg": "#151515",
+ "accent": "0 0% 11.4%",
+ "agent-actions-rail": "#313131",
+ "ask-checkbox-border": "#C1C1C1",
+ "ask-header-chip-bg": "#282828",
+ "ask-send-disabled-bg": "#282828",
+ "ask-option-list-bg": "#282828",
+ "ask-option-hover": "#323232",
+ "background": "0 0% 9.4%",
+ "chat-input-bg": "#1F1F1F",
+ "chat-input-border-focus": "rgba(193, 193, 193, 0.30)",
+ "chat-input-chip-border": "#313131",
+ "chat-input-text": "#D4D4D4",
+ "color-primary": "#D4D4D4",
+ "caret-accent": "#417CDD",
+ "confirm-bg": "#1F1F1F",
+ "confirm-btn-primary-bg": "#EEEEEE",
+ "confirm-btn-primary-text": "#151515",
+ "confirm-btn-secondary-border": "#313131",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.08)",
+ "confirm-btn-secondary-text": "#D4D4D4",
+ "confirm-title": "#D4D4D4",
+ "file-chip-bg": "#292929",
+ "file-remove-bg": "#C1C1C1",
+ "info-700": "#93C5FD",
+ "model-trigger-hover": "#1D1D1D",
+ "model-item-hover": "#2B2B2B",
+ "msg-link": "#93C5FD",
+ "msg-scrollbar-hover": "#3E3E3E",
+ "msg-user-bg": "#1F1F1F",
+ "muted": "0 0% 11.4%",
+ "muted-foreground": "0.0 0.0% 75.7%",
+ "perm-auto-selected-text": "#417CDD",
+ "perm-allow-btn-bg": "#EEEEEE",
+ "perm-allow-btn-text": "#151515",
+ "perm-allow-kbd-bg": "rgba(0, 0, 0, 0.08)",
+ "perm-allow-kbd-border": "rgba(0, 0, 0, 0.20)",
+ "perm-code-bg": "#191919",
+ "perm-item-selected-bg": "#1D1D1D",
+ "plan-outline-active-bg": "#1D1D1D",
+ "plan-toolbar-btn-hover-bg": "#323232",
+ "popover": "0 0% 12.2%",
+ "primary-foreground": "0.0 0.0% 100.0%",
+ "search-match-fg": "0.0 0.0% 83.1%",
+ "secondary": "0 0% 11.4%",
+ "settings-btn-primary-text": "#151515",
+ "settings-btn-secondary-hover-bg": "#1D1D1D",
+ "text-placeholder": "#C1C1C1",
+ "settings-integration-avatar-bg": "#1D1D1D",
+ "settings-logout-bg": "#1F1F1F",
+ "settings-menu-bg-hover": "#282828",
+ "settings-menu-bg-selected": "#282828",
+ "settings-source-link": "#93C5FD",
+ "settings-theme-auto-dark": "#181818",
+ "sidebar-action-icon": "0 0% 43.5%",
+ "cmd-palette-item-meta": "#6F6F6F",
+ "sidebar-item-active-foreground": "#151515",
+ "sidebar-item-active-border": "transparent",
+ "sidebar-item-active": "0.0 0.0% 93.3%",
+ "splash-bg": "0 0% 9.4%",
+ "splash-text": "0.0 0.0% 75.7%",
+ "splash-text-destructive": "0.0 0.0% 100.0%",
+ "splash-text-muted": "0.0 0.0% 75.7%",
+ "titlebar-icon": "0.0 0.0% 75.7%",
+ "tooltip-bg": "#181818",
+ "tooltip-text": "#FFFFFF",
+ "update-btn-border": "#EEEEEE",
+ "update-btn-bg": "#EEEEEE",
+ "update-btn-text": "#151515",
+ "update-btn-hover": "#E2E2E2",
+ "accent-foreground": "0.0 0.0% 83.1%",
+ "panel-bg": "#181818",
+ "primary": "0.0 0.0% 93.3%",
+ "ring": "217.3 69.7% 56.1%",
+ "settings-theme-auto-light": "#F2F2ED",
+ "foreground": "0.0 0.0% 83.1%",
+ "border": "0 0% 19.2%",
+ "input": "0 0% 19.2%",
+ "secondary-foreground": "0.0 0.0% 83.1%",
+ "popover-foreground": "0.0 0.0% 83.1%",
+ "titlebar": "0 0% 9.4%",
+ "titlebar-border": "0 0% 19.2%",
+ "titlebar-button-hover": "0 0% 11.4%",
+ "titlebar-control-hover": "0 0% 11.4%",
+ "sidebar": "0 0% 9.4%",
+ "sidebar-border": "0 0% 19.2%",
+ "sidebar-item-hover": "0.0 0.0% 100.0% / 0.09",
+ "sidebar-search-bg": "0 0% 9.4%",
+ "sidebar-search-input-bg": "rgba(0, 0, 0, 0.25)",
+ "sidebar-muted": "0 0% 43.5%",
+ "surface-translucent-sidebar": "rgba(5, 5, 5, 0.85)",
+ "surface-translucent-main": "#181818",
+ "surface-translucent-overlay": "rgba(21, 21, 21, 0.80)",
+ "composer-pill-bg": "#272727",
+ "composer-pill-icon": "#D9D9D9",
+ "send-btn-bg": "#EEEEEE",
+ "send-btn-icon": "#151515",
+ "send-btn-disabled-bg": "#323232",
+ "send-btn-disabled-icon": "#464646",
+ "send-btn-hover-bg": "#E2E2E2",
+ "send-btn-pressed-bg": "#D4D4D4",
+ "completion-badge-fg": "#121212",
+ "create-agent-control-bg": "#272727",
+ "create-agent-control-bg-hover": "#323232",
+ "create-agent-control-bg-pressed": "#3E3E3E",
+ "create-agent-control-border": "#313131",
+ "create-agent-quick-card-bg": "#1F1F1F",
+ "create-agent-quick-card-bg-hover": "#292929",
+ "create-agent-quick-card-border": "#313131",
+ "create-agent-quick-card-icon-bg": "#181818",
+ "create-agent-segment-track-bg": "#181818",
+ "create-agent-send-disabled-bg": "#323232",
+ "create-agent-send-disabled-icon": "#464646",
+ "create-agent-send-icon": "#151515",
+ "md-table-bg": "rgba(26, 26, 26, 0.55)",
+ "ask-badge-bg": "var(--surface-chip)",
+ "cmd-palette-item-hover": "var(--surface-hover)",
+ "create-agent-control-icon": "#D9D9D9",
+ "create-agent-control-text": "#D4D4D4",
+ "create-agent-quick-card-icon": "#D4D4D4",
+ "create-agent-quick-card-text": "#D4D4D4",
+ "create-agent-segment-inactive-text": "#6F6F6F",
+ "settings-integration-avatar-border": "rgba(255, 255, 255, 0.08)",
+ "sidebar-list-muted": "#6F6F6F",
+ "sidebar-nav-text": "#D4D4D4",
+ "sidebar-user-card-bg-hover": "rgba(255, 255, 255, 0.10)",
+ "sidebar-user-card-border": "rgba(255, 255, 255, 0.13)",
+ "sidebar-user-card-text": "#D4D4D4"
+ }
+ },
+ "default-dark": {
+ "id": "default-dark",
+ "name": "Default Dark",
+ "type": "dark",
+ "colors": {
+ "perm-auto-selected-text": "#417CDD"
+ }
+ },
+ "eclipse": {
+ "id": "eclipse",
+ "name": "Eclipse",
+ "type": "dark",
+ "colors": {
+ "surface": "#0d1117",
+ "surface-hsl": "220 12% 7%",
+ "surface-elevated": "#161b22",
+ "surface-elevated-soft": "#161b22",
+ "surface-card-ivory": "#161b22",
+ "surface-chip": "#262c36",
+ "surface-chip-alt": "#262c36",
+ "surface-hover": "#1c2128",
+ "surface-hover-soft": "#1c2128",
+ "surface-hover-hsl": "213 16% 14%",
+ "surface-on-card": "#0d1117",
+ "border-default": "#30363d",
+ "border-default-hsl": "215 12% 21%",
+ "border-shadcn-hsl": "215 12% 21%",
+ "border-transparent-mixed": "#30363d",
+ "text-primary": "#e6e6e6",
+ "text-primary-on-dark": "#e6e6e6",
+ "text-primary-emphasis": "#e6e6e6",
+ "text-primary-inv": "#e6e6e6",
+ "text-primary-body-strong": "#e6e6e6",
+ "text-primary-hsl": "0 0% 90%",
+ "text-secondary": "#9ca3af",
+ "text-secondary-cross": "#9ca3af",
+ "text-secondary-mid": "#9ca3af",
+ "text-tertiary": "#6b7280",
+ "text-tertiary-stone": "#6b7280",
+ "text-tertiary-mid": "#6b7280",
+ "text-tertiary-hsl": "220 9% 46%",
+ "text-disabled": "#4b5563",
+ "text-disabled-tertiary": "#4b5563",
+ "accent-cta-bg": "#0CD2A5",
+ "accent-cta-bg-pure": "#0CD2A5",
+ "accent-emphasis": "#0CD2A5",
+ "accent-soft": "#5eead4",
+ "accent-hover": "#0f8a73",
+ "accent-pure-cta-fg": "#0d1117",
+ "switch-track-on": "#0CD2A5",
+ "accent": "213 16% 14%",
+ "agent-actions-rail": "#30363d",
+ "ask-checkbox-border": "#4b5563",
+ "background": "220 12% 7%",
+ "create-agent-control-bg": "#0d1117",
+ "create-agent-control-bg-hover": "#1c2128",
+ "create-agent-control-bg-pressed": "#262c36",
+ "create-agent-control-border": "#30363d",
+ "create-agent-control-icon": "#e6e6e6",
+ "create-agent-control-text": "#e6e6e6",
+ "create-agent-quick-card-bg": "#0d1117",
+ "create-agent-quick-card-bg-hover": "#1c2128",
+ "create-agent-quick-card-border": "#30363d",
+ "create-agent-quick-card-icon": "#e6e6e6",
+ "create-agent-quick-card-icon-bg": "#30363d",
+ "create-agent-quick-card-text": "#e6e6e6",
+ "create-agent-segment-inactive-text": "#6b7280",
+ "create-agent-segment-track-bg": "#0d1117",
+ "send-btn-bg": "#e6e6e6",
+ "send-btn-icon": "#0d1117",
+ "chat-input-chip-border": "#30363d",
+ "chat-input-text": "#e6e6e6",
+ "color-primary": "#e6e6e6",
+ "confirm-bg": "#161b22",
+ "confirm-btn-primary-bg": "#0CD2A5",
+ "confirm-btn-primary-text": "#0d1117",
+ "confirm-btn-secondary-border": "#30363d",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.06)",
+ "confirm-btn-secondary-text": "#e6e6e6",
+ "confirm-title": "#e6e6e6",
+ "drop-overlay-bg": "rgba(12, 210, 165, 0.1)",
+ "file-chip-bg": "#30363d",
+ "file-remove-bg": "#4b5563",
+ "info-700": "#5eead4",
+ "model-trigger-hover": "#1c2128",
+ "msg-link": "#5eead4",
+ "msg-scrollbar-hover": "#4b5563",
+ "muted": "215 16% 18%",
+ "muted-foreground": "220 9% 65%",
+ "perm-allow-btn-bg": "#0CD2A5",
+ "perm-allow-btn-text": "#0d1117",
+ "perm-allow-kbd-bg": "#262c36",
+ "perm-allow-kbd-border": "#30363d",
+ "perm-code-bg": "#0d1117",
+ "perm-item-selected-bg": "#262c36",
+ "plan-outline-active-bg": "#262c36",
+ "plan-toolbar-btn-hover-bg": "#1c2128",
+ "popover": "213 16% 11%",
+ "primary-foreground": "220 12% 7%",
+ "search-match-fg": "0 0% 90%",
+ "secondary": "213 16% 11%",
+ "settings-btn-primary-text": "#0d1117",
+ "settings-btn-secondary-hover-bg": "#1c2128",
+ "text-placeholder": "#4b5563",
+ "settings-integration-avatar-bg": "#262c36",
+ "settings-logout-bg": "#262c36",
+ "settings-menu-bg-hover": "#1c2128",
+ "settings-menu-bg-selected": "#262c36",
+ "settings-source-link": "#5eead4",
+ "settings-theme-auto-dark": "#0d1117",
+ "sidebar-action-icon": "220 9% 46%",
+ "sidebar-item-active": "215 16% 18%",
+ "splash-bg": "220 12% 7%",
+ "splash-text": "220 9% 65%",
+ "splash-text-destructive": "0 0% 90%",
+ "splash-text-muted": "220 9% 46%",
+ "titlebar-icon": "220 9% 65%",
+ "tooltip-bg": "#0d1117",
+ "tooltip-text": "#e6e6e6",
+ "update-btn-border": "#0CD2A5",
+ "update-btn-text": "#0CD2A5"
+ }
+ },
+ "one-dark-pro": {
+ "id": "one-dark-pro",
+ "name": "One Dark Pro",
+ "type": "dark",
+ "colors": {
+ "surface": "#282c34",
+ "surface-hsl": "220 13% 18%",
+ "surface-elevated": "#21252b",
+ "surface-elevated-soft": "#21252b",
+ "surface-card-ivory": "#21252b",
+ "surface-chip": "#2c313a",
+ "surface-chip-alt": "#2c313a",
+ "surface-hover": "#2c313a",
+ "surface-hover-soft": "#2c313a",
+ "surface-hover-hsl": "220 14% 20%",
+ "surface-on-card": "#282c34",
+ "border-default": "#3e4452",
+ "border-default-hsl": "220 14% 28%",
+ "border-shadcn-hsl": "220 14% 28%",
+ "border-transparent-mixed": "#3e4452",
+ "text-primary": "#abb2bf",
+ "text-primary-on-dark": "#abb2bf",
+ "text-primary-emphasis": "#abb2bf",
+ "text-primary-inv": "#abb2bf",
+ "text-primary-body-strong": "#abb2bf",
+ "text-primary-hsl": "219 14% 71%",
+ "text-secondary": "#7f848e",
+ "text-secondary-cross": "#7f848e",
+ "text-secondary-mid": "#7f848e",
+ "text-tertiary": "#5c6370",
+ "text-tertiary-stone": "#5c6370",
+ "text-tertiary-mid": "#5c6370",
+ "text-tertiary-hsl": "220 9% 40%",
+ "text-disabled": "#495162",
+ "text-disabled-tertiary": "#495162",
+ "accent-cta-bg": "#61afef",
+ "accent-cta-bg-pure": "#61afef",
+ "accent-emphasis": "#61afef",
+ "accent-soft": "#82c0ff",
+ "accent-hover": "#3d7ec8",
+ "accent-pure-cta-fg": "#282c34",
+ "switch-track-on": "#61afef",
+ "accent": "220 14% 20%",
+ "agent-actions-rail": "#3e4452",
+ "ask-checkbox-border": "#495162",
+ "background": "220 13% 18%",
+ "create-agent-control-bg": "#282c34",
+ "create-agent-control-bg-hover": "#2c313a",
+ "create-agent-control-bg-pressed": "#2c313a",
+ "create-agent-control-border": "#3e4452",
+ "create-agent-control-icon": "#abb2bf",
+ "create-agent-control-text": "#abb2bf",
+ "create-agent-quick-card-bg": "#282c34",
+ "create-agent-quick-card-bg-hover": "#2c313a",
+ "create-agent-quick-card-border": "#3e4452",
+ "create-agent-quick-card-icon": "#abb2bf",
+ "create-agent-quick-card-icon-bg": "#3e4452",
+ "create-agent-quick-card-text": "#abb2bf",
+ "create-agent-segment-inactive-text": "#5c6370",
+ "create-agent-segment-track-bg": "#282c34",
+ "send-btn-bg": "#abb2bf",
+ "send-btn-icon": "#282c34",
+ "chat-input-chip-border": "#3e4452",
+ "chat-input-text": "#abb2bf",
+ "color-primary": "#abb2bf",
+ "confirm-bg": "#21252b",
+ "confirm-btn-primary-bg": "#61afef",
+ "confirm-btn-primary-text": "#282c34",
+ "confirm-btn-secondary-border": "#3e4452",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.06)",
+ "confirm-btn-secondary-text": "#abb2bf",
+ "confirm-title": "#abb2bf",
+ "drop-overlay-bg": "rgba(97, 175, 239, 0.1)",
+ "file-chip-bg": "#3e4452",
+ "file-remove-bg": "#495162",
+ "info-700": "#82c0ff",
+ "model-trigger-hover": "#2c313a",
+ "msg-link": "#82c0ff",
+ "msg-scrollbar-hover": "#495162",
+ "muted": "220 14% 20%",
+ "muted-foreground": "220 6% 53%",
+ "perm-allow-btn-bg": "#61afef",
+ "perm-allow-btn-text": "#282c34",
+ "perm-allow-kbd-bg": "#2c313a",
+ "perm-allow-kbd-border": "#3e4452",
+ "perm-code-bg": "#282c34",
+ "perm-item-selected-bg": "#2c313a",
+ "plan-outline-active-bg": "#2c313a",
+ "plan-toolbar-btn-hover-bg": "#2c313a",
+ "popover": "220 13% 15%",
+ "primary-foreground": "220 13% 18%",
+ "search-match-fg": "219 14% 71%",
+ "secondary": "220 13% 15%",
+ "settings-btn-primary-text": "#282c34",
+ "settings-btn-secondary-hover-bg": "#2c313a",
+ "text-placeholder": "#495162",
+ "settings-integration-avatar-bg": "#2c313a",
+ "settings-logout-bg": "#2c313a",
+ "settings-menu-bg-hover": "#2c313a",
+ "settings-menu-bg-selected": "#2c313a",
+ "settings-source-link": "#82c0ff",
+ "settings-theme-auto-dark": "#282c34",
+ "sidebar-action-icon": "220 9% 40%",
+ "sidebar-item-active": "220 14% 20%",
+ "splash-bg": "220 13% 18%",
+ "splash-text": "220 6% 53%",
+ "splash-text-destructive": "219 14% 71%",
+ "splash-text-muted": "220 9% 40%",
+ "titlebar-icon": "220 6% 53%",
+ "tooltip-bg": "#282c34",
+ "tooltip-text": "#abb2bf",
+ "update-btn-border": "#61afef",
+ "update-btn-text": "#61afef"
+ }
+ },
+ "github-dark": {
+ "id": "github-dark",
+ "name": "GitHub Dark",
+ "type": "dark",
+ "colors": {
+ "surface": "#0d1117",
+ "surface-hsl": "220 13% 7%",
+ "surface-elevated": "#161b22",
+ "surface-elevated-soft": "#161b22",
+ "surface-card-ivory": "#161b22",
+ "surface-chip": "#21262d",
+ "surface-chip-alt": "#21262d",
+ "surface-hover": "#1c2128",
+ "surface-hover-soft": "#1c2128",
+ "surface-hover-hsl": "215 16% 13%",
+ "surface-on-card": "#0d1117",
+ "border-default": "#30363d",
+ "border-default-hsl": "213 12% 21%",
+ "border-shadcn-hsl": "213 12% 21%",
+ "border-transparent-mixed": "#30363d",
+ "text-primary": "#e6edf3",
+ "text-primary-on-dark": "#e6edf3",
+ "text-primary-emphasis": "#e6edf3",
+ "text-primary-inv": "#e6edf3",
+ "text-primary-body-strong": "#e6edf3",
+ "text-primary-hsl": "213 31% 93%",
+ "text-secondary": "#7d8590",
+ "text-secondary-cross": "#7d8590",
+ "text-secondary-mid": "#7d8590",
+ "text-tertiary": "#6e7681",
+ "text-tertiary-stone": "#6e7681",
+ "text-tertiary-mid": "#6e7681",
+ "text-tertiary-hsl": "215 8% 47%",
+ "text-disabled": "#484f58",
+ "text-disabled-tertiary": "#484f58",
+ "accent-cta-bg": "#2f81f7",
+ "accent-cta-bg-pure": "#2f81f7",
+ "accent-emphasis": "#2f81f7",
+ "accent-soft": "#79c0ff",
+ "accent-hover": "#1f6feb",
+ "accent-pure-cta-fg": "#ffffff",
+ "switch-track-on": "#2f81f7",
+ "status-badge-fg": "#1F1F1F",
+ "accent": "215 16% 13%",
+ "agent-actions-rail": "#30363d",
+ "ask-checkbox-border": "#484f58",
+ "background": "220 13% 7%",
+ "create-agent-control-bg": "#0d1117",
+ "create-agent-control-bg-hover": "#1c2128",
+ "create-agent-control-bg-pressed": "#21262d",
+ "create-agent-control-border": "#30363d",
+ "create-agent-control-icon": "#e6edf3",
+ "create-agent-control-text": "#e6edf3",
+ "create-agent-quick-card-bg": "#0d1117",
+ "create-agent-quick-card-bg-hover": "#1c2128",
+ "create-agent-quick-card-border": "#30363d",
+ "create-agent-quick-card-icon": "#e6edf3",
+ "create-agent-quick-card-icon-bg": "#30363d",
+ "create-agent-quick-card-text": "#e6edf3",
+ "create-agent-segment-inactive-text": "#6e7681",
+ "create-agent-segment-track-bg": "#0d1117",
+ "send-btn-bg": "#e6edf3",
+ "send-btn-icon": "#0d1117",
+ "chat-input-chip-border": "#30363d",
+ "chat-input-text": "#e6edf3",
+ "color-primary": "#e6edf3",
+ "confirm-bg": "#161b22",
+ "confirm-btn-primary-bg": "#2f81f7",
+ "confirm-btn-primary-text": "#ffffff",
+ "confirm-btn-secondary-border": "#30363d",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.06)",
+ "confirm-btn-secondary-text": "#e6edf3",
+ "confirm-title": "#e6edf3",
+ "drop-overlay-bg": "rgba(47, 129, 247, 0.1)",
+ "file-chip-bg": "#30363d",
+ "file-remove-bg": "#484f58",
+ "info-700": "#79c0ff",
+ "model-trigger-hover": "#1c2128",
+ "msg-link": "#79c0ff",
+ "msg-scrollbar-hover": "#484f58",
+ "muted": "213 14% 15%",
+ "muted-foreground": "215 9% 53%",
+ "perm-allow-btn-bg": "#2f81f7",
+ "perm-allow-btn-text": "#ffffff",
+ "perm-allow-kbd-bg": "#21262d",
+ "perm-allow-kbd-border": "#30363d",
+ "perm-code-bg": "#0d1117",
+ "perm-item-selected-bg": "#21262d",
+ "plan-outline-active-bg": "#21262d",
+ "plan-toolbar-btn-hover-bg": "#1c2128",
+ "popover": "215 21% 11%",
+ "primary-foreground": "220 13% 7%",
+ "search-match-fg": "213 31% 93%",
+ "secondary": "215 21% 11%",
+ "settings-btn-primary-text": "#ffffff",
+ "settings-btn-secondary-hover-bg": "#1c2128",
+ "text-placeholder": "#484f58",
+ "settings-integration-avatar-bg": "#21262d",
+ "settings-logout-bg": "#21262d",
+ "settings-menu-bg-hover": "#1c2128",
+ "settings-menu-bg-selected": "#21262d",
+ "settings-source-link": "#79c0ff",
+ "settings-theme-auto-dark": "#0d1117",
+ "sidebar-action-icon": "215 8% 47%",
+ "sidebar-item-active": "213 14% 15%",
+ "splash-bg": "220 13% 7%",
+ "splash-text": "215 9% 53%",
+ "splash-text-destructive": "213 31% 93%",
+ "splash-text-muted": "215 8% 47%",
+ "titlebar-icon": "215 9% 53%",
+ "tooltip-bg": "#0d1117",
+ "tooltip-text": "#e6edf3",
+ "update-btn-border": "#2f81f7",
+ "update-btn-text": "#2f81f7"
+ }
+ },
+ "monokai-pro": {
+ "id": "monokai-pro",
+ "name": "Monokai Pro",
+ "type": "dark",
+ "colors": {
+ "surface": "#2D2A2E",
+ "surface-hsl": "285 4% 17%",
+ "surface-elevated": "#221F22",
+ "surface-elevated-soft": "#221F22",
+ "surface-card-ivory": "#221F22",
+ "surface-chip": "#403E41",
+ "surface-chip-alt": "#403E41",
+ "surface-hover": "#403E41",
+ "surface-hover-soft": "#403E41",
+ "surface-hover-hsl": "285 3% 25%",
+ "surface-on-card": "#2D2A2E",
+ "border-default": "#5b595c",
+ "border-default-hsl": "280 2% 36%",
+ "border-shadcn-hsl": "280 2% 36%",
+ "border-transparent-mixed": "#5b595c",
+ "text-primary": "#FCFCFA",
+ "text-primary-on-dark": "#FCFCFA",
+ "text-primary-emphasis": "#FCFCFA",
+ "text-primary-inv": "#FCFCFA",
+ "text-primary-body-strong": "#FCFCFA",
+ "text-primary-hsl": "60 25% 98%",
+ "text-secondary": "#C1C0C0",
+ "text-secondary-cross": "#C1C0C0",
+ "text-secondary-mid": "#C1C0C0",
+ "text-tertiary": "#939293",
+ "text-tertiary-stone": "#939293",
+ "text-tertiary-mid": "#939293",
+ "text-tertiary-hsl": "300 1% 57%",
+ "text-disabled": "#727072",
+ "text-disabled-tertiary": "#727072",
+ "accent-cta-bg": "#FFD866",
+ "accent-cta-bg-pure": "#FFD866",
+ "accent-emphasis": "#FFD866",
+ "accent-soft": "#FFE89A",
+ "accent-hover": "#C9A832",
+ "accent-pure-cta-fg": "#2D2A2E",
+ "switch-track-on": "#FFD866",
+ "accent": "285 3% 25%",
+ "agent-actions-rail": "#5b595c",
+ "ask-checkbox-border": "#727072",
+ "background": "285 4% 17%",
+ "create-agent-control-bg": "#2D2A2E",
+ "create-agent-control-bg-hover": "#403E41",
+ "create-agent-control-bg-pressed": "#403E41",
+ "create-agent-control-border": "#5b595c",
+ "create-agent-control-icon": "#FCFCFA",
+ "create-agent-control-text": "#FCFCFA",
+ "create-agent-quick-card-bg": "#2D2A2E",
+ "create-agent-quick-card-bg-hover": "#403E41",
+ "create-agent-quick-card-border": "#5b595c",
+ "create-agent-quick-card-icon": "#FCFCFA",
+ "create-agent-quick-card-icon-bg": "#5b595c",
+ "create-agent-quick-card-text": "#FCFCFA",
+ "create-agent-segment-inactive-text": "#939293",
+ "create-agent-segment-track-bg": "#2D2A2E",
+ "send-btn-bg": "#FCFCFA",
+ "send-btn-icon": "#2D2A2E",
+ "chat-input-chip-border": "#5b595c",
+ "chat-input-text": "#FCFCFA",
+ "color-primary": "#FCFCFA",
+ "confirm-bg": "#221F22",
+ "confirm-btn-primary-bg": "#FFD866",
+ "confirm-btn-primary-text": "#2D2A2E",
+ "confirm-btn-secondary-border": "#5b595c",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.06)",
+ "confirm-btn-secondary-text": "#FCFCFA",
+ "confirm-title": "#FCFCFA",
+ "drop-overlay-bg": "rgba(255, 216, 102, 0.1)",
+ "file-chip-bg": "#5b595c",
+ "file-remove-bg": "#727072",
+ "info-700": "#FFE89A",
+ "model-trigger-hover": "#403E41",
+ "msg-link": "#FFE89A",
+ "msg-scrollbar-hover": "#727072",
+ "muted": "285 3% 25%",
+ "muted-foreground": "0 0% 75%",
+ "perm-allow-btn-bg": "#FFD866",
+ "perm-allow-btn-text": "#2D2A2E",
+ "perm-allow-kbd-bg": "#403E41",
+ "perm-allow-kbd-border": "#5b595c",
+ "perm-code-bg": "#2D2A2E",
+ "perm-item-selected-bg": "#403E41",
+ "plan-outline-active-bg": "#403E41",
+ "plan-toolbar-btn-hover-bg": "#403E41",
+ "popover": "300 5% 13%",
+ "primary-foreground": "285 4% 17%",
+ "search-match-fg": "60 25% 98%",
+ "secondary": "300 5% 13%",
+ "settings-btn-primary-text": "#2D2A2E",
+ "settings-btn-secondary-hover-bg": "#403E41",
+ "text-placeholder": "#727072",
+ "settings-integration-avatar-bg": "#403E41",
+ "settings-logout-bg": "#403E41",
+ "settings-menu-bg-hover": "#403E41",
+ "settings-menu-bg-selected": "#403E41",
+ "settings-source-link": "#FFE89A",
+ "settings-theme-auto-dark": "#2D2A2E",
+ "sidebar-action-icon": "300 1% 57%",
+ "sidebar-item-active": "285 3% 25%",
+ "splash-bg": "285 4% 17%",
+ "splash-text": "0 0% 75%",
+ "splash-text-destructive": "60 25% 98%",
+ "splash-text-muted": "300 1% 57%",
+ "titlebar-icon": "0 0% 75%",
+ "tooltip-bg": "#2D2A2E",
+ "tooltip-text": "#FCFCFA",
+ "update-btn-border": "#FFD866",
+ "update-btn-text": "#FFD866"
+ }
+ },
+ "material-ocean-hc": {
+ "id": "material-ocean-hc",
+ "name": "Material Ocean High Contrast",
+ "type": "dark",
+ "colors": {
+ "surface": "#0F111A",
+ "surface-hsl": "231 26% 8%",
+ "surface-elevated": "#090B10",
+ "surface-elevated-soft": "#090B10",
+ "surface-card-ivory": "#090B10",
+ "surface-chip": "#1F2233",
+ "surface-chip-alt": "#1F2233",
+ "surface-hover": "#1A1C25",
+ "surface-hover-soft": "#1A1C25",
+ "surface-hover-hsl": "228 19% 12%",
+ "surface-on-card": "#0F111A",
+ "border-default": "#2A2F45",
+ "border-default-hsl": "229 25% 22%",
+ "border-shadcn-hsl": "229 25% 22%",
+ "border-transparent-mixed": "#2A2F45",
+ "text-primary": "#EEFFFF",
+ "text-primary-on-dark": "#EEFFFF",
+ "text-primary-emphasis": "#EEFFFF",
+ "text-primary-inv": "#EEFFFF",
+ "text-primary-body-strong": "#EEFFFF",
+ "text-primary-hsl": "180 100% 97%",
+ "text-secondary": "#A6ACCD",
+ "text-secondary-cross": "#A6ACCD",
+ "text-secondary-mid": "#A6ACCD",
+ "text-tertiary": "#717CB4",
+ "text-tertiary-stone": "#717CB4",
+ "text-tertiary-mid": "#717CB4",
+ "text-tertiary-hsl": "226 31% 57%",
+ "text-disabled": "#464B5D",
+ "text-disabled-tertiary": "#464B5D",
+ "accent-cta-bg": "#80CBC4",
+ "accent-cta-bg-pure": "#80CBC4",
+ "accent-emphasis": "#80CBC4",
+ "accent-soft": "#B2DFDB",
+ "accent-hover": "#26A69A",
+ "accent-pure-cta-fg": "#0F111A",
+ "switch-track-on": "#80CBC4",
+ "accent": "228 19% 12%",
+ "agent-actions-rail": "#2A2F45",
+ "ask-checkbox-border": "#464B5D",
+ "background": "231 26% 8%",
+ "create-agent-control-bg": "#0F111A",
+ "create-agent-control-bg-hover": "#1A1C25",
+ "create-agent-control-bg-pressed": "#1F2233",
+ "create-agent-control-border": "#2A2F45",
+ "create-agent-control-icon": "#EEFFFF",
+ "create-agent-control-text": "#EEFFFF",
+ "create-agent-quick-card-bg": "#0F111A",
+ "create-agent-quick-card-bg-hover": "#1A1C25",
+ "create-agent-quick-card-border": "#2A2F45",
+ "create-agent-quick-card-icon": "#EEFFFF",
+ "create-agent-quick-card-icon-bg": "#2A2F45",
+ "create-agent-quick-card-text": "#EEFFFF",
+ "create-agent-segment-inactive-text": "#717CB4",
+ "create-agent-segment-track-bg": "#0F111A",
+ "send-btn-bg": "#EEFFFF",
+ "send-btn-icon": "#0F111A",
+ "chat-input-chip-border": "#2A2F45",
+ "chat-input-text": "#EEFFFF",
+ "color-primary": "#EEFFFF",
+ "confirm-bg": "#090B10",
+ "confirm-btn-primary-bg": "#80CBC4",
+ "confirm-btn-primary-text": "#0F111A",
+ "confirm-btn-secondary-border": "#2A2F45",
+ "confirm-btn-secondary-hover": "rgba(255, 255, 255, 0.06)",
+ "confirm-btn-secondary-text": "#EEFFFF",
+ "confirm-title": "#EEFFFF",
+ "drop-overlay-bg": "rgba(128, 203, 196, 0.1)",
+ "file-chip-bg": "#2A2F45",
+ "file-remove-bg": "#464B5D",
+ "info-700": "#B2DFDB",
+ "model-trigger-hover": "#1A1C25",
+ "msg-link": "#B2DFDB",
+ "msg-scrollbar-hover": "#464B5D",
+ "muted": "229 25% 16%",
+ "muted-foreground": "228 33% 73%",
+ "perm-allow-btn-bg": "#80CBC4",
+ "perm-allow-btn-text": "#0F111A",
+ "perm-allow-kbd-bg": "#1F2233",
+ "perm-allow-kbd-border": "#2A2F45",
+ "perm-code-bg": "#0F111A",
+ "perm-item-selected-bg": "#1F2233",
+ "plan-outline-active-bg": "#1F2233",
+ "plan-toolbar-btn-hover-bg": "#1A1C25",
+ "popover": "226 28% 5%",
+ "primary-foreground": "231 26% 8%",
+ "search-match-fg": "180 100% 97%",
+ "secondary": "226 28% 5%",
+ "settings-btn-primary-text": "#0F111A",
+ "settings-btn-secondary-hover-bg": "#1A1C25",
+ "text-placeholder": "#464B5D",
+ "settings-integration-avatar-bg": "#1F2233",
+ "settings-logout-bg": "#1F2233",
+ "settings-menu-bg-hover": "#1A1C25",
+ "settings-menu-bg-selected": "#1F2233",
+ "settings-source-link": "#B2DFDB",
+ "settings-theme-auto-dark": "#0F111A",
+ "sidebar-action-icon": "226 31% 57%",
+ "sidebar-item-active": "229 25% 16%",
+ "splash-bg": "231 26% 8%",
+ "splash-text": "228 33% 73%",
+ "splash-text-destructive": "180 100% 97%",
+ "splash-text-muted": "226 31% 57%",
+ "titlebar-icon": "228 33% 73%",
+ "tooltip-bg": "#0F111A",
+ "tooltip-text": "#EEFFFF",
+ "update-btn-border": "#80CBC4",
+ "update-btn-text": "#80CBC4"
+ }
+ }
+ }
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/desktop-color-defaults.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/desktop-color-defaults.json
new file mode 100644
index 0000000000..e740170c8d
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/desktop-color-defaults.json
@@ -0,0 +1,2576 @@
+{
+ "source": "apps/desktop/src/renderer/themes/colors.ts",
+ "count": 514,
+ "colors": [
+ {
+ "id": "surface",
+ "light": "#f8f8f6",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "surface-hsl",
+ "light": "60 12.5% 97%",
+ "dark": "60 2% 12%"
+ },
+ {
+ "id": "surface-elevated",
+ "light": "#ffffff",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "surface-elevated-soft",
+ "light": "#e5e5e5",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "surface-card-ivory",
+ "light": "#faf9f5",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "surface-chip",
+ "light": "#e5e5e5",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "surface-chip-alt",
+ "light": "#e5e5e5",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "surface-hover",
+ "light": "#e5e5e5",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "surface-hover-soft",
+ "light": "#f8f8f6",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "surface-hover-hsl",
+ "light": "0 0% 90%",
+ "dark": "60 2% 17%"
+ },
+ {
+ "id": "surface-on-card",
+ "light": "#ffffff",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "panel-bg",
+ "light": "var(--surface)",
+ "dark": "var(--surface)"
+ },
+ {
+ "id": "md-table-bg",
+ "light": "rgba(236, 236, 234, 0.55)",
+ "dark": "rgba(44, 44, 42, 0.55)"
+ },
+ {
+ "id": "md-h1-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-h2-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-h3-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-h4-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-h5-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-h6-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "md-strong-fg",
+ "light": "inherit",
+ "dark": "inherit"
+ },
+ {
+ "id": "border-default",
+ "light": "#d7d7d4",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "border-default-hsl",
+ "light": "60 3% 84%",
+ "dark": "60 2% 23%"
+ },
+ {
+ "id": "border-shadcn-hsl",
+ "light": "0 0% 90%",
+ "dark": "30 4% 28%"
+ },
+ {
+ "id": "border-transparent-mixed",
+ "light": "transparent",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "board",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "text-primary",
+ "light": "#262626",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "text-primary-on-dark",
+ "light": "#262626",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "text-primary-emphasis",
+ "light": "#1a1a1a",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "text-primary-inv",
+ "light": "#1a1a1a",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "text-primary-body-strong",
+ "light": "#525252",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "text-primary-hsl",
+ "light": "0 0% 9%",
+ "dark": "0 0% 83%"
+ },
+ {
+ "id": "text-secondary",
+ "light": "#737373",
+ "dark": "#a3a3a3"
+ },
+ {
+ "id": "text-secondary-cross",
+ "light": "#a3a3a3",
+ "dark": "#a3a3a3"
+ },
+ {
+ "id": "text-secondary-mid",
+ "light": "#525252",
+ "dark": "#a3a3a3"
+ },
+ {
+ "id": "text-tertiary",
+ "light": "#a3a3a3",
+ "dark": "#737373"
+ },
+ {
+ "id": "text-tertiary-stone",
+ "light": "#737373",
+ "dark": "#737373"
+ },
+ {
+ "id": "text-tertiary-mid",
+ "light": "#525252",
+ "dark": "#737373"
+ },
+ {
+ "id": "text-tertiary-hsl",
+ "light": "0 0% 45%",
+ "dark": "0 0% 45%"
+ },
+ {
+ "id": "text-disabled",
+ "light": "#d4d4d4",
+ "dark": "#525252"
+ },
+ {
+ "id": "text-disabled-tertiary",
+ "light": "#a3a3a3",
+ "dark": "#737373"
+ },
+ {
+ "id": "text-placeholder",
+ "light": "#c4c4c4",
+ "dark": "#525252"
+ },
+ {
+ "id": "accent-cta-bg",
+ "light": "#262626",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "accent-cta-bg-pure",
+ "light": "#000000",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "accent-emphasis",
+ "light": "#262626",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "accent-soft",
+ "light": "#262626",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "accent-hover",
+ "light": "#262626",
+ "dark": "#e5e5e5"
+ },
+ {
+ "id": "accent-pure-cta-fg",
+ "light": "#ffffff",
+ "dark": "#000000"
+ },
+ {
+ "id": "error-flat",
+ "light": "#ef4444",
+ "dark": "#ef4444"
+ },
+ {
+ "id": "warning-accent",
+ "light": "#EA6B17",
+ "dark": "#EA6B17"
+ },
+ {
+ "id": "process-agent-task-icon",
+ "light": "#2563EB",
+ "dark": "#60A5FA"
+ },
+ {
+ "id": "process-agent-service-icon",
+ "light": "#7C3AED",
+ "dark": "#A78BFA"
+ },
+ {
+ "id": "process-main-icon",
+ "light": "#DB2777",
+ "dark": "#F472B6"
+ },
+ {
+ "id": "process-renderer-icon",
+ "light": "#0891B2",
+ "dark": "#22D3EE"
+ },
+ {
+ "id": "process-gpu-icon",
+ "light": "#D97706",
+ "dark": "#F59E0B"
+ },
+ {
+ "id": "process-utility-icon",
+ "light": "#059669",
+ "dark": "#34D399"
+ },
+ {
+ "id": "shadow-soft-panel",
+ "light": "0 4px 12px rgb(0 0 0 / 0.08)",
+ "dark": "0 4px 12px rgb(0 0 0 / 0.3)"
+ },
+ {
+ "id": "background",
+ "light": "0 0% 100%",
+ "dark": "60 3% 14%"
+ },
+ {
+ "id": "foreground",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "muted",
+ "light": "0 0% 96%",
+ "dark": "30 6% 20%"
+ },
+ {
+ "id": "muted-foreground",
+ "light": "0 0% 45%",
+ "dark": "24 5% 64%"
+ },
+ {
+ "id": "border",
+ "light": "var(--border-shadcn-hsl)",
+ "dark": "var(--border-shadcn-hsl)"
+ },
+ {
+ "id": "input",
+ "light": "var(--border-shadcn-hsl)",
+ "dark": "var(--border-shadcn-hsl)"
+ },
+ {
+ "id": "switch-track-off",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "switch-thumb-off",
+ "light": "var(--surface-on-card)",
+ "dark": "var(--surface-on-card)"
+ },
+ {
+ "id": "switch-disabled-opacity",
+ "light": "0.3",
+ "dark": "0.3"
+ },
+ {
+ "id": "switch-disabled-thumb-opacity",
+ "light": "0.5",
+ "dark": "0.5"
+ },
+ {
+ "id": "switch-track-on",
+ "light": "hsl(var(--primary))",
+ "dark": "hsl(var(--primary))"
+ },
+ {
+ "id": "ring",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "primary",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "primary-foreground",
+ "light": "0 0% 98%",
+ "dark": "60 3% 14%"
+ },
+ {
+ "id": "secondary",
+ "light": "0 0% 96%",
+ "dark": "30 6% 20%"
+ },
+ {
+ "id": "secondary-foreground",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "accent",
+ "light": "0 0% 96%",
+ "dark": "30 6% 20%"
+ },
+ {
+ "id": "accent-foreground",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "popover",
+ "light": "0 0% 100%",
+ "dark": "60 3% 15%"
+ },
+ {
+ "id": "popover-foreground",
+ "light": "var(--text-primary-hsl)",
+ "dark": "var(--text-primary-hsl)"
+ },
+ {
+ "id": "radius",
+ "light": "0.5rem",
+ "dark": null
+ },
+ {
+ "id": "titlebar",
+ "light": "var(--surface-hsl)",
+ "dark": "var(--surface-hsl)"
+ },
+ {
+ "id": "titlebar-border",
+ "light": "var(--border-default-hsl)",
+ "dark": "var(--border-default-hsl)"
+ },
+ {
+ "id": "titlebar-icon",
+ "light": "0 0% 45%",
+ "dark": "0 0% 63.92%"
+ },
+ {
+ "id": "titlebar-button-hover",
+ "light": "var(--surface-hover-hsl)",
+ "dark": "var(--surface-hover-hsl)"
+ },
+ {
+ "id": "titlebar-control-hover",
+ "light": "var(--surface-hover-hsl)",
+ "dark": "var(--surface-hover-hsl)"
+ },
+ {
+ "id": "splash-bg",
+ "light": "60 12.45% 96.86%",
+ "dark": "60 1.64% 11.96%"
+ },
+ {
+ "id": "splash-text",
+ "light": "0 0% 45.1%",
+ "dark": "0 0% 63.92%"
+ },
+ {
+ "id": "splash-text-muted",
+ "light": "30 3.6% 62.55%",
+ "dark": "30 2.78% 43.73%"
+ },
+ {
+ "id": "splash-text-destructive",
+ "light": "0 0% 14.9%",
+ "dark": "0 0% 100%"
+ },
+ {
+ "id": "splash-fade-duration",
+ "light": "400ms",
+ "dark": null
+ },
+ {
+ "id": "splash-fade-easing",
+ "light": "cubic-bezier(0.4, 0, 1, 1)",
+ "dark": null
+ },
+ {
+ "id": "destructive",
+ "light": "0 84% 60%",
+ "dark": "0 72% 63%"
+ },
+ {
+ "id": "confirm-bg",
+ "light": "#fafafa",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "confirm-shadow",
+ "light": "var(--shadow-soft-panel)",
+ "dark": "var(--shadow-soft-panel)"
+ },
+ {
+ "id": "confirm-title",
+ "light": "#171717",
+ "dark": "#fafafa"
+ },
+ {
+ "id": "confirm-desc",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "confirm-btn-primary-bg",
+ "light": "#171717",
+ "dark": "#fafafa"
+ },
+ {
+ "id": "confirm-btn-primary-text",
+ "light": "#fafafa",
+ "dark": "#171717"
+ },
+ {
+ "id": "confirm-btn-primary-hover",
+ "light": "var(--accent-hover)",
+ "dark": "var(--accent-hover)"
+ },
+ {
+ "id": "confirm-btn-secondary-text",
+ "light": "#262626",
+ "dark": "#fafafa"
+ },
+ {
+ "id": "confirm-btn-secondary-border",
+ "light": "#d4d4d4",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "confirm-btn-secondary-hover",
+ "light": "rgba(0, 0, 0, 0.04)",
+ "dark": "rgba(255, 255, 255, 0.06)"
+ },
+ {
+ "id": "sidebar",
+ "light": "var(--surface-hsl)",
+ "dark": "var(--surface-hsl)"
+ },
+ {
+ "id": "sidebar-border",
+ "light": "var(--border-default-hsl)",
+ "dark": "var(--border-default-hsl)"
+ },
+ {
+ "id": "sidebar-item-hover",
+ "light": "var(--surface-hover-hsl)",
+ "dark": "var(--surface-hover-hsl)"
+ },
+ {
+ "id": "sidebar-item-active",
+ "light": "0 0% 90%",
+ "dark": "60 2% 17%"
+ },
+ {
+ "id": "sidebar-item-active-foreground",
+ "light": "var(--foreground)",
+ "dark": "var(--foreground)"
+ },
+ {
+ "id": "sidebar-item-active-border",
+ "light": "var(--sidebar-item-active)",
+ "dark": "var(--sidebar-item-active)"
+ },
+ {
+ "id": "sidebar-search-bg",
+ "light": "var(--surface-hsl)",
+ "dark": "var(--surface-hsl)"
+ },
+ {
+ "id": "sidebar-muted",
+ "light": "var(--text-tertiary-hsl)",
+ "dark": "var(--text-tertiary-hsl)"
+ },
+ {
+ "id": "sidebar-action-icon",
+ "light": "0 0% 64%",
+ "dark": "0 0% 45%"
+ },
+ {
+ "id": "search-match-bg",
+ "light": "53 100% 89%",
+ "dark": "40 33% 16%"
+ },
+ {
+ "id": "search-match-fg",
+ "light": "0 0% 15%",
+ "dark": "0 0% 90%"
+ },
+ {
+ "id": "update-btn-border",
+ "light": "#d4d4d4",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "update-btn-text",
+ "light": "#404040",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "update-btn-hover",
+ "light": "rgba(0, 0, 0, 0.04)",
+ "dark": "rgba(255, 255, 255, 0.06)"
+ },
+ {
+ "id": "update-btn-bg",
+ "light": "transparent",
+ "dark": "transparent"
+ },
+ {
+ "id": "content-area",
+ "light": "var(--surface-hsl)",
+ "dark": "var(--surface-hsl)"
+ },
+ {
+ "id": "welcome-text",
+ "light": "var(--text-tertiary-hsl)",
+ "dark": "var(--text-tertiary-hsl)"
+ },
+ {
+ "id": "login-bg-base",
+ "light": "#EDEDED",
+ "dark": "#1F1F1E"
+ },
+ {
+ "id": "login-bg-gradient-radial",
+ "light": "none",
+ "dark": "none"
+ },
+ {
+ "id": "login-bg-gradient-linear",
+ "light": "none",
+ "dark": "none"
+ },
+ {
+ "id": "login-panel-border",
+ "light": "#D4D4D4",
+ "dark": "#434343"
+ },
+ {
+ "id": "login-brand-accent",
+ "light": "#DF0C27",
+ "dark": "#DF0C27"
+ },
+ {
+ "id": "login-brand-accent-pressed",
+ "light": "#A61629",
+ "dark": "#A61629"
+ },
+ {
+ "id": "login-link-pressed",
+ "light": "#1A1818",
+ "dark": "#C0BEBE"
+ },
+ {
+ "id": "login-callback-card-bg",
+ "light": "#FBFBFB",
+ "dark": "#312F2F"
+ },
+ {
+ "id": "login-callback-card-border",
+ "light": "#D4D4D4",
+ "dark": "#434343"
+ },
+ {
+ "id": "login-callback-title",
+ "light": "#252222",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "login-callback-body",
+ "light": "#6F6F6F",
+ "dark": "#6F6F6F"
+ },
+ {
+ "id": "login-callback-cta-bg",
+ "light": "#2A2828",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-callback-cta-border",
+ "light": "#434343",
+ "dark": "#FFFFFF"
+ },
+ {
+ "id": "login-callback-cta-text",
+ "light": "#D4D4D4",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-panel-bg",
+ "light": "#FBFBFB",
+ "dark": "#312F2F"
+ },
+ {
+ "id": "login-control-bg",
+ "light": "#EEEEEE",
+ "dark": "#2C2A2A"
+ },
+ {
+ "id": "login-action-control-bg",
+ "light": "#EEEEEE",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-back-border",
+ "light": "#FFFFFF",
+ "dark": "#434343"
+ },
+ {
+ "id": "login-control-border",
+ "light": "#D4D4D4",
+ "dark": "#434343"
+ },
+ {
+ "id": "login-control-border-active",
+ "light": "#2A2828",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-control-border-disabled",
+ "light": "#B4B4B4",
+ "dark": "#B4B4B4"
+ },
+ {
+ "id": "login-control-text",
+ "light": "#252222",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-control-placeholder",
+ "light": "#D4D4D4",
+ "dark": "#6F6F6F"
+ },
+ {
+ "id": "login-title-text",
+ "light": "#252222",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "login-secondary-text",
+ "light": "#6F6F6F",
+ "dark": "#6F6F6F"
+ },
+ {
+ "id": "login-primary-button-bg",
+ "light": "#2A2828",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-primary-button-border",
+ "light": "#434343",
+ "dark": "#FFFFFF"
+ },
+ {
+ "id": "login-primary-button-text",
+ "light": "#D4D4D4",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-disabled-button-overlay",
+ "light": "rgba(255, 255, 255, 0.7)",
+ "dark": "rgba(255, 255, 255, 0.7)"
+ },
+ {
+ "id": "login-disabled-button-bg",
+ "light": "#2A2828",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-disabled-button-text",
+ "light": "#D4D4D4",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "login-inverted-button-border",
+ "light": "#FFFFFF",
+ "dark": "#FFFFFF"
+ },
+ {
+ "id": "login-link-text",
+ "light": "#2A2828",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-link-hover",
+ "light": "#4A4848",
+ "dark": "#A8A8A8"
+ },
+ {
+ "id": "login-error-fg",
+ "light": "#D91F37",
+ "dark": "#D91F37"
+ },
+ {
+ "id": "login-deletion-bubble-bg",
+ "light": "#FFFFFF",
+ "dark": "#1F1F1E"
+ },
+ {
+ "id": "login-deletion-bubble-border",
+ "light": "#D7D7D4",
+ "dark": "#3C3C3A"
+ },
+ {
+ "id": "login-splash-progress-track",
+ "light": "#D9D9D9",
+ "dark": "#434343"
+ },
+ {
+ "id": "login-splash-progress-fill",
+ "light": "#252222",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "login-overlay-button-hover",
+ "light": "rgba(255, 255, 255, 0.08)",
+ "dark": "rgba(0, 0, 0, 0.05)"
+ },
+ {
+ "id": "login-overlay-button-pressed",
+ "light": "rgba(0, 0, 0, 0.5)",
+ "dark": "rgba(0, 0, 0, 0.1)"
+ },
+ {
+ "id": "login-overlay-back-hover",
+ "light": "rgba(255, 255, 255, 0.7)",
+ "dark": "rgba(255, 255, 255, 0.08)"
+ },
+ {
+ "id": "login-overlay-back-pressed",
+ "light": "rgba(0, 0, 0, 0.08)",
+ "dark": "rgba(0, 0, 0, 0.08)"
+ },
+ {
+ "id": "login-overlay-row-hover",
+ "light": "rgba(255, 255, 255, 0.08)",
+ "dark": "rgba(255, 255, 255, 0.08)"
+ },
+ {
+ "id": "login-overlay-row-pressed",
+ "light": "rgba(0, 0, 0, 0.08)",
+ "dark": "rgba(0, 0, 0, 0.08)"
+ },
+ {
+ "id": "login-overlay-input-hover",
+ "light": "rgba(0, 0, 0, 0.05)",
+ "dark": "rgba(255, 255, 255, 0.05)"
+ },
+ {
+ "id": "login-loading-ring-track",
+ "light": "rgba(42, 40, 40, 0.18)",
+ "dark": "rgba(212, 212, 212, 0.18)"
+ },
+ {
+ "id": "login-consent-radio-bg",
+ "light": "#F1F0F1",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-consent-radio-border",
+ "light": "#434343",
+ "dark": "#F1F0F1"
+ },
+ {
+ "id": "login-consent-radio-checked-bg",
+ "light": "#2A2828",
+ "dark": "#F1F0F1"
+ },
+ {
+ "id": "login-consent-radio-check",
+ "light": "#FFFFFF",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "login-consent-overlay",
+ "light": "rgba(0, 0, 0, 0.85)",
+ "dark": "rgba(0, 0, 0, 0.85)"
+ },
+ {
+ "id": "login-secondary-button-bg",
+ "light": "#EEEEEE",
+ "dark": "#434141"
+ },
+ {
+ "id": "login-secondary-button-border",
+ "light": "#FFFFFF",
+ "dark": "#565454"
+ },
+ {
+ "id": "login-secondary-button-text",
+ "light": "#2A2828",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "login-overlay-secondary-hover",
+ "light": "rgba(255, 255, 255, 0.1)",
+ "dark": "rgba(255, 255, 255, 0.08)"
+ },
+ {
+ "id": "login-overlay-secondary-pressed",
+ "light": "rgba(0, 0, 0, 0.1)",
+ "dark": "rgba(0, 0, 0, 0.2)"
+ },
+ {
+ "id": "login-apple-circle-bg",
+ "light": "#000000",
+ "dark": "#FFFFFF"
+ },
+ {
+ "id": "lightbox-cta-bg",
+ "light": "var(--accent-cta-bg-pure)",
+ "dark": "var(--accent-cta-bg-pure)"
+ },
+ {
+ "id": "lightbox-cta-fg",
+ "light": "var(--accent-pure-cta-fg)",
+ "dark": "var(--accent-pure-cta-fg)"
+ },
+ {
+ "id": "lightbox-cta-hover",
+ "light": "var(--accent-hover)",
+ "dark": "var(--accent-hover)"
+ },
+ {
+ "id": "chat-input-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "chat-input-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "chat-input-border-focus",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "chat-input-placeholder-subtle",
+ "light": "color-mix(in srgb, var(--chat-input-placeholder) 40%, transparent)",
+ "dark": "color-mix(in srgb, var(--chat-input-placeholder) 40%, transparent)"
+ },
+ {
+ "id": "chat-input-text",
+ "light": "#000000",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "chat-input-placeholder",
+ "light": "var(--text-placeholder)",
+ "dark": "var(--text-placeholder)"
+ },
+ {
+ "id": "file-chip-bg",
+ "light": "#a3a3a3",
+ "dark": "#525252"
+ },
+ {
+ "id": "drop-overlay-bg",
+ "light": "rgba(163, 163, 163, 0.08)",
+ "dark": "rgba(115, 115, 115, 0.1)"
+ },
+ {
+ "id": "drop-overlay-border",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "tooltip-bg",
+ "light": "#262626",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "tooltip-text",
+ "light": "#ffffff",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "file-remove-bg",
+ "light": "#525252",
+ "dark": "#737373"
+ },
+ {
+ "id": "file-badge-pdf",
+ "light": "#B23A26",
+ "dark": "#B23A26"
+ },
+ {
+ "id": "file-badge-doc",
+ "light": "#2C5CA8",
+ "dark": "#2C5CA8"
+ },
+ {
+ "id": "file-badge-sheet",
+ "light": "#2E7D4F",
+ "dark": "#2E7D4F"
+ },
+ {
+ "id": "file-badge-slide",
+ "light": "#A25A12",
+ "dark": "#A25A12"
+ },
+ {
+ "id": "file-badge-code",
+ "light": "#5B49A8",
+ "dark": "#5B49A8"
+ },
+ {
+ "id": "file-badge-fg",
+ "light": "#FFFFFF",
+ "dark": "#FFFFFF"
+ },
+ {
+ "id": "chat-input-chip-bg",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "chat-input-chip-border",
+ "light": "#d7d7d4",
+ "dark": "#525250"
+ },
+ {
+ "id": "chat-input-chip-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "chat-input-chip-icon",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "cmd-palette-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "cmd-palette-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "cmd-palette-shadow",
+ "light": "var(--shadow-soft-panel)",
+ "dark": "var(--shadow-soft-panel)"
+ },
+ {
+ "id": "cmd-palette-item-hover",
+ "light": "var(--surface-hover)",
+ "dark": "var(--surface-hover)"
+ },
+ {
+ "id": "cmd-palette-item-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "cmd-palette-item-meta",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "cmd-palette-item-icon",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "cmd-palette-empty",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "cmd-palette-tooltip-body",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "send-btn-bg",
+ "light": "var(--accent-cta-bg)",
+ "dark": "var(--accent-cta-bg)"
+ },
+ {
+ "id": "send-btn-icon",
+ "light": "var(--surface-on-card)",
+ "dark": "var(--surface-on-card)"
+ },
+ {
+ "id": "send-btn-disabled-bg",
+ "light": "var(--surface-elevated-soft)",
+ "dark": "var(--surface-elevated-soft)"
+ },
+ {
+ "id": "send-btn-disabled-icon",
+ "light": "var(--text-disabled-tertiary)",
+ "dark": "var(--text-disabled-tertiary)"
+ },
+ {
+ "id": "send-btn-hover-bg",
+ "light": "var(--send-btn-bg)",
+ "dark": "var(--send-btn-bg)"
+ },
+ {
+ "id": "send-btn-pressed-bg",
+ "light": "var(--send-btn-bg)",
+ "dark": "var(--send-btn-bg)"
+ },
+ {
+ "id": "perm-code-bg",
+ "light": "#f5f5f5",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "perm-code-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "perm-allow-btn-bg",
+ "light": "#ffffff",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "perm-allow-btn-text",
+ "light": "#262626",
+ "dark": "#262626"
+ },
+ {
+ "id": "perm-allow-kbd-bg",
+ "light": "#f5f5f5",
+ "dark": "#e5e5e5"
+ },
+ {
+ "id": "perm-allow-kbd-border",
+ "light": "#d7d7d4",
+ "dark": "#d7d7d4"
+ },
+ {
+ "id": "model-trigger-hover",
+ "light": "#e5e5e5",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "model-trigger-text",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "model-trigger-meta",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "model-trigger-arrow",
+ "light": "var(--text-secondary-cross)",
+ "dark": "var(--text-secondary-cross)"
+ },
+ {
+ "id": "thinking-body-text",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "model-dropdown-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "model-dropdown-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "model-item-hover",
+ "light": "var(--surface-hover)",
+ "dark": "var(--surface-hover)"
+ },
+ {
+ "id": "model-item-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "model-item-check",
+ "light": "var(--accent-cta-bg-pure)",
+ "dark": "var(--accent-cta-bg-pure)"
+ },
+ {
+ "id": "model-item-desc",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "model-section-label",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "favorite-star",
+ "light": "#d99a06",
+ "dark": "#e8b425"
+ },
+ {
+ "id": "effort-tier-minimal",
+ "light": "#2AAE5B",
+ "dark": "#2AAE5B"
+ },
+ {
+ "id": "effort-tier-low",
+ "light": "#2AAE5B",
+ "dark": "#2AAE5B"
+ },
+ {
+ "id": "effort-tier-medium",
+ "light": "#14B8A6",
+ "dark": "#14B8A6"
+ },
+ {
+ "id": "effort-tier-high",
+ "light": "#3B82F6",
+ "dark": "#3B82F6"
+ },
+ {
+ "id": "effort-tier-xhigh",
+ "light": "#4F46E5",
+ "dark": "#4F46E5"
+ },
+ {
+ "id": "effort-tier-max",
+ "light": "#8B5CF6",
+ "dark": "#8B5CF6"
+ },
+ {
+ "id": "effort-tier-ultra",
+ "light": "#8B5CF6",
+ "dark": "#8B5CF6"
+ },
+ {
+ "id": "price-tier-t1",
+ "light": "#2AAE5B",
+ "dark": "#2AAE5B"
+ },
+ {
+ "id": "price-tier-t2",
+ "light": "#B58A1F",
+ "dark": "#B58A1F"
+ },
+ {
+ "id": "price-tier-t3",
+ "light": "#C05353",
+ "dark": "#C05353"
+ },
+ {
+ "id": "fast-accent",
+ "light": "#3B9EFF",
+ "dark": "#3B9EFF"
+ },
+ {
+ "id": "engine-badge-cc",
+ "light": "#d97757",
+ "dark": "#d97757"
+ },
+ {
+ "id": "engine-badge-codex",
+ "light": "#7a9dff",
+ "dark": "#7a9dff"
+ },
+ {
+ "id": "engine-badge-pi",
+ "light": "#a78bfa",
+ "dark": "#a78bfa"
+ },
+ {
+ "id": "perm-item-selected-bg",
+ "light": "#f8f8f6",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "perm-auto-selected-text",
+ "light": "#417CDD",
+ "dark": "#417CDD"
+ },
+ {
+ "id": "perm-bypass-selected-text",
+ "light": "var(--warning-accent)",
+ "dark": "var(--warning-accent)"
+ },
+ {
+ "id": "folder-picker-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "folder-picker-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "folder-item-hover",
+ "light": "var(--surface-hover)",
+ "dark": "var(--surface-hover)"
+ },
+ {
+ "id": "folder-item-name",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "folder-item-path",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "folder-item-icon",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "folder-label",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "folder-btn-bg",
+ "light": "var(--chat-input-bg)",
+ "dark": "var(--chat-input-bg)"
+ },
+ {
+ "id": "folder-btn-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "folder-btn-text",
+ "light": "var(--accent-soft)",
+ "dark": "var(--accent-soft)"
+ },
+ {
+ "id": "folder-btn-icon",
+ "light": "var(--accent-soft)",
+ "dark": "var(--accent-soft)"
+ },
+ {
+ "id": "workingdir-text",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "workingdir-icon",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "fast-toggle-off",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "fast-toggle-track",
+ "light": "var(--text-disabled)",
+ "dark": "var(--text-disabled)"
+ },
+ {
+ "id": "chat-placeholder-text",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "msg-user-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "msg-user-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-user-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "msg-assistant-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "msg-tool-text",
+ "light": "var(--text-secondary-mid)",
+ "dark": "var(--text-secondary-mid)"
+ },
+ {
+ "id": "msg-code-block-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "msg-code-block-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-code-inline-bg",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "msg-md-inline-code-bg",
+ "light": "rgba(175, 184, 193, 0.2)",
+ "dark": "rgba(110, 118, 129, 0.22)"
+ },
+ {
+ "id": "msg-table-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-table-header-bg",
+ "light": "var(--surface)",
+ "dark": "var(--surface)"
+ },
+ {
+ "id": "msg-blockquote-border",
+ "light": "var(--agent-actions-rail)",
+ "dark": "var(--agent-actions-rail)"
+ },
+ {
+ "id": "msg-blockquote-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "msg-hr-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-scrollbar",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-scrollbar-hover",
+ "light": "#b0b0ae",
+ "dark": "#555553"
+ },
+ {
+ "id": "msg-cursor",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "msg-link",
+ "light": "#2563eb",
+ "dark": "#60a5fa"
+ },
+ {
+ "id": "msg-tool-card-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "msg-tool-card-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "msg-tool-card-chevron",
+ "light": "var(--text-secondary-mid)",
+ "dark": "var(--text-secondary-mid)"
+ },
+ {
+ "id": "msg-tool-card-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "todo-bar-track",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "diff-del-fg",
+ "light": "#b31d28",
+ "dark": "#ff7b72"
+ },
+ {
+ "id": "diff-del-bg",
+ "light": "#ffeef0",
+ "dark": "#67060c"
+ },
+ {
+ "id": "diff-del-emphasis",
+ "light": "#ffd7d5",
+ "dark": "rgba(248, 81, 73, 0.42)"
+ },
+ {
+ "id": "diff-add-fg",
+ "light": "#22863a",
+ "dark": "#7ee787"
+ },
+ {
+ "id": "pr-open-on-light",
+ "light": "#2EA043",
+ "dark": "#2EA043"
+ },
+ {
+ "id": "pr-open-on-dark",
+ "light": "#3FB950",
+ "dark": "#3FB950"
+ },
+ {
+ "id": "diff-add-bg",
+ "light": "#f0fff4",
+ "dark": "#033a16"
+ },
+ {
+ "id": "diff-add-emphasis",
+ "light": "#acf2bd",
+ "dark": "rgba(46, 160, 67, 0.42)"
+ },
+ {
+ "id": "diff-line-num",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "info-700",
+ "light": "#1D4ED8",
+ "dark": "#60a5fa"
+ },
+ {
+ "id": "agent-actions-rail",
+ "light": "#DDD6CB",
+ "dark": "#404040"
+ },
+ {
+ "id": "annotation-accent",
+ "light": "#FF3B30",
+ "dark": "#FF3B30"
+ },
+ {
+ "id": "quota-bar-fill",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "quota-bar-warn",
+ "light": "var(--warning-fg)",
+ "dark": "var(--warning-fg)"
+ },
+ {
+ "id": "quota-bar-crit",
+ "light": "var(--error-flat)",
+ "dark": "var(--error-flat)"
+ },
+ {
+ "id": "quota-bar-track",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "status-bar-accent",
+ "light": "var(--warning-accent)",
+ "dark": "var(--warning-accent)"
+ },
+ {
+ "id": "status-badge-fg",
+ "light": "var(--accent-pure-cta-fg)",
+ "dark": "var(--accent-pure-cta-fg)"
+ },
+ {
+ "id": "surface-translucent-sidebar",
+ "light": "var(--surface)",
+ "dark": "var(--surface)"
+ },
+ {
+ "id": "surface-translucent-main",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "surface-translucent-overlay",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "sidebar-search-input-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "composer-pill-bg",
+ "light": "#FCFCFC",
+ "dark": "#393838"
+ },
+ {
+ "id": "composer-pill-icon",
+ "light": "#3C3F43",
+ "dark": "#D9D9D9"
+ },
+ {
+ "id": "status-bar-meta",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "settings-bg",
+ "light": "var(--surface)",
+ "dark": "var(--surface)"
+ },
+ {
+ "id": "settings-divider",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-back-icon",
+ "light": "var(--text-tertiary-mid)",
+ "dark": "var(--text-tertiary-mid)"
+ },
+ {
+ "id": "settings-back-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-back-hover",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-menu-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-menu-text-selected",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-menu-bg-selected",
+ "light": "#e8e8e6",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "settings-menu-border-selected",
+ "light": "var(--border-transparent-mixed)",
+ "dark": "var(--border-transparent-mixed)"
+ },
+ {
+ "id": "settings-menu-bg-hover",
+ "light": "#ececea",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "settings-section-title",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-section-desc",
+ "light": "var(--text-tertiary-mid)",
+ "dark": "var(--text-tertiary-mid)"
+ },
+ {
+ "id": "settings-section-sublabel",
+ "light": "var(--text-tertiary-mid)",
+ "dark": "var(--text-tertiary-mid)"
+ },
+ {
+ "id": "settings-profile-card-bg",
+ "light": "var(--surface-card-ivory)",
+ "dark": "var(--surface-card-ivory)"
+ },
+ {
+ "id": "settings-profile-card-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-profile-avatar-bg",
+ "light": "var(--surface-chip-alt)",
+ "dark": "var(--surface-chip-alt)"
+ },
+ {
+ "id": "settings-profile-avatar-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-profile-name",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-input-bg",
+ "light": "var(--surface-card-ivory)",
+ "dark": "var(--surface-card-ivory)"
+ },
+ {
+ "id": "settings-input-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-input-border-focus",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "settings-input-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-input-placeholder",
+ "light": "var(--text-placeholder)",
+ "dark": "var(--text-placeholder)"
+ },
+ {
+ "id": "settings-eye-icon",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "settings-eye-icon-hover",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-trash-icon",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "settings-trash-icon-hover",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-source-meta",
+ "light": "var(--text-secondary-cross)",
+ "dark": "var(--text-secondary-cross)"
+ },
+ {
+ "id": "settings-source-link",
+ "light": "#262626",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "settings-error-text",
+ "light": "var(--error-flat)",
+ "dark": "var(--error-flat)"
+ },
+ {
+ "id": "settings-badge-bg",
+ "light": "var(--surface-card-ivory)",
+ "dark": "var(--surface-card-ivory)"
+ },
+ {
+ "id": "settings-badge-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-badge-needs-config",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "settings-badge-saved",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "settings-badge-connected",
+ "light": "var(--card-status-done)",
+ "dark": "var(--card-status-done)"
+ },
+ {
+ "id": "settings-badge-connected-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-badge-error",
+ "light": "var(--error-flat)",
+ "dark": "var(--error-flat)"
+ },
+ {
+ "id": "settings-btn-primary-bg",
+ "light": "var(--accent-emphasis)",
+ "dark": "var(--accent-emphasis)"
+ },
+ {
+ "id": "settings-btn-primary-text",
+ "light": "#faf9f5",
+ "dark": "#262626"
+ },
+ {
+ "id": "settings-btn-primary-border",
+ "light": "var(--accent-emphasis)",
+ "dark": "var(--accent-emphasis)"
+ },
+ {
+ "id": "settings-btn-primary-hover-bg",
+ "light": "var(--accent-hover)",
+ "dark": "var(--accent-hover)"
+ },
+ {
+ "id": "settings-btn-secondary-bg",
+ "light": "var(--surface-chip-alt)",
+ "dark": "var(--surface-chip-alt)"
+ },
+ {
+ "id": "settings-btn-secondary-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-btn-secondary-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-btn-secondary-hover-bg",
+ "light": "#d7d7d4",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "settings-theme-card-bg",
+ "light": "var(--surface-card-ivory)",
+ "dark": "var(--surface-card-ivory)"
+ },
+ {
+ "id": "settings-theme-card-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-social-card-pressed-bg",
+ "light": "color-mix(in srgb, var(--surface-hover) 88%, var(--text-primary) 12%)",
+ "dark": "color-mix(in srgb, var(--surface-hover) 88%, var(--text-primary) 12%)"
+ },
+ {
+ "id": "settings-theme-preview-bg",
+ "light": "var(--surface)",
+ "dark": "var(--surface)"
+ },
+ {
+ "id": "settings-theme-preview-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-theme-preview-border-active",
+ "light": "var(--accent-emphasis)",
+ "dark": "var(--accent-emphasis)"
+ },
+ {
+ "id": "settings-theme-icon",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "settings-theme-icon-active",
+ "light": "var(--accent-emphasis)",
+ "dark": "var(--accent-emphasis)"
+ },
+ {
+ "id": "settings-theme-label",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "settings-theme-label-active",
+ "light": "var(--accent-emphasis)",
+ "dark": "var(--accent-emphasis)"
+ },
+ {
+ "id": "settings-theme-auto-light",
+ "light": "#f8f8f6",
+ "dark": "#f8f8f6"
+ },
+ {
+ "id": "settings-theme-auto-dark",
+ "light": "#1f1f1e",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "settings-logout-bg",
+ "light": "#faf9f5",
+ "dark": "#2c2c2a"
+ },
+ {
+ "id": "settings-logout-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "settings-logout-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-logout-icon",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-logout-hover-bg",
+ "light": "var(--surface-hover-soft)",
+ "dark": "var(--surface-hover-soft)"
+ },
+ {
+ "id": "settings-integration-avatar-bg",
+ "light": "#faf9f5",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "settings-integration-avatar-border",
+ "light": "#e8e8e6",
+ "dark": "rgba(255, 255, 255, 0.08)"
+ },
+ {
+ "id": "settings-integration-avatar-icon",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "settings-integration-subtitle",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "settings-integration-warning",
+ "light": "var(--warning-accent)",
+ "dark": "var(--warning-accent)"
+ },
+ {
+ "id": "remote-status-ready",
+ "light": "#2AAE5B",
+ "dark": "#2AAE5B"
+ },
+ {
+ "id": "remote-status-progress",
+ "light": "#f59e0b",
+ "dark": "#f59e0b"
+ },
+ {
+ "id": "remote-status-failed",
+ "light": "#D91F37",
+ "dark": "#D91F37"
+ },
+ {
+ "id": "card-status-awaiting",
+ "light": "#19D2C1",
+ "dark": "#19D2C1"
+ },
+ {
+ "id": "sidebar-draft-indicator",
+ "light": "#0B726B",
+ "dark": "var(--card-status-awaiting)"
+ },
+ {
+ "id": "card-status-error",
+ "light": "#D91F37",
+ "dark": "#D91F37"
+ },
+ {
+ "id": "card-status-done",
+ "light": "#2AAE5B",
+ "dark": "#2AAE5B"
+ },
+ {
+ "id": "completion-badge-fg",
+ "light": "#1f1f1e",
+ "dark": "#1f1f1e"
+ },
+ {
+ "id": "remote-status-disconnected",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "ask-card-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "ask-card-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "ask-header-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "ask-page-text",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "ask-option-label",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "ask-option-desc",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "ask-option-custom",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "ask-option-divider",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "ask-option-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "ask-badge-bg",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "ask-badge-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "ask-header-chip-bg",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "ask-option-list-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "ask-input-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "ask-input-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "ask-input-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "ask-input-placeholder",
+ "light": "var(--text-placeholder)",
+ "dark": "var(--text-placeholder)"
+ },
+ {
+ "id": "ask-send-bg",
+ "light": "var(--accent-cta-bg)",
+ "dark": "var(--accent-cta-bg)"
+ },
+ {
+ "id": "ask-send-text",
+ "light": "var(--surface-on-card)",
+ "dark": "var(--surface-on-card)"
+ },
+ {
+ "id": "ask-send-disabled-bg",
+ "light": "var(--surface-elevated-soft)",
+ "dark": "var(--surface-elevated-soft)"
+ },
+ {
+ "id": "ask-send-disabled-text",
+ "light": "var(--text-disabled-tertiary)",
+ "dark": "var(--text-disabled-tertiary)"
+ },
+ {
+ "id": "ask-answered-text",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "ask-expired-text",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "ask-option-hover",
+ "light": "var(--surface-hover-soft)",
+ "dark": "var(--surface-hover-soft)"
+ },
+ {
+ "id": "ask-checkbox-border",
+ "light": "#525250",
+ "dark": "#525250"
+ },
+ {
+ "id": "ask-checkbox-checked-bg",
+ "light": "var(--accent-cta-bg)",
+ "dark": "var(--accent-cta-bg)"
+ },
+ {
+ "id": "ask-checkbox-checked-icon",
+ "light": "var(--surface-on-card)",
+ "dark": "var(--surface-on-card)"
+ },
+ {
+ "id": "plan-card-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "plan-card-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "plan-header-title",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-header-hint",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "plan-header-divider",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "plan-toolbar-btn-icon",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "plan-toolbar-btn-hover-bg",
+ "light": "#e8e8e5",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "plan-outline-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "plan-outline-border",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "plan-outline-label",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "plan-outline-item-text",
+ "light": "var(--text-tertiary-stone)",
+ "dark": "var(--text-tertiary-stone)"
+ },
+ {
+ "id": "plan-outline-active-bg",
+ "light": "#e8e8e5",
+ "dark": "#3c3c3a"
+ },
+ {
+ "id": "plan-outline-active-text",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-content-bg",
+ "light": "var(--surface-elevated)",
+ "dark": "var(--surface-elevated)"
+ },
+ {
+ "id": "plan-content-section",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-content-body",
+ "light": "var(--text-primary-body-strong)",
+ "dark": "var(--text-primary-body-strong)"
+ },
+ {
+ "id": "plan-content-divider",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "plan-edit-body",
+ "light": "var(--text-primary-body-strong)",
+ "dark": "var(--text-primary-body-strong)"
+ },
+ {
+ "id": "plan-action-approve-text",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-action-approve-enter",
+ "light": "var(--text-secondary-cross)",
+ "dark": "var(--text-secondary-cross)"
+ },
+ {
+ "id": "plan-action-row-divider",
+ "light": "var(--border-default)",
+ "dark": "var(--border-default)"
+ },
+ {
+ "id": "plan-action-fb-icon",
+ "light": "var(--text-secondary-cross)",
+ "dark": "var(--text-secondary-cross)"
+ },
+ {
+ "id": "plan-action-fb-placeholder",
+ "light": "var(--text-placeholder)",
+ "dark": "var(--text-placeholder)"
+ },
+ {
+ "id": "plan-action-fb-text",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-action-row-hover-bg",
+ "light": "var(--surface-hover-soft)",
+ "dark": "var(--surface-hover-soft)"
+ },
+ {
+ "id": "plan-action-approve-icon-bg",
+ "light": "var(--warning-accent)",
+ "dark": "var(--warning-accent)"
+ },
+ {
+ "id": "plan-action-approve-icon-fg",
+ "light": "#ffffff",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "plan-min-title",
+ "light": "var(--text-primary-emphasis)",
+ "dark": "var(--text-primary-emphasis)"
+ },
+ {
+ "id": "plan-min-icon",
+ "light": "var(--text-secondary-cross)",
+ "dark": "var(--text-secondary-cross)"
+ },
+ {
+ "id": "plan-bubble-badge-bg",
+ "light": "var(--surface-chip)",
+ "dark": "var(--surface-chip)"
+ },
+ {
+ "id": "plan-bubble-badge-text",
+ "light": "var(--text-primary)",
+ "dark": "var(--text-primary)"
+ },
+ {
+ "id": "plan-bubble-body-text",
+ "light": "var(--text-primary-body-strong)",
+ "dark": "var(--text-primary-body-strong)"
+ },
+ {
+ "id": "plan-bubble-summary-text",
+ "light": "var(--text-secondary)",
+ "dark": "var(--text-secondary)"
+ },
+ {
+ "id": "color-primary",
+ "light": "#171717",
+ "dark": "#d4d4d4"
+ },
+ {
+ "id": "color-neutral-300",
+ "light": "var(--text-disabled)",
+ "dark": "var(--text-disabled)"
+ },
+ {
+ "id": "color-neutral-400",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "color-error-600",
+ "light": "var(--error-flat)",
+ "dark": "var(--error-flat)"
+ },
+ {
+ "id": "color-error-700",
+ "light": "#dc2626",
+ "dark": "#dc2626"
+ },
+ {
+ "id": "focus-ring",
+ "light": "#417CDD",
+ "dark": "#417CDD"
+ },
+ {
+ "id": "focus-ring-soft",
+ "light": "rgba(65, 124, 221, 0.5)",
+ "dark": "rgba(65, 124, 221, 0.5)"
+ },
+ {
+ "id": "text-selection-bg",
+ "light": "var(--focus-ring-soft)",
+ "dark": "var(--focus-ring-soft)"
+ },
+ {
+ "id": "shadow-chip-raised",
+ "light": "0 1px 2px rgba(0, 0, 0, 0.12)",
+ "dark": "0 1px 2px rgba(0, 0, 0, 0.4)"
+ },
+ {
+ "id": "shadow-menu",
+ "light": "0 4px 16px rgba(0, 0, 0, 0.15)",
+ "dark": "0 4px 16px rgba(0, 0, 0, 0.5)"
+ },
+ {
+ "id": "overlay-modal",
+ "light": "rgba(0, 0, 0, 0.5)",
+ "dark": "rgba(0, 0, 0, 0.7)"
+ },
+ {
+ "id": "overlay-lightbox",
+ "light": "rgba(0, 0, 0, 0.85)",
+ "dark": "rgba(0, 0, 0, 0.85)"
+ },
+ {
+ "id": "lightbox-toolbar-bg",
+ "light": "rgba(0, 0, 0, 0.6)",
+ "dark": "rgba(0, 0, 0, 0.6)"
+ },
+ {
+ "id": "lightbox-toolbar-border",
+ "light": "rgba(255, 255, 255, 0.2)",
+ "dark": "rgba(255, 255, 255, 0.2)"
+ },
+ {
+ "id": "lightbox-toolbar-fg",
+ "light": "rgba(255, 255, 255, 0.8)",
+ "dark": "rgba(255, 255, 255, 0.8)"
+ },
+ {
+ "id": "lightbox-toolbar-fg-hover",
+ "light": "#ffffff",
+ "dark": "#ffffff"
+ },
+ {
+ "id": "lightbox-toolbar-hover-bg",
+ "light": "rgba(255, 255, 255, 0.1)",
+ "dark": "rgba(255, 255, 255, 0.1)"
+ },
+ {
+ "id": "error-bg",
+ "light": "#fef2f2",
+ "dark": "#3a2222"
+ },
+ {
+ "id": "error-border",
+ "light": "rgba(220, 38, 38, 0.4)",
+ "dark": "#7f1d1d"
+ },
+ {
+ "id": "error-fg",
+ "light": "#dc2626",
+ "dark": "#f87171"
+ },
+ {
+ "id": "error-fg-strong",
+ "light": "#991b1b",
+ "dark": "#fca5a5"
+ },
+ {
+ "id": "warning-bg-soft",
+ "light": "rgba(234, 107, 23, 0.12)",
+ "dark": "rgba(234, 107, 23, 0.18)"
+ },
+ {
+ "id": "warning-fg",
+ "light": "#F3A115",
+ "dark": "#F3A115"
+ },
+ {
+ "id": "upgrade-banner-bg",
+ "light": "rgba(255, 102, 0, 0.10)",
+ "dark": "rgba(255, 102, 0, 0.16)"
+ },
+ {
+ "id": "upgrade-banner-border",
+ "light": "rgba(245, 158, 11, 0.45)",
+ "dark": "rgba(245, 158, 11, 0.55)"
+ },
+ {
+ "id": "upgrade-banner-fg",
+ "light": "#92400e",
+ "dark": "#FBBF24"
+ },
+ {
+ "id": "skillhub-review-pending-bg",
+ "light": "#fff7ed",
+ "dark": "rgba(251, 146, 60, 0.14)"
+ },
+ {
+ "id": "skillhub-review-pending-border",
+ "light": "#fed7aa",
+ "dark": "rgba(251, 146, 60, 0.35)"
+ },
+ {
+ "id": "skillhub-review-pending-fg",
+ "light": "#ea580c",
+ "dark": "#fb923c"
+ },
+ {
+ "id": "skillhub-review-quarantine-bg",
+ "light": "#fefce8",
+ "dark": "rgba(250, 204, 21, 0.12)"
+ },
+ {
+ "id": "skillhub-review-quarantine-border",
+ "light": "#fef08a",
+ "dark": "rgba(250, 204, 21, 0.35)"
+ },
+ {
+ "id": "skillhub-review-quarantine-fg",
+ "light": "#a16207",
+ "dark": "#facc15"
+ },
+ {
+ "id": "create-agent-control-bg",
+ "light": "#FCFCFC",
+ "dark": "#393838"
+ },
+ {
+ "id": "create-agent-control-bg-hover",
+ "light": "var(--surface-hover)",
+ "dark": "#444242"
+ },
+ {
+ "id": "create-agent-control-bg-pressed",
+ "light": "var(--surface-hover-soft)",
+ "dark": "#504F4F"
+ },
+ {
+ "id": "create-agent-control-border",
+ "light": "#DCDFE3",
+ "dark": "#434343"
+ },
+ {
+ "id": "create-agent-control-text",
+ "light": "#3C3F43",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "create-agent-control-icon",
+ "light": "#3C3F43",
+ "dark": "#D9D9D9"
+ },
+ {
+ "id": "create-agent-segment-track-bg",
+ "light": "#EDEDED",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "create-agent-segment-inactive-text",
+ "light": "#9A9DA3",
+ "dark": "#6F6F6F"
+ },
+ {
+ "id": "create-agent-send-bg",
+ "light": "#3C3F43",
+ "dark": "#EEEEEE"
+ },
+ {
+ "id": "create-agent-send-icon",
+ "light": "#FCFCFC",
+ "dark": "#252222"
+ },
+ {
+ "id": "create-agent-send-bg-hover",
+ "light": "#2E3237",
+ "dark": "#E2E2E2"
+ },
+ {
+ "id": "create-agent-send-bg-pressed",
+ "light": "#25282C",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "create-agent-send-disabled-bg",
+ "light": "#EDEDED",
+ "dark": "#444242"
+ },
+ {
+ "id": "create-agent-send-disabled-icon",
+ "light": "#9A9DA3",
+ "dark": "#585555"
+ },
+ {
+ "id": "create-agent-focus-ring",
+ "light": "var(--text-tertiary)",
+ "dark": "var(--text-tertiary)"
+ },
+ {
+ "id": "create-agent-quick-card-bg",
+ "light": "#F8F8F8",
+ "dark": "#312F2F"
+ },
+ {
+ "id": "create-agent-quick-card-border",
+ "light": "#DCDFE3",
+ "dark": "#434343"
+ },
+ {
+ "id": "create-agent-quick-card-text",
+ "light": "#3C3F43",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "create-agent-quick-card-icon-bg",
+ "light": "#EDEDED",
+ "dark": "#2A2828"
+ },
+ {
+ "id": "create-agent-quick-card-icon",
+ "light": "#3C3F43",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "create-agent-quick-card-bg-hover",
+ "light": "#FCFCFC",
+ "dark": "#3B3A3A"
+ },
+ {
+ "id": "create-agent-avatar-ring",
+ "light": "rgba(255, 255, 255, 0.08)",
+ "dark": "rgba(255, 255, 255, 0.08)"
+ },
+ {
+ "id": "create-agent-avatar-glass-bg",
+ "light": "rgba(0, 0, 0, 0.004)",
+ "dark": "rgba(0, 0, 0, 0.004)"
+ },
+ {
+ "id": "create-agent-avatar-inner-ring-start",
+ "light": "rgba(255, 255, 255, 0.29)",
+ "dark": "rgba(255, 255, 255, 0.29)"
+ },
+ {
+ "id": "create-agent-avatar-inner-ring-end",
+ "light": "rgba(255, 255, 255, 0.24)",
+ "dark": "rgba(255, 255, 255, 0.24)"
+ },
+ {
+ "id": "sidebar-nav-text",
+ "light": "#3C3F43",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "sidebar-list-muted",
+ "light": "#9A9DA3",
+ "dark": "#6F6F6F"
+ },
+ {
+ "id": "sidebar-user-card-bg",
+ "light": "rgba(255, 255, 255, 0.20)",
+ "dark": "rgba(255, 255, 255, 0.05)"
+ },
+ {
+ "id": "sidebar-user-card-bg-hover",
+ "light": "rgba(60, 63, 67, 0.06)",
+ "dark": "rgba(255, 255, 255, 0.10)"
+ },
+ {
+ "id": "sidebar-user-card-border",
+ "light": "rgba(60, 63, 67, 0.10)",
+ "dark": "rgba(255, 255, 255, 0.13)"
+ },
+ {
+ "id": "sidebar-user-card-text",
+ "light": "#3C3F43",
+ "dark": "#D4D4D4"
+ },
+ {
+ "id": "caret-accent",
+ "light": "var(--accent-cta-bg)",
+ "dark": "var(--accent-cta-bg)"
+ }
+ ]
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/external-import-missing-switch.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/external-import-missing-switch.json
new file mode 100644
index 0000000000..b48f83a566
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/external-import-missing-switch.json
@@ -0,0 +1,17 @@
+{
+ "id": "ds2b-external-import",
+ "name": "DS2b External Import",
+ "type": "light",
+ "family": "ds2b-import-family",
+ "colors": {
+ "surface": "#ffffff",
+ "surface-elevated": "#ffffff",
+ "surface-card-ivory": "#ffffff",
+ "surface-hover": "#f8f8f8",
+ "surface-hover-soft": "#ffffff",
+ "surface-on-card": "#ffffff",
+ "text-secondary": "#f0f0f0",
+ "text-placeholder": "#c4c4c4",
+ "border-default": "#dddddd"
+ }
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/legacy-placeholder.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/legacy-placeholder.json
new file mode 100644
index 0000000000..0c87bcfac6
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/legacy-placeholder.json
@@ -0,0 +1,13 @@
+{
+ "id": "ds2b-legacy-placeholder",
+ "name": "DS2b Legacy Placeholder",
+ "type": "light",
+ "colors": {
+ "surface": "#fafafa",
+ "text-primary": "#111111",
+ "settings-input-placeholder": "#c4c4c4",
+ "chat-input-placeholder": "var(--text-tertiary)",
+ "ask-input-placeholder": "var(--text-tertiary)",
+ "plan-action-fb-placeholder": "var(--text-tertiary)"
+ }
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-colors.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-colors.json
new file mode 100644
index 0000000000..450f0bc7ef
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-colors.json
@@ -0,0 +1,12 @@
+{
+ "id": "ds2b-unknown-colors",
+ "name": "DS2b Unknown Colors",
+ "type": "dark",
+ "family": "ds2b-fake-family",
+ "colors": {
+ "surface": "#101010",
+ "text-primary": "#eeeeee",
+ "my-plugin-accent": "#112233",
+ "future-slot-xyz": "var(--text-secondary)"
+ }
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-toplevel.json b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-toplevel.json
new file mode 100644
index 0000000000..53ee313e5c
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/fixtures/local-themes/unknown-toplevel.json
@@ -0,0 +1,11 @@
+{
+ "id": "ds2b-unknown-toplevel",
+ "name": "DS2b Unknown Toplevel",
+ "type": "light",
+ "author": "not-a-real-user",
+ "comment": "fake extra field for DS-2b gap freeze",
+ "version": 2,
+ "colors": {
+ "surface": "#ffffff"
+ }
+}
diff --git a/apps/desktop/src/renderer/themes/__tests__/localThemesProductionPipeline.test.ts b/apps/desktop/src/renderer/themes/__tests__/localThemesProductionPipeline.test.ts
new file mode 100644
index 0000000000..f4a2201c61
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/localThemesProductionPipeline.test.ts
@@ -0,0 +1,153 @@
+/**
+ * DS-2b 用户本地主题不变量(loader → mapWireTheme → 归一化的生产组合边界)。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ *
+ * 本文件补齐 sibling 测试各自覆盖一半、拼不到一起的那条链路:
+ * localThemesDiskInvariants 只跑 main loader,localThemesUserThemeInvariants 直接调
+ * normalizeLocalThemeColors——两者之间「loader 输出的 wire 主题经 renderer
+ * bootstrapLocalThemesSync / mapWireTheme 装载后才归一化」的生产接线没有守卫。
+ * 这里用真实 loadLocalThemesSync 读盘产出 wire payload,再喂给 renderer 侧
+ * bootstrapLocalThemesSync,对 getLocalThemes() 出来的 Theme 断言归一化结果:
+ * loader 输出形状或 renderer 映射任一侧回归(wire colors 丢 key / mapWireTheme
+ * 漏调 normalize),本文件都会红灯,而 sibling 两个文件仍绿。
+ */
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+const osMock = vi.hoisted(() => ({ homedir: '' }));
+
+vi.mock('node:os', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('node:os')>();
+ return {
+ ...actual,
+ default: { ...actual, homedir: () => osMock.homedir },
+ homedir: () => osMock.homedir,
+ };
+});
+
+vi.mock('../../../main/logger.js', () => ({
+ createLogger: () => ({
+ debug: vi.fn(),
+ info: vi.fn(),
+ warn: vi.fn(),
+ }),
+}));
+
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+import { loadLocalThemesSync, resetLocalThemesMigrationForTest } from '../../../main/local-themes/loader';
+import '../colors';
+import { bootstrapLocalThemesSync, getLocalThemes } from '../local-themes';
+import type { Theme } from '../types';
+
+const FIXTURE_DIR = fileURLToPath(new URL('./fixtures/local-themes/', import.meta.url));
+
+const FIXTURE_FILES = [
+ 'legacy-placeholder.json',
+ 'unknown-colors.json',
+ 'unknown-toplevel.json',
+ 'external-import-missing-switch.json',
+] as const;
+
+/** 用真实 loader 读盘并走 renderer 生产装载路径,返回按 id 索引的 Theme。 */
+function loadViaProductionPipeline(): Map<string, Theme> {
+ const payload = loadLocalThemesSync();
+ // bootstrapLocalThemesSync 失败只 warn 不抛;success 断言放在装载前,
+ // 让「loader 整体失败」在本测试里显式红灯而不是静默空列表。
+ expect(payload.success).toBe(true);
+ vi.stubGlobal('window', {
+ electronAPI: {
+ localThemes: {
+ listSync: () => payload,
+ },
+ },
+ });
+ bootstrapLocalThemesSync();
+ return new Map(getLocalThemes().map((theme) => [theme.id, theme]));
+}
+
+describe('DS-2b · 用户主题生产组合不变量(loader → mapWireTheme → normalize)', () => {
+ beforeEach(() => {
+ osMock.homedir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ds2b-pipeline-home-')));
+ resetLocalThemesMigrationForTest();
+ const dir = path.join(osMock.homedir, '.cindy', 'themes');
+ fs.mkdirSync(dir, { recursive: true });
+ for (const name of FIXTURE_FILES) {
+ fs.copyFileSync(path.join(FIXTURE_DIR, name), path.join(dir, name));
+ }
+ });
+
+ afterEach(() => {
+ vi.unstubAllGlobals();
+ fs.rmSync(osMock.homedir, { recursive: true, force: true });
+ });
+
+ it('真实加载 + renderer 装载后,4 个 fixture 全部到位且 id 已带 -local 后缀', () => {
+ const themes = loadViaProductionPipeline();
+ expect([...themes.keys()].sort()).toEqual([
+ 'ds2b-external-import-local',
+ 'ds2b-legacy-placeholder-local',
+ 'ds2b-unknown-colors-local',
+ 'ds2b-unknown-toplevel-local',
+ ]);
+ });
+
+ it('loader 输出的 wire colors 仍带旧 per-surface key;归一化只发生在 renderer 装载后', () => {
+ // 先证明 loader 侧没归一化:wire payload 里的旧 key 原样存在。
+ const payload = loadLocalThemesSync();
+ expect(payload.success).toBe(true);
+ if (!payload.success) return;
+ const wire = payload.themes.find((entry) => entry.id === 'ds2b-legacy-placeholder-local');
+ expect(wire?.colors['settings-input-placeholder']).toBe('#c4c4c4');
+ expect(wire?.colors['chat-input-placeholder']).toBe('var(--text-tertiary)');
+
+ // 再证明 renderer 装载后才收口——两侧断言合起来钉死「归一化必须发生在
+ // mapWireTheme 这一步」的生产契约;任何一侧挪动位置都会红灯。
+ const themes = loadViaProductionPipeline();
+ const loaded = themes.get('ds2b-legacy-placeholder-local');
+ expect(loaded?.colors['text-placeholder']).toBe('#c4c4c4');
+ expect(loaded?.colors['settings-input-placeholder']).toBeUndefined();
+ expect(loaded?.colors['chat-input-placeholder']).toBeUndefined();
+ expect(loaded?.colors['ask-input-placeholder']).toBeUndefined();
+ expect(loaded?.colors['plan-action-fb-placeholder']).toBeUndefined();
+ });
+
+ it('colors 内未知键与 family 沿生产链路透传到 Theme', () => {
+ const themes = loadViaProductionPipeline();
+ const loaded = themes.get('ds2b-unknown-colors-local');
+ expect(loaded?.colors['my-plugin-accent']).toBe('#112233');
+ expect(loaded?.colors['future-slot-xyz']).toBe('var(--text-secondary)');
+ expect(loaded?.family).toBe('ds2b-fake-family');
+ });
+
+ it('外部导入缺 Switch token 的主题经生产链路装载后补齐为可解析 hex', () => {
+ const themes = loadViaProductionPipeline();
+ const loaded = themes.get('ds2b-external-import-local');
+ expect(loaded?.colors['switch-track-off']).toMatch(/^#[0-9a-f]{6}$/);
+ expect(loaded?.colors['switch-thumb-off']).toMatch(/^#[0-9a-f]{6}$/);
+ expect(loaded?.family).toBe('ds2b-import-family');
+ });
+
+ it('顶层未知字段在生产链路中仍按当前行为丢弃(已登记缺口)', () => {
+ const themes = loadViaProductionPipeline();
+ const loaded = themes.get('ds2b-unknown-toplevel-local');
+ expect(loaded).toBeDefined();
+ expect(loaded).not.toHaveProperty('author');
+ expect(loaded?.colors.surface).toBe('#ffffff');
+ });
+
+ it('缺 family 的老文件走完生产链路后仍是可用的单家族主题', () => {
+ const themes = loadViaProductionPipeline();
+ const loaded = themes.get('ds2b-legacy-placeholder-local');
+ expect(loaded?.family).toBeUndefined();
+ expect(loaded?.name).toBe('DS2b Legacy Placeholder');
+ expect(loaded?.type).toBe('light');
+ });
+});
diff --git a/apps/desktop/src/renderer/themes/__tests__/localThemesUserThemeInvariants.test.ts b/apps/desktop/src/renderer/themes/__tests__/localThemesUserThemeInvariants.test.ts
new file mode 100644
index 0000000000..6066e46a5f
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/localThemesUserThemeInvariants.test.ts
@@ -0,0 +1,99 @@
+/**
+ * DS-2b 用户本地主题不变量(renderer 归一化)。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ *
+ * 本文件冻结 normalizeLocalThemeColors 的内存行为。磁盘字节由
+ * apps/desktop/src/main/__tests__/localThemesDiskInvariants.test.ts 守。
+ */
+import { readFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+
+import { describe, expect, it } from 'vitest';
+
+import { normalizeLocalThemeColors } from '../local-themes-normalize';
+
+const FIXTURE_DIR = './fixtures/local-themes';
+
+interface LocalThemeFixture {
+ id: string;
+ name: string;
+ type: 'light' | 'dark';
+ family?: string;
+ colors: Record<string, string>;
+}
+
+function readThemeFixture(name: string): LocalThemeFixture {
+ return JSON.parse(
+ readFileSync(fileURLToPath(new URL(`${FIXTURE_DIR}/${name}`, import.meta.url)), 'utf8'),
+ ) as LocalThemeFixture;
+}
+
+function normalizeTwice(colors: Record<string, string>): {
+ first: Record<string, string>;
+ second: Record<string, string>;
+} {
+ const first = normalizeLocalThemeColors(colors);
+ const second = normalizeLocalThemeColors(first);
+ return { first, second };
+}
+
+describe('DS-2b · 用户主题归一化不变量', () => {
+ it('归一化执行两次结果相同(幂等)', () => {
+ const fixtures = [
+ 'legacy-placeholder.json',
+ 'unknown-colors.json',
+ 'unknown-toplevel.json',
+ 'external-import-missing-switch.json',
+ ];
+ for (const name of fixtures) {
+ const theme = readThemeFixture(name);
+ const { first, second } = normalizeTwice(theme.colors);
+ expect(second, `${name} 第二次归一化必须与第一次相同`).toEqual(first);
+ }
+ });
+
+ it('colors 内未知字段在内存投影中保留', () => {
+ const theme = readThemeFixture('unknown-colors.json');
+ const { first } = normalizeTwice(theme.colors);
+ expect(first['my-plugin-accent']).toBe('#112233');
+ expect(first['future-slot-xyz']).toBe('var(--text-secondary)');
+ expect(first.surface).toBe('#101010');
+ expect(first['text-primary']).toBe('#eeeeee');
+ });
+
+ it('旧 per-surface placeholder 只在内存里收口到 text-placeholder,不要求调用方改输入对象', () => {
+ const theme = readThemeFixture('legacy-placeholder.json');
+ const input = { ...theme.colors };
+ const out = normalizeLocalThemeColors(input);
+
+ expect(input).toEqual(theme.colors);
+ expect(out['text-placeholder']).toBe('#c4c4c4');
+ expect(out['settings-input-placeholder']).toBeUndefined();
+ expect(out['chat-input-placeholder']).toBeUndefined();
+ expect(out['ask-input-placeholder']).toBeUndefined();
+ expect(out['plan-action-fb-placeholder']).toBeUndefined();
+ });
+
+ it('外部导入缺 Switch token 时只在内存补齐,输入对象不变', () => {
+ const theme = readThemeFixture('external-import-missing-switch.json');
+ const input = { ...theme.colors };
+ const out = normalizeLocalThemeColors(input);
+
+ expect(input).toEqual(theme.colors);
+ expect(out['switch-track-off']).toEqual(expect.stringMatching(/^#/));
+ expect(out['switch-thumb-off']).toEqual(expect.stringMatching(/^#/));
+ expect(theme.colors['switch-track-off']).toBeUndefined();
+ expect(theme.colors['switch-thumb-off']).toBeUndefined();
+ });
+
+ it('缺 family 的本地主题仍可归一化(老文件行为)', () => {
+ const theme = readThemeFixture('legacy-placeholder.json');
+ expect(theme.family).toBeUndefined();
+ expect(() => normalizeLocalThemeColors(theme.colors)).not.toThrow();
+ });
+});
diff --git a/apps/desktop/src/renderer/themes/__tests__/themeFreezeSupport.ts b/apps/desktop/src/renderer/themes/__tests__/themeFreezeSupport.ts
new file mode 100644
index 0000000000..acc9008a6e
--- /dev/null
+++ b/apps/desktop/src/renderer/themes/__tests__/themeFreezeSupport.ts
@@ -0,0 +1,19 @@
+/**
+ * DS-2b 快照守卫共用文案与读盘。测试专用,不进入产品代码。
+ */
+import { readFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+
+export function readJsonFixture<T>(metaUrl: string, relativeFromCaller: string): T {
+ return JSON.parse(readFileSync(fileURLToPath(new URL(relativeFromCaller, metaUrl)), 'utf8')) as T;
+}
+
+export function themeFreezeMismatch(what: string, fixturePath: string): string {
+ return [
+ `${what} 与 DS-2b 冻结快照不一致。`,
+ '红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 + 设计师批准。',
+ `更新方式:把实时提取结果写回 ${fixturePath}(同一 PR 更新快照,不要加豁免)。`,
+ '保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比「改快照 + 设计师批准」更严的门槛,不能只更新本文件。',
+ '禁止为绿灯加豁免或绕加载路径。',
+ ].join('\n');
+}
diff --git a/apps/mobile/src/__tests__/fixtures/theme-colors-snapshot.json b/apps/mobile/src/__tests__/fixtures/theme-colors-snapshot.json
new file mode 100644
index 0000000000..b63a7692ab
--- /dev/null
+++ b/apps/mobile/src/__tests__/fixtures/theme-colors-snapshot.json
@@ -0,0 +1,209 @@
+{
+ "source": "apps/mobile/src/theme/tokens.ts ThemeColors",
+ "light": {
+ "surface": "#EDEDED",
+ "surfaceElevated": "#F8F8F8",
+ "surfaceTranslucent": "rgba(237, 237, 237, 0.78)",
+ "surfaceTranslucentSidebar": "rgba(246, 246, 246, 0.90)",
+ "chatHeaderSurface": "rgba(246, 246, 246, 0.90)",
+ "chatHeaderDivider": "#DCDFE3",
+ "surfaceGlassPanel": "#F8F8F8",
+ "surfaceListRow": "#F6F6F6",
+ "surfaceListExpanded": "#EAEAEA",
+ "activeGlyph": "#DF0C27",
+ "chatCodeSurface": "#F8F8F8",
+ "chatCodeBorder": "#DCDFE3",
+ "chatInlineCodeText": "#686B72",
+ "syntaxKeyword": "#D73A49",
+ "syntaxString": "#032F62",
+ "syntaxComment": "#6A737D",
+ "syntaxNumber": "#005CC5",
+ "syntaxFunction": "#6F42C1",
+ "syntaxProperty": "#005CC5",
+ "inputCaret": "#417CDD",
+ "sheetSurface": "rgba(248, 248, 248, 0.95)",
+ "sheetActionSurface": "#F6F6F6",
+ "sheetActionBorder": "#DCDFE3",
+ "sheetActionText": "#3C3F43",
+ "sheetGrabber": "#DCDFE3",
+ "brandSplashBackground": "#DF0C27",
+ "brandSplashForeground": "#FFFFFF",
+ "brandSplashMuted": "rgba(255, 255, 255, 0.82)",
+ "betaChannelBadgeBackground": "#DF0C27",
+ "betaChannelBadgeForeground": "#FFFFFF",
+ "surfaceChip": "#F1F1F1",
+ "border": "#C6C9CE",
+ "borderTranslucent": "rgba(198, 201, 206, 0.62)",
+ "borderStrong": "#686B72",
+ "textPrimary": "#3C3F43",
+ "textSecondary": "#8C8E94",
+ "textTertiary": "#686B72",
+ "cta": "#3C3F43",
+ "ctaText": "#FCFCFC",
+ "statusReady": "#19D2C1",
+ "statusRecording": "#D91F37",
+ "statusAccent": "#EA6B17",
+ "statusAwaiting": "#19D2C1",
+ "statusError": "#D91F37",
+ "statusDone": "#2AAE5B",
+ "permAutoAccent": "#417CDD",
+ "errorText": "#3C3F43",
+ "destructive": "#f43d3f",
+ "errorBorder": "#686B72",
+ "overlay": "rgba(38, 38, 38, 0.35)",
+ "homeListFab": "#3C3F43",
+ "homeListFabBorder": "transparent",
+ "swipeActionPin": "#EA6B17",
+ "swipeActionNeutral": "#8e8e93",
+ "swipeActionArchive": "#3b82f6",
+ "swipeActionText": "#fbfbfa",
+ "login": {
+ "bgBase": "#EDEDED",
+ "brandAccent": "#DF0C27",
+ "brandAccentPressed": "#A61629",
+ "panelBg": "#FBFBFB",
+ "panelBorder": "#D4D4D4",
+ "controlBg": "#EEEEEE",
+ "actionControlBg": "#EEEEEE",
+ "backBorder": "#FFFFFF",
+ "controlBorder": "#D4D4D4",
+ "controlBorderActive": "#2A2828",
+ "controlBorderDisabled": "#B4B4B4",
+ "controlText": "#252222",
+ "controlPlaceholder": "#D4D4D4",
+ "titleText": "#252222",
+ "secondaryText": "#6F6F6F",
+ "primaryButtonBg": "#2A2828",
+ "primaryButtonBorder": "#434343",
+ "primaryButtonText": "#D4D4D4",
+ "disabledButtonOverlay": "rgba(255, 255, 255, 0.7)",
+ "disabledButtonBg": "#2A2828",
+ "disabledButtonText": "#D4D4D4",
+ "linkText": "#2A2828",
+ "linkPressed": "#1A1818",
+ "loginError": "#D91F37",
+ "sloganInk": "#2A2828",
+ "gradientTint": "#F70121",
+ "overlayButtonPressed": "rgba(0, 0, 0, 0.5)",
+ "overlayControlPressed": "rgba(0, 0, 0, 0.08)",
+ "invertedButtonBorder": "#FFFFFF",
+ "loadingRingTrack": "rgba(42, 40, 40, 0.18)",
+ "appleCircleBg": "#000000",
+ "appleLogoInk": "#FFFFFF",
+ "consentRadioBg": "#F1F0F1",
+ "consentRadioBorder": "#434343",
+ "consentRadioCheckedBg": "#2A2828",
+ "consentRadioCheck": "#FFFFFF",
+ "consentOverlay": "rgba(0, 0, 0, 0.85)",
+ "secondaryButtonBg": "#EEEEEE",
+ "secondaryButtonBorder": "#FFFFFF",
+ "secondaryButtonText": "#2A2828",
+ "overlaySecondaryPressed": "rgba(0, 0, 0, 0.1)",
+ "deletionBubbleBg": "#FFFFFF",
+ "deletionBubbleBorder": "#D7D7D4"
+ }
+ },
+ "dark": {
+ "surface": "#2A2828",
+ "surfaceElevated": "#312F2F",
+ "surfaceTranslucent": "rgba(42, 40, 40, 0.78)",
+ "surfaceTranslucentSidebar": "rgba(18, 15, 15, 0.85)",
+ "chatHeaderSurface": "rgba(37, 35, 35, 0.80)",
+ "chatHeaderDivider": "rgba(255, 255, 255, 0.05)",
+ "surfaceGlassPanel": "rgba(59, 59, 59, 0.95)",
+ "surfaceListRow": "#312F2F",
+ "surfaceListExpanded": "#2A2828",
+ "activeGlyph": "#A61629",
+ "chatCodeSurface": "#353333",
+ "chatCodeBorder": "#3C3C3C",
+ "chatInlineCodeText": "#A3A3A3",
+ "syntaxKeyword": "#FF7B72",
+ "syntaxString": "#A5D6FF",
+ "syntaxComment": "#8B949E",
+ "syntaxNumber": "#79C0FF",
+ "syntaxFunction": "#D2A8FF",
+ "syntaxProperty": "#79C0FF",
+ "inputCaret": "#417CDD",
+ "sheetSurface": "rgba(59, 59, 59, 0.95)",
+ "sheetActionSurface": "rgba(59, 59, 59, 0.5)",
+ "sheetActionBorder": "#505050",
+ "sheetActionText": "#C1C1C1",
+ "sheetGrabber": "#6F6F6F",
+ "brandSplashBackground": "#DF0C27",
+ "brandSplashForeground": "#FFFFFF",
+ "brandSplashMuted": "rgba(255, 255, 255, 0.82)",
+ "betaChannelBadgeBackground": "#DF0C27",
+ "betaChannelBadgeForeground": "#FFFFFF",
+ "surfaceChip": "#2F2D2D",
+ "border": "#434343",
+ "borderTranslucent": "rgba(67, 67, 67, 0.62)",
+ "borderStrong": "#BFC1C4",
+ "textPrimary": "#D4D4D4",
+ "textSecondary": "#6F6F6F",
+ "textTertiary": "#BFC1C4",
+ "cta": "#EEEEEE",
+ "ctaText": "#252222",
+ "statusReady": "#19D2C1",
+ "statusRecording": "#D91F37",
+ "statusAccent": "#EA6B17",
+ "statusAwaiting": "#19D2C1",
+ "statusError": "#D91F37",
+ "statusDone": "#2AAE5B",
+ "permAutoAccent": "#417CDD",
+ "errorText": "#D4D4D4",
+ "destructive": "#f43d3f",
+ "errorBorder": "#BFC1C4",
+ "overlay": "rgba(0, 0, 0, 0.45)",
+ "homeListFab": "#ECEDEF",
+ "homeListFabBorder": "#FFFFFF",
+ "swipeActionPin": "#EA6B17",
+ "swipeActionNeutral": "#636366",
+ "swipeActionArchive": "#3b82f6",
+ "swipeActionText": "#fbfbfa",
+ "login": {
+ "bgBase": "#1F1F1E",
+ "brandAccent": "#DF0C27",
+ "brandAccentPressed": "#A61629",
+ "panelBg": "#312F2F",
+ "panelBorder": "#434343",
+ "controlBg": "#2C2A2A",
+ "actionControlBg": "#2A2828",
+ "backBorder": "#434343",
+ "controlBorder": "#434343",
+ "controlBorderActive": "#EEEEEE",
+ "controlBorderDisabled": "#B4B4B4",
+ "controlText": "#EEEEEE",
+ "controlPlaceholder": "#6F6F6F",
+ "titleText": "#D4D4D4",
+ "secondaryText": "#6F6F6F",
+ "primaryButtonBg": "#EEEEEE",
+ "primaryButtonBorder": "#FFFFFF",
+ "primaryButtonText": "#2A2828",
+ "disabledButtonOverlay": "rgba(255, 255, 255, 0.7)",
+ "disabledButtonBg": "#2A2828",
+ "disabledButtonText": "#D4D4D4",
+ "linkText": "#EEEEEE",
+ "linkPressed": "#C0BEBE",
+ "loginError": "#D91F37",
+ "sloganInk": "#EDEDED",
+ "gradientTint": "#F70121",
+ "overlayButtonPressed": "rgba(0, 0, 0, 0.1)",
+ "overlayControlPressed": "rgba(0, 0, 0, 0.08)",
+ "invertedButtonBorder": "#FFFFFF",
+ "loadingRingTrack": "rgba(212, 212, 212, 0.18)",
+ "appleCircleBg": "#FFFFFF",
+ "appleLogoInk": "#000000",
+ "consentRadioBg": "#2A2828",
+ "consentRadioBorder": "#F1F0F1",
+ "consentRadioCheckedBg": "#F1F0F1",
+ "consentRadioCheck": "#2A2828",
+ "consentOverlay": "rgba(0, 0, 0, 0.85)",
+ "secondaryButtonBg": "#434141",
+ "secondaryButtonBorder": "#565454",
+ "secondaryButtonText": "#EEEEEE",
+ "overlaySecondaryPressed": "rgba(0, 0, 0, 0.2)",
+ "deletionBubbleBg": "#1F1F1E",
+ "deletionBubbleBorder": "#3C3C3A"
+ }
+ }
+}
diff --git a/apps/mobile/src/__tests__/themeColorsFreeze.test.ts b/apps/mobile/src/__tests__/themeColorsFreeze.test.ts
new file mode 100644
index 0000000000..034e771cd1
--- /dev/null
+++ b/apps/mobile/src/__tests__/themeColorsFreeze.test.ts
@@ -0,0 +1,79 @@
+/**
+ * DS-2b Mobile ThemeColors 冻结守卫。
+ *
+ * 红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 +
+ * 设计师批准;禁止为绿灯加豁免或绕加载路径。
+ *
+ * 保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比
+ * 「改快照 + 设计师批准」更严的门槛,见治理合同 §1.1。
+ *
+ * 只冻结 ThemeColors(含嵌套 login)。spacing / radius / typeScale 不在本张范围。
+ */
+import { readFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+
+import { describe, expect, it } from 'vitest';
+
+import { darkColors, lightColors, type ThemeColors } from '@/theme/tokens';
+
+const FIXTURE = 'apps/mobile/src/__tests__/fixtures/theme-colors-snapshot.json';
+
+interface ThemeColorsSnapshot {
+ source: string;
+ light: ThemeColors;
+ dark: ThemeColors;
+}
+
+function themeFreezeMismatch(what: string): string {
+ return [
+ `${what} 与 DS-2b 冻结快照不一致。`,
+ '红灯不是禁令。有意改值的合法路径 = 同一 PR 更新本快照 + 按治理合同 §6 交证据 + 设计师批准。',
+ `更新方式:把实时提取结果写回 ${FIXTURE}(同一 PR 更新快照,不要加豁免)。`,
+ '保护值(CINDY 皮肤族 DESIGN.md §15、U2 二级信息色、annotation-accent)另有比「改快照 + 设计师批准」更严的门槛,不能只更新本文件。',
+ '禁止为绿灯加豁免或绕加载路径。',
+ ].join('\n');
+}
+
+function readSnapshot(): ThemeColorsSnapshot {
+ return JSON.parse(
+ readFileSync(fileURLToPath(new URL('./fixtures/theme-colors-snapshot.json', import.meta.url)), 'utf8'),
+ ) as ThemeColorsSnapshot;
+}
+
+function topLevelKeys(colors: ThemeColors): string[] {
+ return Object.keys(colors);
+}
+
+describe('DS-2b · Mobile ThemeColors 冻结', () => {
+ const snapshot = readSnapshot();
+
+ it('snapshot 与实时提取的 top-level key 数一致', () => {
+ expect(
+ topLevelKeys(snapshot.light).length,
+ themeFreezeMismatch('theme-colors-snapshot.light key 数'),
+ ).toBe(topLevelKeys(lightColors).length);
+ expect(
+ topLevelKeys(snapshot.dark).length,
+ themeFreezeMismatch('theme-colors-snapshot.dark key 数'),
+ ).toBe(topLevelKeys(darkColors).length);
+ expect(topLevelKeys(lightColors), themeFreezeMismatch('light/dark key 集合彼此')).toEqual(
+ topLevelKeys(darkColors),
+ );
+ });
+
+ it('light / dark ThemeColors(含嵌套 login)与快照逐值相等', () => {
+ expect(lightColors, themeFreezeMismatch('Mobile lightColors')).toEqual(snapshot.light);
+ expect(darkColors, themeFreezeMismatch('Mobile darkColors')).toEqual(snapshot.dark);
+ });
+
+ it('自证伪:模拟改名任一旧 key 后必然与快照不匹配', () => {
+ expect(topLevelKeys(lightColors)[0]).toBe('surface');
+ const renamed = Object.fromEntries(
+ Object.entries(lightColors).map(([key, value], index) =>
+ index === 0 ? ['surfaceRenamedForDs2bFalsification', value] : [key, value],
+ ),
+ );
+ expect(renamed).not.toEqual(snapshot.light);
+ expect(Object.keys(renamed)).not.toEqual(topLevelKeys(snapshot.light));
+ });
+});
diff --git a/docs/design-rules/design-governance.md b/docs/design-rules/design-governance.md
index eb5402779d..fb61942407 100644
--- a/docs/design-rules/design-governance.md
+++ b/docs/design-rules/design-governance.md
@@ -252,7 +252,7 @@ ls apps/desktop/src/renderer/themes/builtin/*.ts | wc -l
| # | 标题 | 风险类别 | PR |
| --- | --- | --- | --- |
| DS-1 | `docs(design-system): DS-1 建立治理合同与存量门禁处置表` | 零视觉(纯文档) | ✅ #3609(2026-08-30 合入) |
-| DS-2a | `test(design-system): DS-2a 生产 UI 台账` | 零视觉 | #3648 |
+| DS-2a | `test(design-system): DS-2a 生产 UI 台账` | 零视觉 | ✅ #3648(2026-08-31 合入) |
| DS-2b | `ci(design-system): DS-2b 主题兼容冻结守卫`(新增阻断需 §8 管理员审核) | CI 门禁 | — |
| DS-3 | `feat(design-system): DS-3 最小语义 Token 影子层` | 零视觉 | — |
| DS-4 | `feat(design-system): DS-4 Button 与 Input 标准组件`(落入既有 `components/ui/`) | 有意可见 | — |