Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(desktop): CINDY 皮肤 2026-08 色阶改版——暖象牙浅色 + 中性近黑暗色 (#2571)
Kirozeng240247e52e93
diff --git a/apps/desktop/src/renderer/styles/globals.css b/apps/desktop/src/renderer/styles/globals.cssindex f13cffde1e..42f4aa5a2c 100644--- a/apps/desktop/src/renderer/styles/globals.css+++ b/apps/desktop/src/renderer/styles/globals.css@@ -1429,7 +1429,9 @@ body.resizing-pane [data-ghost-webview] {/* CINDY dark hljs 整改(D 裁决 2026-07-17,§15.4 双门槛):github-dark .hljs-section #1f6feb × CINDY surface-elevated #312F2F = 2.87 <3:1(语法色门槛);保持色相(蓝 H212 S84%),仅提亮度 L52%→53.5% → #2573ec × #312F2F = 3.00 ≥3:1。- -punctuation/-tag dark 无单独选择器,继承 .dark .hljs text #c9d1d9(× #312F2F=8.62 ≥3,无需整改)。 */+ -punctuation/-tag dark 无单独选择器,继承 .dark .hljs text #c9d1d9(× #312F2F=8.62 ≥3,无需整改)。+ 2026-08 色阶改版复算: 代码块底随 surface-elevated 变为 #1F1F1F,#2573ec×#1F1F1F=3.72、+ #c9d1d9×#1F1F1F=10.68,整改值继续达标,选择器与值均不需调整(决策表 §9)。 */[data-theme='cindy-dark'] .hljs-section {color: #2573ec;}@@ -2084,7 +2086,7 @@ body.resizing-pane [data-ghost-webview] {/* E4D 毛玻璃(R1 audit,用户裁决透壁纸 2026-07-17):仅 CINDY family,窗口 vibrancy透壁纸(main 设置)+ 应用内 backdrop-filter 互透。**仅侧栏 + 浮层 blur;主内容区不透明(macOS 标准范式;用户勘误 2026-07-17:主区不透壁纸,content-area 回落- --content-area=--surface-hsl 不透明 #EDEDED/#2A2828)**。blur(50px 侧栏、6px 浮层)。+ --content-area=--surface-hsl 不透明,2026-08 起 #F2F2ED/#181818)**。blur(50px 侧栏、6px 浮层)。精确选择器(转义 Tailwind class .bg-\[var\(--panel-bg\)\] 等,避免 contains 过命中渐变/border)。其他 family 不命中,行为零变化。 */[data-theme='cindy-light'] body,[data-theme='cindy-dark'] body {@@ -2104,7 +2106,7 @@ body.resizing-pane [data-ghost-webview] {.bg-\[var\(--panel-bg\)\] 已从本规则移除 —— 该 class 的消费者全是右侧工具面板族(RSB TabBar/Body、Review、PanelChrome、Ghost 面板、独立窗顶带),被劫持成玻璃后与左侧主区(不透明 content-area)底色打架;移除后回落 CINDY 的 --panel-bg- (#EDEDED/#2A2828),与主区同色,右侧面板整体与左边聊天区一致(模式2 口径)。 */+ (2026-08 起 #F2F2ED/#181818),与主区同色,右侧面板整体与左边聊天区一致(模式2 口径)。 */[data-theme='cindy-light'] aside.bg-sidebar {background: var(--surface-translucent-sidebar);}@@ -2122,7 +2124,7 @@ body.resizing-pane [data-ghost-webview] {-webkit-backdrop-filter: blur(28px);}/* 模式2 主面板:用户勘误 2026-07-17 — 主内容区不透壁纸(macOS 标准范式),撤销 blur。- content-area 回落 --content-area(=var(--surface-hsl) 不透明 #EDEDED/#2A2828),无 blur。+ content-area 回落 --content-area(=var(--surface-hsl) 不透明,2026-08 起 #F2F2ED/#181818),无 blur。surface-translucent-main token 保留注册但 CINDY override 改不透明等价值(见 cindy themes)。 *//* 模式3 浮层卡:blur 6px + surface-translucent-overlay(cmd-palette/popover 类) */[data-theme='cindy-light'] .bg-\[var\(--cmd-palette-bg\)\],diff --git a/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts b/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.tsindex 9614fd4e65..4b2e365f06 100644--- a/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts+++ b/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts@@ -2,6 +2,8 @@// 设计期工作文件,不随仓维护,生成器亦未入仓——见 DESIGN.md §15 对权威载体的说明)。// E1D 红色体系重构(用户批准 2026-07-17):B 类 11 项改反相中性,C 类按 8 项裁决。// D2T 八组断言 + 零残留脚本共享的决策基线;手改 cindy 主题值时此处不变 → 测试抓漂移。+// 2026-08 色阶改版(用户逐项批准 2026-08-11~14,正本 token-decision-table.md §9):+// light 暖象牙阶梯 + dark 中性近黑,受影响条目值已按新阶梯更新。// 修订契约:改值必须先过用户关卡,然后直接更新本文件对应条目,并以「用户裁决/调参/// 改稿 + 日期」行尾注释记录依据(先例:caret-accent 2026-07-18、text-secondary// 2026-07-20、switch-track-off 2026-08-05);没有带日期用户裁决的手编仍然禁止。@@ -188,36 +190,36 @@ export const HSL_FORMAT_IDS = [] as const;export const CINDY_EXPECTED_VALUES: Record<string, { light: string; dark: string }> = {- surface: { light: '#EDEDED', dark: '#2A2828' },- 'surface-hsl': { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'surface-elevated': { light: '#F8F8F8', dark: '#312F2F' },- 'surface-elevated-soft': { light: '#F4F4F4', dark: '#2F2D2D' },- 'surface-card-ivory': { light: '#F8F8F8', dark: '#312F2F' },- 'surface-chip': { light: '#F1F1F1', dark: '#2F2D2D' },- 'surface-chip-alt': { light: '#F4F4F4', dark: '#2F2D2D' },- 'surface-hover': { light: '#F1F1F1', dark: '#2F2D2D' },- 'surface-hover-soft': { light: '#EFEFEF', dark: '#2B2929' },- 'surface-hover-hsl': { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- 'surface-on-card': { light: '#FFFFFF', dark: '#2A2828' },- 'border-default': { light: '#DCDFE3', dark: '#434343' },- 'border-default-hsl': { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },- 'border-shadcn-hsl': { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },- 'border-transparent-mixed': { light: 'transparent', dark: '#434343' },- 'text-primary': { light: '#3C3F43', dark: '#D4D4D4' },+ surface: { light: '#F2F2ED', dark: '#181818' },+ 'surface-hsl': { light: '60.0 16.1% 93.9%', dark: '0 0% 9.4%' },+ 'surface-elevated': { light: '#FDFDF8', dark: '#1F1F1F' },+ 'surface-elevated-soft': { light: '#FAFAF5', dark: '#1D1D1D' },+ 'surface-card-ivory': { light: '#FDFDF8', dark: '#1F1F1F' },+ 'surface-chip': { light: '#EEEEE9', dark: '#1D1D1D' },+ 'surface-chip-alt': { light: '#FAFAF5', dark: '#1D1D1D' },+ 'surface-hover': { light: '#EEEEE9', dark: '#1D1D1D' },+ 'surface-hover-soft': { light: '#F0F0EB', dark: '#191919' },+ 'surface-hover-hsl': { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ 'surface-on-card': { light: '#FFFFFF', dark: '#181818' },+ 'border-default': { light: '#E4E4DF', dark: '#313131' },+ 'border-default-hsl': { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },+ 'border-shadcn-hsl': { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },+ 'border-transparent-mixed': { light: 'transparent', dark: '#313131' },+ 'text-primary': { light: '#1A1A1A', dark: '#D4D4D4' },'text-primary-on-dark': { light: '#FFFFFF', dark: '#FFFFFF' },- 'text-primary-emphasis': { light: '#2E3237', dark: '#FFFFFF' },- 'text-primary-inv': { light: '#FFFFFF', dark: '#2A2828' },- 'text-primary-body-strong': { light: '#3C3F43', dark: '#D4D4D4' },- 'text-primary-hsl': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- 'text-secondary': { light: '#8C8E94', dark: '#6F6F6F' }, // 用户调参 2026-07-20:light 二次加深 #8C8E94- 'text-secondary-cross': { light: '#9A9DA3', dark: '#6F6F6F' },- 'text-secondary-mid': { light: '#686B72', dark: '#BFC1C4' },- 'text-tertiary': { light: '#686B72', dark: '#BFC1C4' },- 'text-tertiary-stone': { light: '#686B72', dark: '#BFC1C4' },- 'text-tertiary-mid': { light: '#686B72', dark: '#BFC1C4' },- 'text-tertiary-hsl': { light: '222.0 4.6% 42.7%', dark: '216.0 4.1% 75.9%' },- 'text-disabled': { light: '#686B72', dark: '#BFC1C4' },- 'text-disabled-tertiary': { light: '#686B72', dark: '#BFC1C4' },+ 'text-primary-emphasis': { light: '#0C0C0C', dark: '#FFFFFF' },+ 'text-primary-inv': { light: '#FFFFFF', dark: '#181818' },+ 'text-primary-body-strong': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'text-primary-hsl': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ 'text-secondary': { light: '#888883', dark: '#6F6F6F' }, // 2026-08 §9 更新;沿革: 用户调参 2026-07-20:light 二次加深 #8C8E94+ 'text-secondary-cross': { light: '#888883', dark: '#6F6F6F' },+ 'text-secondary-mid': { light: '#6B6B67', dark: '#C1C1C1' },+ 'text-tertiary': { light: '#6B6B67', dark: '#C1C1C1' },+ 'text-tertiary-stone': { light: '#6B6B67', dark: '#C1C1C1' },+ 'text-tertiary-mid': { light: '#6B6B67', dark: '#C1C1C1' },+ 'text-tertiary-hsl': { light: '60.0 1.9% 41.2%', dark: '0.0 0.0% 75.7%' },+ 'text-disabled': { light: '#6B6B67', dark: '#C1C1C1' },+ 'text-disabled-tertiary': { light: '#6B6B67', dark: '#C1C1C1' },'switch-track-off': { light: '#888888', dark: '#787878' }, // 用户调参 2026-08-05:两端都顶到 3:1 底线内的极值拉开开/关差距——light 最亮档 #888888(×surface 3.03),dark 最深档 #787878(×elevated 3.01,等效白 36% 透明)'switch-track-on': { light: '#4A4D51', dark: '#EEEEEE' }, // 用户调参 2026-08-05:light 自 primary #3C3F43 提亮一档;dark 维持 E1D 中性浅灰现状值(因 light 入表,dark 显式同冻)'caret-accent': { light: '#417CDD', dark: '#417CDD' }, // 用户改稿 2026-07-18:光标撤红改回蓝@@ -226,116 +228,150 @@ export const CINDY_EXPECTED_VALUES: Record<string, { light: string; dark: string'accent-emphasis': { light: '#3C3F43', dark: '#EEEEEE' }, // E1D'accent-soft': { light: '#25282C', dark: '#D4D4D4' }, // E1D'accent-hover': { light: '#2E3237', dark: '#E2E2E2' }, // E1D- 'accent-pure-cta-fg': { light: '#FCFCFC', dark: '#252222' }, // E1D- accent: { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- 'agent-actions-rail': { light: '#DCDFE3', dark: '#434343' },- 'ask-checkbox-border': { light: '#686B72', dark: '#BFC1C4' },- background: { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'chat-input-bg': { light: '#F8F8F8', dark: '#312F2F' },+ 'accent-pure-cta-fg': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: E1D+ accent: { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ 'agent-actions-rail': { light: '#E4E4DF', dark: '#313131' },+ 'ask-checkbox-border': { light: '#6B6B67', dark: '#C1C1C1' },+ background: { light: '60.0 16.1% 93.9%', dark: '0 0% 9.4%' },+ 'chat-input-bg': { light: '#FDFDF8', dark: '#1F1F1F' },'chat-input-border-focus': {- light: 'rgba(104, 107, 114, 0.30)',- dark: 'rgba(191, 193, 196, 0.30)',+ light: 'rgba(107, 107, 103, 0.30)',+ dark: 'rgba(193, 193, 193, 0.30)',}, // 用户改稿 2026-07-20:输入框聚焦描边降至 30%- 'chat-input-chip-border': { light: '#DCDFE3', dark: '#434343' },- 'chat-input-text': { light: '#3C3F43', dark: '#D4D4D4' },- 'color-primary': { light: '#3C3F43', dark: '#D4D4D4' },- 'confirm-bg': { light: '#F8F8F8', dark: '#312F2F' },+ 'chat-input-chip-border': { light: '#E4E4DF', dark: '#313131' },+ 'chat-input-text': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'color-primary': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'confirm-bg': { light: '#FDFDF8', dark: '#1F1F1F' },'confirm-btn-primary-bg': { light: '#3C3F43', dark: '#EEEEEE' }, // E1D- 'confirm-btn-primary-text': { light: '#FCFCFC', dark: '#252222' }, // E1D- 'confirm-btn-secondary-border': { light: '#DCDFE3', dark: '#434343' },+ 'confirm-btn-primary-text': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: E1D+ 'confirm-btn-secondary-border': { light: '#E4E4DF', dark: '#313131' },'confirm-btn-secondary-hover': {light: 'rgba(0, 0, 0, 0.06)',dark: 'rgba(255, 255, 255, 0.08)',},- 'confirm-btn-secondary-text': { light: '#3C3F43', dark: '#D4D4D4' },- 'confirm-title': { light: '#3C3F43', dark: '#D4D4D4' },- 'file-chip-bg': { light: '#D8D9DB', dark: '#3B3A3A' },- 'file-remove-bg': { light: '#686B72', dark: '#BFC1C4' },+ 'confirm-btn-secondary-text': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'confirm-title': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'file-chip-bg': { light: '#DFDFDA', dark: '#292929' },+ 'file-remove-bg': { light: '#6B6B67', dark: '#C1C1C1' },'info-700': { light: '#1D4ED8', dark: '#93C5FD' },- 'model-trigger-hover': { light: '#F1F1F1', dark: '#2F2D2D' },+ 'model-trigger-hover': { light: '#EEEEE9', dark: '#1D1D1D' },'msg-link': { light: '#1D4ED8', dark: '#93C5FD' },- 'msg-scrollbar-hover': { light: '#D8D9DB', dark: '#504F4F' },- 'msg-user-bg': { light: '#F8F8F8', dark: '#312F2F' },- muted: { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- 'muted-foreground': { light: '222.0 4.6% 42.7%', dark: '216.0 4.1% 75.9%' },+ 'msg-scrollbar-hover': { light: '#DFDFDA', dark: '#3E3E3E' },+ 'msg-user-bg': { light: '#FDFDF8', dark: '#1F1F1F' },+ muted: { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ 'muted-foreground': { light: '60.0 1.9% 41.2%', dark: '0.0 0.0% 75.7%' },'perm-auto-selected-text': { light: '#417CDD', dark: '#417CDD' }, // E5D 定稿 2026-07-17'perm-allow-btn-bg': { light: '#3C3F43', dark: '#EEEEEE' }, // E1D- 'perm-allow-btn-text': { light: '#FCFCFC', dark: '#252222' }, // E1D+ 'perm-allow-btn-text': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: E1D// E1D send-btn 族(lead 反相中性四态 + disabled #444242 系;default send-btn-bg aliases accent-cta-bg,CINDY override 全族)'send-btn-bg': { light: '#3C3F43', dark: '#EEEEEE' },- 'send-btn-icon': { light: '#FCFCFC', dark: '#252222' },+ 'send-btn-icon': { light: '#FCFCFC', dark: '#151515' },'send-btn-hover-bg': { light: '#2E3237', dark: '#E2E2E2' },'send-btn-pressed-bg': { light: '#25282C', dark: '#D4D4D4' },- 'send-btn-disabled-bg': { light: '#444242', dark: '#444242' },- 'send-btn-disabled-icon': { light: '#585555', dark: '#585555' },+ 'send-btn-disabled-bg': { light: '#444242', dark: '#323232' },+ 'send-btn-disabled-icon': { light: '#585555', dark: '#464646' },'perm-allow-kbd-bg': { light: 'rgba(255, 255, 255, 0.16)', dark: 'rgba(0, 0, 0, 0.08)' }, // 2026-07-19 修复:kbd 随按钮反相'perm-allow-kbd-border': { light: 'rgba(255, 255, 255, 0.30)', dark: 'rgba(0, 0, 0, 0.20)' },- 'perm-code-bg': { light: '#F5F5F5', dark: '#2B2929' },- 'perm-item-selected-bg': { light: '#F1F1F1', dark: '#2F2D2D' },- 'plan-outline-active-bg': { light: '#F1F1F1', dark: '#2F2D2D' },- 'plan-toolbar-btn-hover-bg': { light: '#E2E2E2', dark: '#444242' }, // 用户改稿 2026-07-23(ask 卡整改):原值贴着卡底(#F8F8F8/#312F2F)不可见,借 settings-menu-bg-hover(light)/send-btn-disabled-bg(dark)同档- popover: { light: '0.0 0.0% 97.3%', dark: '0.0 2.1% 18.8%' },+ 'perm-code-bg': { light: '#FAFAF5', dark: '#191919' },+ 'perm-item-selected-bg': { light: '#F6F6F1', dark: '#1D1D1D' },+ 'plan-outline-active-bg': { light: '#F6F6F1', dark: '#1D1D1D' },+ 'plan-toolbar-btn-hover-bg': { light: '#E8E8E3', dark: '#323232' }, // 2026-08 §9 更新;沿革: 用户改稿 2026-07-23(ask 卡整改):原值贴着卡底(#F8F8F8/#312F2F)不可见,借 settings-menu-bg-hover(light)/send-btn-disabled-bg(dark)同档+ popover: { light: '60.0 55.6% 98.2%', dark: '0 0% 12.2%' },'primary-foreground': { light: '0.0 0.0% 100.0%', dark: '0.0 0.0% 100.0%' },- 'search-match-fg': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- secondary: { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- 'settings-btn-primary-text': { light: '#FCFCFC', dark: '#252222' }, // E1D- 'settings-btn-secondary-hover-bg': { light: '#F1F1F1', dark: '#2F2D2D' },- 'text-placeholder': { light: '#686B72', dark: '#BFC1C4' },- 'settings-integration-avatar-bg': { light: '#F8F8F8', dark: '#2F2D2D' },- 'settings-logout-bg': { light: '#F8F8F8', dark: '#312F2F' },- 'settings-menu-bg-hover': { light: '#E2E2E2', dark: '#3A3838' }, // 用户改稿 2026-07-21:原值贴着页底(#EDEDED/#2A2828)不可见,light 压暗 / dark 提亮到 ~5-6% 亮度差- 'settings-menu-bg-selected': { light: '#F1F1F1', dark: '#2F2D2D' },+ 'search-match-fg': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ secondary: { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ 'settings-btn-primary-text': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: E1D+ 'settings-btn-secondary-hover-bg': { light: '#F6F6F1', dark: '#1D1D1D' },+ 'text-placeholder': { light: '#6B6B67', dark: '#C1C1C1' },+ 'settings-integration-avatar-bg': { light: '#FDFDF8', dark: '#1D1D1D' },+ 'settings-logout-bg': { light: '#FDFDF8', dark: '#1F1F1F' },+ 'settings-menu-bg-hover': { light: '#E8E8E3', dark: '#282828' }, // 2026-08 §9 更新;沿革: 用户改稿 2026-07-21:原值贴着页底(#EDEDED/#2A2828)不可见,light 压暗 / dark 提亮到 ~5-6% 亮度差+ 'settings-menu-bg-selected': { light: '#F6F6F1', dark: '#1D1D1D' },'settings-source-link': { light: '#1D4ED8', dark: '#93C5FD' },- 'settings-theme-auto-dark': { light: '#2A2828', dark: '#2A2828' },- 'sidebar-action-icon': { light: '220.0 4.7% 62.2%', dark: '0 0% 43.5%' }, // E1D 侧栏层级 #9A9DA3/#6F6F6F- 'cmd-palette-item-meta': { light: '#9A9DA3', dark: '#6F6F6F' }, // E1D 侧栏二级暗灰- 'sidebar-item-active-foreground': { light: '#FCFCFC', dark: '#252222' }, // 用户二次改稿 2026-07-20:反相胶囊浅字/深字(同 accent-pure-cta-fg)+ 'settings-theme-auto-dark': { light: '#181818', dark: '#181818' },+ 'sidebar-action-icon': { light: '60.0 2.1% 52.4%', dark: '0 0% 43.5%' }, // 2026-08 §9 更新;沿革: E1D 侧栏层级 #9A9DA3/#6F6F6F+ 'cmd-palette-item-meta': { light: '#888883', dark: '#6F6F6F' }, // 2026-08 §9 更新;沿革: E1D 侧栏二级暗灰+ 'sidebar-item-active-foreground': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: 用户二次改稿 2026-07-20:反相胶囊浅字/深字(同 accent-pure-cta-fg)'sidebar-item-active-border': { light: 'transparent', dark: 'transparent' }, // 用户三次改稿 2026-07-20:去描边'sidebar-item-active': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 93.3%' }, // 用户二次改稿 2026-07-20:反相胶囊 #3C3F43/#EEEEEE(同 accent-cta-bg)- 'splash-bg': { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'splash-text': { light: '222.0 4.6% 42.7%', dark: '216.0 4.1% 75.9%' },- 'splash-text-destructive': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 100.0%' },- 'splash-text-muted': { light: '222.0 4.6% 42.7%', dark: '216.0 4.1% 75.9%' },- 'titlebar-icon': { light: '222.0 4.6% 42.7%', dark: '216.0 4.1% 75.9%' },- 'tooltip-bg': { light: '#3C3F43', dark: '#2A2828' },+ 'splash-bg': { light: '60.0 16.1% 93.9%', dark: '0 0% 9.4%' },+ 'splash-text': { light: '60.0 1.9% 41.2%', dark: '0.0 0.0% 75.7%' },+ 'splash-text-destructive': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 100.0%' },+ 'splash-text-muted': { light: '60.0 1.9% 41.2%', dark: '0.0 0.0% 75.7%' },+ 'titlebar-icon': { light: '60.0 1.9% 41.2%', dark: '0.0 0.0% 75.7%' },+ 'tooltip-bg': { light: '#3C3F43', dark: '#181818' },'tooltip-text': { light: '#FFFFFF', dark: '#FFFFFF' },'update-btn-border': { light: '#3C3F43', dark: '#EEEEEE' }, // E1D- 'update-btn-text': { light: '#FCFCFC', dark: '#252222' }, // E1D- 'accent-foreground': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- 'panel-bg': { light: '#EDEDED', dark: '#2A2828' },+ 'update-btn-text': { light: '#FCFCFC', dark: '#151515' }, // 2026-08 §9 更新;沿革: E1D+ 'accent-foreground': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ 'panel-bg': { light: '#F2F2ED', dark: '#181818' },primary: { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 93.3%' }, // E1Dring: { light: '217.3 69.7% 56.1%', dark: '217.3 69.7% 56.1%' }, // E5D 定稿 2026-07-17 #417CDD HSL(取代 #3b82f6)- 'settings-theme-auto-light': { light: '#EDEDED', dark: '#EDEDED' },- foreground: { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- border: { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },- input: { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },- 'secondary-foreground': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- 'popover-foreground': { light: '214.3 5.5% 24.9%', dark: '0.0 0.0% 83.1%' },- titlebar: { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'titlebar-border': { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },- 'titlebar-button-hover': { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- 'titlebar-control-hover': { light: '0.0 0.0% 94.5%', dark: '0.0 2.2% 18.0%' },- sidebar: { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'sidebar-border': { light: '214.3 11.1% 87.6%', dark: '0.0 0.0% 26.3%' },+ 'settings-theme-auto-light': { light: '#F2F2ED', dark: '#F2F2ED' },+ foreground: { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ border: { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },+ input: { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },+ 'secondary-foreground': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ 'popover-foreground': { light: '0.0 0.0% 10.2%', dark: '0.0 0.0% 83.1%' },+ titlebar: { light: '60.0 16.1% 93.9%', dark: '0 0% 9.4%' },+ 'titlebar-border': { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },+ 'titlebar-button-hover': { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ 'titlebar-control-hover': { light: '60.0 12.8% 92.4%', dark: '0 0% 11.4%' },+ sidebar: { light: '60.0 12.8% 92.4%', dark: '0 0% 9.4%' },+ 'sidebar-border': { light: '60.0 8.5% 88.4%', dark: '0 0% 19.2%' },'sidebar-item-hover': { light: '0.0 0.0% 0.0% / 0.05', dark: '0.0 0.0% 100.0% / 0.09' }, // 用户裁决 2026-07-21:玻璃面 hover 半透明化(黑 5% / 白 9% 叠加替代实色,壁纸可透过)- 'sidebar-search-bg': { light: '0.0 0.0% 92.9%', dark: '0.0 2.4% 16.1%' },- 'sidebar-muted': { light: '220.0 4.7% 62.2%', dark: '0 0% 43.5%' }, // E1D 侧栏层级 #9A9DA3/#6F6F6F- 'status-badge-fg': { light: '#1F1F1F', dark: '#1F1F1F' }, // §7 必炸点(lead 裁决)+ 'sidebar-search-bg': { light: '60.0 12.8% 92.4%', dark: '0 0% 9.4%' },+ 'sidebar-muted': { light: '60.0 2.1% 52.4%', dark: '0 0% 43.5%' }, // 2026-08 §9 更新;沿革: E1D 侧栏层级 #9A9DA3/#6F6F6F+ 'status-badge-fg': { light: '#1F1F1F', dark: '#121212' }, // 2026-08 §9 更新;沿革: §7 必炸点(lead 裁决)'surface-translucent-sidebar': {- light: 'rgba(255, 255, 255, 0.80)',- dark: 'rgba(18, 15, 15, 0.80)',+ light: 'rgba(238, 238, 233, 0.90)',+ dark: 'rgba(5, 5, 5, 0.85)',}, // 用户调参 2026-07-20:双端 80%(light #F6F6F6 试色后退回纯白)'sidebar-search-input-bg': {- light: 'rgba(255, 255, 255, 0.55)',+ light: 'rgba(255, 255, 250, 0.55)',dark: 'rgba(0, 0, 0, 0.25)',}, // 用户裁决 2026-07-21:玻璃面搜索输入框半透明化(与 hover 叠加方向相反,保证"可输入"字段感)- 'surface-translucent-main': { light: '#EDEDED', dark: '#2A2828' }, // E4D 主面板:用户勘误 2026-07-17 撤销毛玻璃,改不透明等价 surface(原 rgba 半透明)+ 'surface-translucent-main': { light: '#F2F2ED', dark: '#181818' }, // 2026-08 §9 更新;沿革: E4D 主面板:用户勘误 2026-07-17 撤销毛玻璃,改不透明等价 surface(原 rgba 半透明)'surface-translucent-overlay': {- light: 'rgba(246, 246, 246, 0.90)',- dark: 'rgba(37, 35, 35, 0.80)',+ light: 'rgba(251, 251, 246, 0.90)',+ dark: 'rgba(21, 21, 21, 0.80)',}, // E4D R1 模式3- 'composer-pill-bg': { light: '#FCFCFC', dark: '#393838' }, // E2 composer pill 底(取代 glass-pill-bg)- 'composer-pill-icon': { light: '#3C3F43', dark: '#D9D9D9' }, // E2 composer pill 图标+ 'composer-pill-bg': { light: '#FFFFFA', dark: '#272727' }, // 2026-08 §9 更新;沿革: E2 composer pill 底(取代 glass-pill-bg)+ 'composer-pill-icon': { light: '#1A1A1A', dark: '#D9D9D9' }, // 2026-08 §9 更新;沿革: E2 composer pill 图标+ // ── 2026-08 色阶改版入表(用户裁决 2026-08-11~14, 决策表 §9): 原走注册表默认值的新增+ // override; 单侧改动的另一侧按当时解析值锚定入表(不改变解析结果)。──+ 'ask-badge-bg': { light: '#F6F6F1', dark: 'var(--surface-chip)' },+ 'ask-header-chip-bg': { light: '#F6F6F1', dark: '#282828' },+ 'ask-option-hover': { light: 'var(--surface-hover-soft)', dark: '#323232' },+ 'ask-option-list-bg': { light: '#FFFFFF', dark: '#282828' },+ 'ask-send-disabled-bg': { light: 'var(--surface-elevated-soft)', dark: '#282828' },+ 'cmd-palette-item-hover': { light: '#F6F6F1', dark: 'var(--surface-hover)' },+ 'completion-badge-fg': { light: '#1f1f1e', dark: '#121212' },+ 'create-agent-control-bg': { light: '#FFFFFA', dark: '#272727' },+ 'create-agent-control-bg-hover': { light: 'var(--surface-hover)', dark: '#323232' },+ 'create-agent-control-bg-pressed': { light: 'var(--surface-hover-soft)', dark: '#3E3E3E' },+ 'create-agent-control-border': { light: '#E4E4DF', dark: '#313131' },+ 'create-agent-control-icon': { light: '#1A1A1A', dark: '#D9D9D9' },+ 'create-agent-control-text': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'create-agent-quick-card-bg': { light: '#FDFDF8', dark: '#1F1F1F' },+ 'create-agent-quick-card-bg-hover': { light: '#F6F6F1', dark: '#292929' },+ 'create-agent-quick-card-border': { light: '#E4E4DF', dark: '#313131' },+ 'create-agent-quick-card-icon': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'create-agent-quick-card-icon-bg': { light: '#F2F2ED', dark: '#181818' },+ 'create-agent-quick-card-text': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'create-agent-segment-inactive-text': { light: '#9D9D98', dark: '#6F6F6F' },+ 'create-agent-segment-track-bg': { light: '#F2F2ED', dark: '#181818' },+ 'create-agent-send-disabled-bg': { light: '#F2F2ED', dark: '#323232' },+ 'create-agent-send-disabled-icon': { light: '#9D9D98', dark: '#464646' },+ 'create-agent-send-icon': { light: '#FCFCFC', dark: '#151515' },+ 'md-table-bg': { light: 'rgba(241, 241, 236, 0.55)', dark: 'rgba(26, 26, 26, 0.55)' },+ 'model-item-hover': { light: '#EFEFEA', dark: '#2B2B2B' },+ 'settings-integration-avatar-border': { light: '#EDEDE8', dark: 'rgba(255, 255, 255, 0.08)' },+ 'sidebar-list-muted': { light: '#888883', dark: '#6F6F6F' },+ 'sidebar-nav-text': { light: '#1A1A1A', dark: '#D4D4D4' },+ 'sidebar-user-card-bg-hover': { light: 'rgba(26, 26, 26, 0.06)', dark: 'rgba(255, 255, 255, 0.10)' },+ 'sidebar-user-card-border': { light: 'rgba(26, 26, 26, 0.10)', dark: 'rgba(255, 255, 255, 0.13)' },+ 'sidebar-user-card-text': { light: '#1A1A1A', dark: '#D4D4D4' },};// E1D 红色体系重构(用户批准 2026-07-17):三份新 map 替代旧 BRAND_RED_*。diff --git a/apps/desktop/src/renderer/themes/__tests__/cindyThemes.test.ts b/apps/desktop/src/renderer/themes/__tests__/cindyThemes.test.tsindex 2a3aeabb51..96a1776bcb 100644--- a/apps/desktop/src/renderer/themes/__tests__/cindyThemes.test.ts+++ b/apps/desktop/src/renderer/themes/__tests__/cindyThemes.test.ts@@ -260,9 +260,9 @@ describe('CINDY · ⑤ E1D 红色体系重构(中性 exact map + 红例外白名}});- it('NEUTRAL_PRIMARY_FOREGROUND_BY_ID 前景必须中性字(light #FCFCFC/dark #252222,非全局白)', () => {+ it('NEUTRAL_PRIMARY_FOREGROUND_BY_ID 前景必须中性字(light #FCFCFC/dark #151515,非全局白)', () => {for (const [name, theme] of THEMES) {- const expFg = name === 'cindy-light' ? '#FCFCFC' : '#252222';+ const expFg = name === 'cindy-light' ? '#FCFCFC' : '#151515' /* 2026-08 色阶改版: 反相深字随暗色平移 */;for (const id of NEUTRAL_PRIMARY_FOREGROUND_BY_ID) {expect(rgbEqual(toRgb(theme.colors[id]), toRgb(expFg), 1), `${name}.${id} 前景应中性字`).toBe(true);}@@ -379,9 +379,9 @@ describe('CINDY · ⑦ WCAG 复算 + U2 例外 allowlist + text-secondary 反向}});- it('E1D 中性 CTA 对比度:#FCFCFC×#3C3F43=10.32(light)、#252222×#EEEEEE=13.60(dark) ≥4.5', () => {+ it('E1D 中性 CTA 对比度:#FCFCFC×#3C3F43=10.32(light)、#151515×#EEEEEE=15.74(dark) ≥4.5', () => {expect(contrast('#FCFCFC', light['accent-cta-bg'])).toBeGreaterThanOrEqual(4.5);- expect(contrast('#252222', dark['accent-cta-bg'])).toBeGreaterThanOrEqual(4.5);+ expect(contrast('#151515' /* 2026-08 色阶改版: 反相深字随暗色平移 */, dark['accent-cta-bg'])).toBeGreaterThanOrEqual(4.5);// focus-ring cindy 不 override(用 registry 默认 #417CDD,E5D 定稿 2026-07-17 取代 #3b82f6)const frLight = colorRegistry.resolveDefault('focus-ring', 'light') ?? '';const frDark = colorRegistry.resolveDefault('focus-ring', 'dark') ?? '';@@ -403,10 +403,20 @@ describe('CINDY · ⑦ WCAG 复算 + U2 例外 allowlist + text-secondary 反向}});- it('反向冻结:text-secondary 必须恰等于定稿值 #8C8E94(light,用户调参 2026-07-20 自 Figma #9A9DA3 两轮加深)/#6F6F6F(dark),RGB 归一', () => {+ it('2026-08 地板:light 信息类文字 × surface/surface-hover 对比度 ≥3.0(用户裁决,决策表 §9.4;dark 仍属 U2 例外不设此门)', () => {+ // 覆盖面取 §9.4 声明的地板范围(页底/通用 hover);菜单 hover 上 2.90 为已登记 watch 项,不入门禁。+ for (const id of ['text-secondary', 'cmd-palette-item-meta', 'sidebar-list-muted'] as const) {+ for (const bgId of ['surface', 'surface-hover'] as const) {+ const r = contrast(light[id]!, light[bgId]!);+ expect(r, `light ${id} × ${bgId} 应 ≥3.0,实测 ${r.toFixed(2)}:1`).toBeGreaterThanOrEqual(3.0);+ }+ }+ });++ it('反向冻结:text-secondary 必须恰等于定稿值 #888883(light,用户裁决 2026-08-13 暖化+抬至≥3.0,取代 2026-07-20 调参)/#6F6F6F(dark),RGB 归一', () => {expect(- rgbEqual(toRgb(light['text-secondary']), toRgb('#8C8E94'), 1),- 'light text-secondary 须恰等 #8C8E94(用户调参 2026-07-20)',+ rgbEqual(toRgb(light['text-secondary']), toRgb('#888883'), 1),+ 'light text-secondary 须恰等 #888883(用户裁决 2026-08-13)',).toBe(true);expect(rgbEqual(toRgb(dark['text-secondary']), toRgb('#6F6F6F'), 1),@@ -486,9 +496,9 @@ describe('CINDY · ⑧ 可证伪自检(注入错值后断言必须变红,还原});it('反向冻结证伪:注入 #686B72 到 text-secondary → ⑦ 变红', () => {- const figma = toRgb('#8C8E94'); // 用户调参定稿 2026-07-20(原 Figma #9A9DA3)+ const figma = toRgb('#888883'); // 用户裁决定稿 2026-08-13(沿革: Figma #9A9DA3 → 2026-07-20 #8C8E94 → 本值)const injected = toRgb('#686B72');- expect(rgbEqual(injected, figma, 1), '#686B72 ≠ #8C8E94,注入后 ⑦ 反向冻结断言必红').toBe(false);+ expect(rgbEqual(injected, figma, 1), '#686B72 ≠ #888883,注入后 ⑦ 反向冻结断言必红').toBe(false);// 正常值仍恰等expect(rgbEqual(toRgb(cindyLight.colors['text-secondary']), figma, 1),@@ -503,7 +513,7 @@ describe('CINDY · ⑧ 可证伪自检(注入错值后断言必须变红,还原expect(contrast(L['status-badge-fg']!, orange), 'light 橙徽章 fg×橙').toBeGreaterThanOrEqual(4.5);expect(contrast(D['status-badge-fg']!, orange), 'dark 橙徽章 fg×橙').toBeGreaterThanOrEqual(4.5);expect(contrast('#FCFCFC', L['accent-cta-bg']!), 'light 中性 CTA').toBeGreaterThanOrEqual(4.5);- expect(contrast('#252222', D['accent-cta-bg']!), 'dark 中性 CTA').toBeGreaterThanOrEqual(4.5);+ expect(contrast('#151515' /* 2026-08 色阶改版: 反相深字随暗色平移 */, D['accent-cta-bg']!), 'dark 中性 CTA').toBeGreaterThanOrEqual(4.5);// Fast toggle: thumb(surface-on-card) × track(fast-toggle-track = text-disabled)expect(contrast(L['surface-on-card']!, L['text-disabled']!), 'light Fast toggle thumb×track').toBeGreaterThanOrEqual(3);expect(contrast(D['surface-on-card']!, D['text-disabled']!), 'dark Fast toggle thumb×track').toBeGreaterThanOrEqual(3);diff --git a/apps/desktop/src/renderer/themes/builtin/cindy-dark.ts b/apps/desktop/src/renderer/themes/builtin/cindy-dark.tsindex afa8cf849c..72eba1222b 100644--- a/apps/desktop/src/renderer/themes/builtin/cindy-dark.ts+++ b/apps/desktop/src/renderer/themes/builtin/cindy-dark.ts@@ -2,154 +2,184 @@ import type { Theme } from '../types';import cindyLogoDark from '../../assets/cindy-logo-dark.png';/*- * CINDY Dark — 品牌红 CTA + 深灰底(#2A2828)+ AA 正文;U2 二级信息色忠于 Figma 原值。- * 值的唯一权威: 2026-07-17-cindy-token-decision-table.md §3(用户 U8 批准)。- * 每个 override 注释来源(直映/插值比例/裁决);零自由裁量。+ * CINDY Dark — 品牌红 CTA + 中性近黑底(#181818)+ AA 正文;U2 二级信息色忠于 Figma 原值。+ * 值的唯一权威: token-decision-table.md §3(2026-07-17 U8 批准) + §9(2026-08 色阶改版,用户批准)。+ * §9 要点: 整体平移变暗且归零暖差、三级色等亮度转中性;已知债(层次保留率 ~65%)见 issue #2559。+ * 每个 override 注释来源;零自由裁量。*/const overrides = {- surface: '#2A2828', // 直映: 背景- 'surface-hsl': '0.0 2.4% 16.1%', // 直映: 背景 -> HSL- 'surface-elevated': '#312F2F', // 直映: 卡片/输入框- 'surface-elevated-soft': '#2F2D2D', // 插值: 背景->卡片 65%- 'surface-card-ivory': '#312F2F', // 直映: 卡片/输入框- 'surface-chip': '#2F2D2D', // 插值: Light 40% / Dark 75%- 'surface-chip-alt': '#2F2D2D', // 插值: 65%- 'surface-hover': '#2F2D2D', // 插值: hover- 'surface-hover-soft': '#2B2929', // 插值: 20%- 'surface-hover-hsl': '0.0 2.2% 18.0%', // 插值: hover -> HSL- 'surface-on-card': '#2A2828', // 裁决: 中性反相前景,不作红 CTA 专用+ surface: '#181818', // 直映: 页底(纯中性)+ 'surface-hsl': '0 0% 9.4%', // 页底 -> HSL+ 'surface-elevated': '#1F1F1F', // 卡片/输入框+ 'surface-elevated-soft': '#1D1D1D', // hover/chip+ 'surface-card-ivory': '#1F1F1F', // 卡片/输入框+ 'surface-chip': '#1D1D1D', // hover/chip+ 'surface-chip-alt': '#1D1D1D', // hover/chip+ 'surface-hover': '#1D1D1D', // hover/chip+ 'surface-hover-soft': '#191919', // 柔和 hover/代码块底+ 'surface-hover-hsl': '0 0% 11.4%', // hover -> HSL+ 'surface-on-card': '#181818', // 直映: 页底(纯中性)'switch-track-off': '#787878', // 关闭态轨道:值与依据见决策表(用户调参 2026-08-05)'switch-track-on': '#EEEEEE', // 开启态轨道:值与依据见决策表(用户调参 2026-08-05)- 'status-badge-fg': '#1F1F1F', // §7 必炸点:值经队列震荡后按 HEAD 冻结(#1F1F1F,5.61:1 × #FF6600 ≥4.5),批准依据:用户亲批方案 2026-07-17- 'border-default': '#434343', // 直映: 边框- 'border-default-hsl': '0.0 0.0% 26.3%', // 边框 -> HSL- 'border-shadcn-hsl': '0.0 0.0% 26.3%', // 边框 -> HSL- 'border-transparent-mixed': '#434343', // light transparent / dark 边框+ 'status-badge-fg': '#121212', // 反相深字: 平移+ 'border-default': '#313131', // 边框+ 'border-default-hsl': '0 0% 19.2%', // 边框 -> HSL+ 'border-shadcn-hsl': '0 0% 19.2%', // 边框 -> HSL+ 'border-transparent-mixed': '#313131', // 边框'text-primary': '#D4D4D4', // 直映: 正文'text-primary-on-dark': '#FFFFFF', // 深底/红底前景白'text-primary-emphasis': '#FFFFFF', // 强调正文- 'text-primary-inv': '#2A2828', // 反相文字+ 'text-primary-inv': '#181818', // 直映: 页底(纯中性)'text-primary-body-strong': '#D4D4D4', // 直映: 正文'text-primary-hsl': '0.0 0.0% 83.1%', // 正文 -> HSL'text-secondary': '#6F6F6F', // 直映: 二级信息; U2 例外'text-secondary-cross': '#6F6F6F', // 直映: 二级信息; U2 例外- 'text-secondary-mid': '#BFC1C4', // 整改: 小正文 AA- 'text-tertiary': '#BFC1C4', // 整改: 非 U2 token AA- 'text-tertiary-stone': '#BFC1C4', // 整改: 非 U2 token AA- 'text-tertiary-mid': '#BFC1C4', // 整改: 非 U2 token AA- 'text-tertiary-hsl': '216.0 4.1% 75.9%', // tertiary -> HSL- 'text-disabled': '#BFC1C4', // 整改: 文档矩阵 AA; 禁用视觉用 opacity- 'text-disabled-tertiary': '#BFC1C4', // 整改: disabled tertiary AA+ 'text-secondary-mid': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'text-tertiary': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'text-tertiary-stone': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'text-tertiary-mid': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'text-tertiary-hsl': '0.0 0.0% 75.7%', // 三级 -> HSL+ 'text-disabled': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'text-disabled-tertiary': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)'accent-cta-bg': '#EEEEEE', // E1D 反相中性底'accent-cta-bg-pure': '#EEEEEE', // E1D 反相中性底'accent-emphasis': '#EEEEEE', // E1D 反相中性底'accent-soft': '#D4D4D4', // E1D pressed 中性'accent-hover': '#E2E2E2', // E1D hover 中性- 'accent-pure-cta-fg': '#252222', // E1D 中性字(非白)- accent: '0.0 2.2% 18.0%', // 裁决: shadcn 中性 hover- 'agent-actions-rail': '#434343', // 边框/rail- 'ask-checkbox-border': '#BFC1C4', // AA checkbox border- 'ask-header-chip-bg': '#3A3838', // ask 卡 header chip 底: surface-chip #2F2D2D 与卡底 #312F2F 撞色不可辨,借 settings-menu-bg-hover 同档提亮值(2026-07-21 已验证在 #312F2F 上可分辨);序号角标(ask-badge-bg)落在 #3A3838 列表面上,维持默认 #2F2D2D 反而可辨,不随 header chip 提亮档调整- 'ask-send-disabled-bg': '#3A3838', // ask 卡自由输入行禁用圆形 Send 底: 同 chip 提亮档(禁用感由 text-disabled-tertiary 文字承担)- 'ask-option-list-bg': '#3A3838', // ask 卡选项列表面: 同 chip 提亮档,浮在 #312F2F 卡底上- 'ask-option-hover': '#444242', // ask 卡选项行 hover: 需高于列表面 #3A3838 一档,借 send-btn-disabled-bg 同档(2026-07-23 ask 卡整改)- background: '0.0 2.4% 16.1%', // 背景 -> HSL- 'chat-input-bg': '#312F2F', // 输入框- 'chat-input-border-focus': 'rgba(191, 193, 196, 0.30)', // 用户改稿 2026-07-20:输入框聚焦描边降至 30%- 'chat-input-chip-border': '#434343', // 边框+ 'accent-pure-cta-fg': '#151515', // 反相深字(浅钮上)+ accent: '0 0% 11.4%', // hover -> HSL+ 'agent-actions-rail': '#313131', // 边框+ 'ask-checkbox-border': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'ask-header-chip-bg': '#282828', // 菜单 hover/提问卡纸片档+ 'ask-send-disabled-bg': '#282828', // 菜单 hover/提问卡纸片档+ 'ask-option-list-bg': '#282828', // 菜单 hover/提问卡纸片档+ 'ask-option-hover': '#323232', // 禁用底/option hover 档+ background: '0 0% 9.4%', // 页底 -> HSL+ 'chat-input-bg': '#1F1F1F', // 卡片/输入框+ 'chat-input-border-focus': 'rgba(193, 193, 193, 0.30)', // 聚焦描边: 三级色 30% 派生+ 'chat-input-chip-border': '#313131', // 边框'chat-input-text': '#D4D4D4', // 正文'color-primary': '#D4D4D4', // 正文'caret-accent': '#417CDD', // 用户改稿 2026-07-18:光标撤红改回蓝(对齐 focus 蓝 #417CDD)- 'confirm-bg': '#312F2F', // 卡片+ 'confirm-bg': '#1F1F1F', // 卡片/输入框'confirm-btn-primary-bg': '#EEEEEE', // E1D C 类裁决 1:反相中性- 'confirm-btn-primary-text': '#252222', // E1D 反相中性字- 'confirm-btn-secondary-border': '#434343', // 边框+ 'confirm-btn-primary-text': '#151515', // 反相深字(浅钮上)+ 'confirm-btn-secondary-border': '#313131', // 边框'confirm-btn-secondary-hover': 'rgba(255, 255, 255, 0.08)', // 中性 alpha hover'confirm-btn-secondary-text': '#D4D4D4', // 正文'confirm-title': '#D4D4D4', // 正文- 'file-chip-bg': '#3B3A3A', // neutral chip thumb- 'file-remove-bg': '#BFC1C4', // AA remove affordance+ 'file-chip-bg': '#292929', // 文件纸片+ 'file-remove-bg': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)'info-700': '#93C5FD', // 信息/链接蓝- 'model-trigger-hover': '#2F2D2D', // hover+ 'model-trigger-hover': '#1D1D1D', // hover/chip// 下拉行 hover/选中底:必须比弹层面板(surface-elevated #312F2F)更亮才可见。// surface-hover(#2F2D2D)是为"压在页面底 #2A2828 上"调的,比抬起的面板还暗→行高亮隐形。// 故菜单行专用 token 单独抬亮一档(+12/通道),模型/权限/+ 三个菜单共用它,hover 统一可见。- 'model-item-hover': '#3D3B3B', // 下拉行 hover/选中(抬亮到面板之上)+ 'model-item-hover': '#2B2B2B', // 下拉行 hover: 抬亮到面板之上(沿革见 2026-07 注)'msg-link': '#93C5FD', // 链接蓝- 'msg-scrollbar-hover': '#504F4F', // 弱档- 'msg-user-bg': '#312F2F', // 卡片- muted: '0.0 2.2% 18.0%', // muted surface- 'muted-foreground': '216.0 4.1% 75.9%', // AA muted 前景+ 'msg-scrollbar-hover': '#3E3E3E', // 弱档+ 'msg-user-bg': '#1F1F1F', // 卡片/输入框+ muted: '0 0% 11.4%', // hover -> HSL+ 'muted-foreground': '0.0 0.0% 75.7%', // 三级 -> HSL'perm-auto-selected-text': '#417CDD', // auto approval 功能色(E5D 定稿 2026-07-17,light/dark 同值)'perm-allow-btn-bg': '#EEEEEE', // E1D C 类裁决 2:反相中性- 'perm-allow-btn-text': '#252222', // E1D 反相中性字+ 'perm-allow-btn-text': '#151515', // 反相深字(浅钮上)'perm-allow-kbd-bg': 'rgba(0, 0, 0, 0.08)', // kbd bg:随反相浅钮的深翻译层(修复 2026-07-19:原页面级深灰在浅钮上吞掉近黑字)'perm-allow-kbd-border': 'rgba(0, 0, 0, 0.20)', // 边框:同上- 'perm-code-bg': '#2B2929', // code bg- 'perm-item-selected-bg': '#2F2D2D', // selected bg- 'plan-outline-active-bg': '#2F2D2D', // active bg- 'plan-toolbar-btn-hover-bg': '#444242', // hover bg: 原 #2F2D2D 比卡底 #312F2F 更暗近不可辨,且低于 ask 卡按钮静默底 #3A3838 会反向变暗,提亮到已有禁用灰底档 #444242(2026-07-23 ask 卡整改)- popover: '0.0 2.1% 18.8%', // elevated -> HSL+ 'perm-code-bg': '#191919', // 柔和 hover/代码块底+ 'perm-item-selected-bg': '#1D1D1D', // hover/chip+ 'plan-outline-active-bg': '#1D1D1D', // hover/chip+ 'plan-toolbar-btn-hover-bg': '#323232', // 禁用底/option hover 档+ popover: '0 0% 12.2%', // 卡片 -> HSL'primary-foreground': '0.0 0.0% 100.0%', // 白前景'search-match-fg': '0.0 0.0% 83.1%', // search fg- secondary: '0.0 2.2% 18.0%', // neutral secondary- 'settings-btn-primary-text': '#252222', // E1D 中性字- 'settings-btn-secondary-hover-bg': '#2F2D2D', // secondary hover- 'text-placeholder': '#BFC1C4', // 整改: placeholder AA; 透明度由组件控制- 'settings-integration-avatar-bg': '#2F2D2D', // avatar chip- 'settings-logout-bg': '#312F2F', // 卡片- 'settings-menu-bg-hover': '#3A3838', // 用户反馈 2026-07-21:原 #2B2929 在 #2A2828 页底上几乎不可见,提亮到 ~6% 亮度差(在 #312F2F 弹窗底上也可分辨)- 'settings-menu-bg-selected': '#2F2D2D', // menu selected+ secondary: '0 0% 11.4%', // hover -> HSL+ 'settings-btn-primary-text': '#151515', // 反相深字(浅钮上)+ 'settings-btn-secondary-hover-bg': '#1D1D1D', // hover/chip+ 'text-placeholder': '#C1C1C1', // 三级转中性(等亮度,2026-08-13)+ 'settings-integration-avatar-bg': '#1D1D1D', // hover/chip+ 'settings-logout-bg': '#1F1F1F', // 卡片/输入框+ 'settings-menu-bg-hover': '#282828', // 菜单 hover/提问卡纸片档+ 'settings-menu-bg-selected': '#1D1D1D', // hover/chip'settings-source-link': '#93C5FD', // 可访问链接蓝- 'settings-theme-auto-dark': '#2A2828', // Auto 预览 dark 固定+ 'settings-theme-auto-dark': '#181818', // Auto 预览: 新暗色底'sidebar-action-icon': '0 0% 43.5%', // E1D 侧栏层级:二级暗灰 #6F6F6F(时间戳/RemoteProjectIcon)'cmd-palette-item-meta': '#6F6F6F', // E1D 侧栏层级:二级暗灰(分组标签/meta)- 'sidebar-item-active-foreground': '#252222', // 用户二次改稿 2026-07-20:反相胶囊,dark 浅底深字(同 accent-pure-cta-fg)+ 'sidebar-item-active-foreground': '#151515', // 反相深字(浅钮上)'sidebar-item-active-border': 'transparent', // 用户三次改稿 2026-07-20:选中胶囊彻底去描边'sidebar-item-active': '0.0 0.0% 93.3%', // 用户二次改稿 2026-07-20:反相胶囊 #EEEEEE 浅底(同 accent-cta-bg)- 'splash-bg': '0.0 2.4% 16.1%', // 背景 -> HSL- 'splash-text': '216.0 4.1% 75.9%', // AA splash text+ 'splash-bg': '0 0% 9.4%', // 页底 -> HSL+ 'splash-text': '0.0 0.0% 75.7%', // 三级 -> HSL'splash-text-destructive': '0.0 0.0% 100.0%', // destructive splash text- 'splash-text-muted': '216.0 4.1% 75.9%', // AA splash muted- 'titlebar-icon': '216.0 4.1% 75.9%', // AA icon- 'tooltip-bg': '#2A2828', // tooltip 深底+ 'splash-text-muted': '0.0 0.0% 75.7%', // 三级 -> HSL+ 'titlebar-icon': '0.0 0.0% 75.7%', // 三级 -> HSL+ 'tooltip-bg': '#181818', // 直映: 页底(纯中性)'tooltip-text': '#FFFFFF', // tooltip 白字'update-btn-border': '#EEEEEE', // E1D 中性底(实心胶囊,与 bg 同色)'update-btn-bg': '#EEEEEE', // E1D §15.10 反相中性:dark 浅底,承载深字- 'update-btn-text': '#252222', // E1D 中性字(#252222 on #EEEEEE = 13.60:1)+ 'update-btn-text': '#151515', // 反相深字(浅钮上)'update-btn-hover': '#E2E2E2', // E1D §15.10 四态 hover(实心,非 alpha 叠加)'accent-foreground': '0.0 0.0% 83.1%', // 裁决: accent 成对中性前景- 'panel-bg': '#2A2828', // 依赖 D1: 注册后直映背景+ 'panel-bg': '#181818', // 直映: 页底(纯中性)primary: '0.0 0.0% 93.3%', // E1D C 类裁决 3:反相中性 HSLring: '217.3 69.7% 56.1%', // 固定蓝(E5D 定稿 2026-07-17 #417CDD HSL,取代 #3b82f6)- 'settings-theme-auto-light': '#EDEDED', // Auto 预览 light 固定+ 'settings-theme-auto-light': '#F2F2ED', // Auto 预览: 新页底(暖象牙)foreground: '0.0 0.0% 83.1%', // alias closure 直接值- border: '0.0 0.0% 26.3%', // alias closure- input: '0.0 0.0% 26.3%', // alias closure+ border: '0 0% 19.2%', // 边框 -> HSL+ input: '0 0% 19.2%', // 边框 -> HSL'secondary-foreground': '0.0 0.0% 83.1%', // alias closure'popover-foreground': '0.0 0.0% 83.1%', // alias closure- titlebar: '0.0 2.4% 16.1%', // alias closure: surface- 'titlebar-border': '0.0 0.0% 26.3%', // alias closure: border- 'titlebar-button-hover': '0.0 2.2% 18.0%', // alias closure: hover- 'titlebar-control-hover': '0.0 2.2% 18.0%', // alias closure: hover- sidebar: '0.0 2.4% 16.1%', // alias closure: surface- 'sidebar-border': '0.0 0.0% 26.3%', // alias closure: border+ titlebar: '0 0% 9.4%', // 页底 -> HSL+ 'titlebar-border': '0 0% 19.2%', // 边框 -> HSL+ 'titlebar-button-hover': '0 0% 11.4%', // hover -> HSL+ 'titlebar-control-hover': '0 0% 11.4%', // hover -> HSL+ sidebar: '0 0% 9.4%', // 页底 -> HSL+ 'sidebar-border': '0 0% 19.2%', // 边框 -> HSL'sidebar-item-hover': '0.0 0.0% 100.0% / 0.09', // 玻璃面 hover 半透明化 2026-07-21:白 9% 叠加(原实色 hsl(0 2.2% 18%) 在暗玻璃底上的等价叠加量),壁纸可继续透过- 'sidebar-search-bg': '0.0 2.4% 16.1%', // alias closure: surface+ 'sidebar-search-bg': '0 0% 9.4%', // 页底 -> HSL'sidebar-search-input-bg': 'rgba(0, 0, 0, 0.25)', // 玻璃面搜索输入框 2026-07-21:黑 25% 下陷字段感(与 hover 白 9% 方向相反,可区分"可输入")'sidebar-muted': '0 0% 43.5%', // E1D 侧栏层级:二级暗灰 #6F6F6F(行首图标普通态)- 'surface-translucent-sidebar': 'rgba(18, 15, 15, 0.80)', // 用户调参 2026-07-20:75%→80%(壁纸透入略收)- 'surface-translucent-main': '#2A2828', // E4D 主面板:用户勘误 2026-07-17 撤销毛玻璃,改不透明等价 surface(原 rgba(18,15,15,0.85))- 'surface-translucent-overlay': 'rgba(37, 35, 35, 0.80)', // E4D R1 模式3- 'composer-pill-bg': '#393838', // E2 composer pill 底(dark,lead Figma 实测 §2-3;取代错稿 glass-pill)+ 'surface-translucent-sidebar': 'rgba(5, 5, 5, 0.85)', // 侧栏玻璃: 用户调参 2026-08-11(黑 5 度 85%)+ 'surface-translucent-main': '#181818', // 直映: 页底(纯中性)+ 'surface-translucent-overlay': 'rgba(21, 21, 21, 0.80)', // 浮层玻璃: 平移+ 'composer-pill-bg': '#272727', // composer pill'composer-pill-icon': '#D9D9D9', // E2 composer pill 图标(dark)'send-btn-bg': '#EEEEEE', // R4 D1/D2 反相中性可用底- 'send-btn-icon': '#252222', // R4 反相中性字- 'send-btn-disabled-bg': '#444242', // R4 禁用灰底- 'send-btn-disabled-icon': '#585555', // R4 禁用灰字+ 'send-btn-icon': '#151515', // 反相深字(浅钮上)+ 'send-btn-disabled-bg': '#323232', // 禁用底/option hover 档+ 'send-btn-disabled-icon': '#464646', // 禁用图标'send-btn-hover-bg': '#E2E2E2', // E1D 反相中性 hover(lead 四态)'send-btn-pressed-bg': '#D4D4D4', // E1D 反相中性 pressed(lead 四态)+ // ── 2026-08 色阶改版新增 override(原走注册表默认值,现按新阶梯定值;决策表 §9)──+ 'completion-badge-fg': '#121212', // 反相深字: 平移+ 'create-agent-control-bg': '#272727', // composer pill+ 'create-agent-control-bg-hover': '#323232', // 禁用底/option hover 档+ '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', // 禁用底/option hover 档+ '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',} as const;export const cindyDark: Theme = {diff --git a/apps/desktop/src/renderer/themes/builtin/cindy-light.ts b/apps/desktop/src/renderer/themes/builtin/cindy-light.tsindex 611e5c495a..c25b159330 100644--- a/apps/desktop/src/renderer/themes/builtin/cindy-light.ts+++ b/apps/desktop/src/renderer/themes/builtin/cindy-light.ts@@ -2,150 +2,183 @@ import type { Theme } from '../types';import cindyLogoLight from '../../assets/cindy-logo-light.png';/*- * CINDY Light — 品牌红 CTA + 中性灰底(#EDEDED)+ AA 正文;U2 二级信息色忠于 Figma 原值。- * 值的唯一权威: 2026-07-17-cindy-token-decision-table.md §3(用户 U8 批准)。- * 每个 override 注释来源(直映/插值比例/裁决);零自由裁量。+ * CINDY Light — 品牌红 CTA + 暖象牙底(#F2F2ED)+ AA 正文。+ * 值的唯一权威: token-decision-table.md §3(2026-07-17 U8 批准) + §9(2026-08 色阶改版,用户批准)。+ * §9 要点: 面/边框全暖(B=R-5)、文字渐进暖、二级抬到 >=3.0(取代 U2 light 原值)、+ * 交互态分页面/卡片双锚定。每个 override 注释来源;零自由裁量。*/const overrides = {- surface: '#EDEDED', // 直映: 背景- 'surface-hsl': '0.0 0.0% 92.9%', // 直映: 背景 -> HSL- 'surface-elevated': '#F8F8F8', // 直映: 卡片/输入框- 'surface-elevated-soft': '#F4F4F4', // 插值: 背景->卡片 65%- 'surface-card-ivory': '#F8F8F8', // 直映: 卡片/输入框- 'surface-chip': '#F1F1F1', // 插值: Light 40% / Dark 75%- 'surface-chip-alt': '#F4F4F4', // 插值: 65%- 'surface-hover': '#F1F1F1', // 插值: hover- 'surface-hover-soft': '#EFEFEF', // 插值: 20%- 'surface-hover-hsl': '0.0 0.0% 94.5%', // 插值: hover -> HSL+ surface: '#F2F2ED', // 直映: 页底(暖象牙)+ 'surface-hsl': '60.0 16.1% 93.9%', // 页底 -> HSL+ 'surface-elevated': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'surface-elevated-soft': '#FAFAF5', // 阶梯: 次级卡片+ 'surface-card-ivory': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'surface-chip': '#EEEEE9', // 阶梯: hover/chip(压暗于页底)+ 'surface-chip-alt': '#FAFAF5', // 阶梯: 次级卡片+ 'surface-hover': '#EEEEE9', // 阶梯: hover/chip(压暗于页底)+ 'surface-hover-soft': '#F0F0EB', // 阶梯: 柔和 hover+ 'surface-hover-hsl': '60.0 12.8% 92.4%', // hover -> HSL'surface-on-card': '#FFFFFF', // 裁决: 中性反相前景,不作红 CTA 专用'switch-track-off': '#888888', // 关闭态轨道:值与依据见决策表(用户调参 2026-08-05)'switch-track-on': '#4A4D51', // 开启态轨道:值与依据见决策表(用户调参 2026-08-05)'status-badge-fg': '#1F1F1F', // §7 必炸点:值经队列震荡后按 HEAD 冻结(#1F1F1F,5.61:1 × #FF6600 ≥4.5),批准依据:用户亲批方案 2026-07-17- 'border-default': '#DCDFE3', // 直映: 边框- 'border-default-hsl': '214.3 11.1% 87.6%', // 边框 -> HSL- 'border-shadcn-hsl': '214.3 11.1% 87.6%', // 边框 -> HSL+ 'border-default': '#E4E4DF', // 直映: 边框(冷转暖)+ 'border-default-hsl': '60.0 8.5% 88.4%', // 边框 -> HSL+ 'border-shadcn-hsl': '60.0 8.5% 88.4%', // 边框 -> HSL'border-transparent-mixed': 'transparent', // light transparent / dark 边框- 'text-primary': '#3C3F43', // 直映: 正文+ 'text-primary': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)'text-primary-on-dark': '#FFFFFF', // 深底/红底前景白- 'text-primary-emphasis': '#2E3237', // 强调正文+ 'text-primary-emphasis': '#0C0C0C', // 强调正文: 最深档(用户定 #0C0C0C,2026-08-12)'text-primary-inv': '#FFFFFF', // 反相文字- 'text-primary-body-strong': '#3C3F43', // 直映: 正文- 'text-primary-hsl': '214.3 5.5% 24.9%', // 正文 -> HSL- 'text-secondary': '#8C8E94', // 直映: 二级信息; U2 例外; 用户调参 2026-07-20:#9A9DA3→#919399→#8C8E94 二次加深- 'text-secondary-cross': '#9A9DA3', // 直映: 二级信息; U2 例外- 'text-secondary-mid': '#686B72', // 整改: 小正文 AA- 'text-tertiary': '#686B72', // 整改: 非 U2 token AA- 'text-tertiary-stone': '#686B72', // 整改: 非 U2 token AA- 'text-tertiary-mid': '#686B72', // 整改: 非 U2 token AA- 'text-tertiary-hsl': '222.0 4.6% 42.7%', // tertiary -> HSL- 'text-disabled': '#686B72', // 整改: 文档矩阵 AA; 禁用视觉用 opacity- 'text-disabled-tertiary': '#686B72', // 整改: disabled tertiary AA+ 'text-primary-body-strong': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'text-primary-hsl': '0.0 0.0% 10.2%', // 正文 -> HSL+ 'text-secondary': '#888883', // 二级: 暖灰,>=3.0 下限(2026-08 改版,取代 U2 原值)+ 'text-secondary-cross': '#888883', // 二级同档(原更淡档并入 3.0 地板)+ 'text-secondary-mid': '#6B6B67', // 三级: 等亮度暖化+ 'text-tertiary': '#6B6B67', // 三级: 等亮度暖化+ 'text-tertiary-stone': '#6B6B67', // 三级: 等亮度暖化+ 'text-tertiary-mid': '#6B6B67', // 三级: 等亮度暖化+ 'text-tertiary-hsl': '60.0 1.9% 41.2%', // 三级 -> HSL+ 'text-disabled': '#6B6B67', // 三级: 等亮度暖化+ 'text-disabled-tertiary': '#6B6B67', // 三级: 等亮度暖化'accent-cta-bg': '#3C3F43', // E1D 反相中性底(用户批准 2026-07-17,不用红)'accent-cta-bg-pure': '#3C3F43', // E1D 反相中性底'accent-emphasis': '#3C3F43', // E1D 反相中性底'accent-soft': '#25282C', // E1D pressed 中性(soft→pressed)'accent-hover': '#2E3237', // E1D hover 中性'accent-pure-cta-fg': '#FCFCFC', // E1D 中性字(非白)- accent: '0.0 0.0% 94.5%', // 裁决: shadcn 中性 hover- 'agent-actions-rail': '#DCDFE3', // 边框/rail- 'ask-checkbox-border': '#686B72', // AA checkbox border+ accent: '60.0 12.8% 92.4%', // hover -> HSL+ 'agent-actions-rail': '#E4E4DF', // 直映: 边框(冷转暖)+ 'ask-checkbox-border': '#6B6B67', // 三级: 等亮度暖化'ask-option-list-bg': '#FFFFFF', // ask 卡选项列表面: 纯白浮在 #F8F8F8 卡底上(2026-07-23 ask 卡整改)- background: '0.0 0.0% 92.9%', // 背景 -> HSL- 'chat-input-bg': '#F8F8F8', // 输入框- 'chat-input-border-focus': 'rgba(104, 107, 114, 0.30)', // 用户改稿 2026-07-20:输入框聚焦描边降至 30%- 'chat-input-chip-border': '#DCDFE3', // 边框- 'chat-input-text': '#3C3F43', // 正文- 'color-primary': '#3C3F43', // 正文+ background: '60.0 16.1% 93.9%', // 页底 -> HSL+ 'chat-input-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'chat-input-border-focus': 'rgba(107, 107, 103, 0.30)', // 聚焦描边: 三级色 30% 派生+ 'chat-input-chip-border': '#E4E4DF', // 直映: 边框(冷转暖)+ 'chat-input-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'color-primary': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)'caret-accent': '#417CDD', // 用户改稿 2026-07-18:光标撤红改回蓝(对齐 focus 蓝 #417CDD)- 'confirm-bg': '#F8F8F8', // 卡片+ 'confirm-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)'confirm-btn-primary-bg': '#3C3F43', // E1D C 类裁决 1:普通确认反相中性(danger 确认另设)'confirm-btn-primary-text': '#FCFCFC', // E1D 反相中性字- 'confirm-btn-secondary-border': '#DCDFE3', // 边框+ 'confirm-btn-secondary-border': '#E4E4DF', // 直映: 边框(冷转暖)'confirm-btn-secondary-hover': 'rgba(0, 0, 0, 0.06)', // 中性 alpha hover- 'confirm-btn-secondary-text': '#3C3F43', // 正文- 'confirm-title': '#3C3F43', // 正文- 'file-chip-bg': '#D8D9DB', // neutral chip thumb- 'file-remove-bg': '#686B72', // AA remove affordance+ 'confirm-btn-secondary-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'confirm-title': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'file-chip-bg': '#DFDFDA', // 阶梯: 弱档+ 'file-remove-bg': '#6B6B67', // 三级: 等亮度暖化'info-700': '#1D4ED8', // 信息/链接蓝- 'model-trigger-hover': '#F1F1F1', // hover+ 'model-trigger-hover': '#EEEEE9', // 阶梯: hover/chip(压暗于页底)// 下拉行 hover/选中底:surface-hover(#F1F1F1)相对面板(#F8F8F8)只差 7,行高亮几乎看不清。// 菜单行专用 token 压深一档(-14/通道)使 hover 在面板上清晰,模型/权限/+ 三菜单共用。- 'model-item-hover': '#EAEAEA', // 下拉行 hover/选中(压深到面板之下,清晰可见)+ 'model-item-hover': '#EFEFEA', // 下拉行 hover: 锚定弹层面板(比面板暗 ~12%),勿改回页底锚定'msg-link': '#1D4ED8', // 链接蓝- 'msg-scrollbar-hover': '#D8D9DB', // 弱档- 'msg-user-bg': '#F8F8F8', // 卡片- muted: '0.0 0.0% 94.5%', // muted surface- 'muted-foreground': '222.0 4.6% 42.7%', // AA muted 前景+ 'msg-scrollbar-hover': '#DFDFDA', // 阶梯: 弱档+ 'msg-user-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ muted: '60.0 12.8% 92.4%', // hover -> HSL+ 'muted-foreground': '60.0 1.9% 41.2%', // 三级 -> HSL'perm-auto-selected-text': '#417CDD', // auto approval 功能色(E5D 定稿 2026-07-17,light/dark 同值)'perm-allow-btn-bg': '#3C3F43', // E1D C 类裁决 2:反相中性(警示由橙 chip 承担)'perm-allow-btn-text': '#FCFCFC', // E1D 反相中性字'perm-allow-kbd-bg': 'rgba(255, 255, 255, 0.16)', // kbd bg:随反相深钮的浅翻译层(修复 2026-07-19:原页面级浅灰在深钮上字底同亮)'perm-allow-kbd-border': 'rgba(255, 255, 255, 0.30)', // 边框:同上- 'perm-code-bg': '#F5F5F5', // code bg- 'perm-item-selected-bg': '#F1F1F1', // selected bg- 'plan-outline-active-bg': '#F1F1F1', // active bg- 'plan-toolbar-btn-hover-bg': '#E2E2E2', // hover bg: 原 #F1F1F1 与 chip 静默底同色无反馈、在 #F8F8F8 卡底上也近不可辨,借 settings-menu-bg-hover 同档往暗压(2026-07-23 ask 卡整改)- popover: '0.0 0.0% 97.3%', // elevated -> HSL+ 'perm-code-bg': '#FAFAF5', // 代码块底: 卡片锚定(比卡片暗 ~2.6%)+ 'perm-item-selected-bg': '#F6F6F1', // 卡片锚定: 权限弹层选中行(2026-08-14)+ 'plan-outline-active-bg': '#F6F6F1', // 卡片锚定: 计划大纲激活行(2026-08-14)+ 'plan-toolbar-btn-hover-bg': '#E8E8E3', // 阶梯: 菜单 hover+ popover: '60.0 55.6% 98.2%', // 卡片 -> HSL'primary-foreground': '0.0 0.0% 100.0%', // 白前景- 'search-match-fg': '214.3 5.5% 24.9%', // search fg- secondary: '0.0 0.0% 94.5%', // neutral secondary+ 'search-match-fg': '0.0 0.0% 10.2%', // 正文 -> HSL+ secondary: '60.0 12.8% 92.4%', // hover -> HSL'settings-btn-primary-text': '#FCFCFC', // E1D 中性字- 'settings-btn-secondary-hover-bg': '#F1F1F1', // secondary hover- 'text-placeholder': '#686B72', // 整改: placeholder AA; 透明度由组件控制- 'settings-integration-avatar-bg': '#F8F8F8', // avatar chip- 'settings-logout-bg': '#F8F8F8', // 卡片- 'settings-menu-bg-hover': '#E2E2E2', // 用户反馈 2026-07-21:原 #EFEFEF 在 #EDEDED 页底上几乎不可见,改为往暗压 ~5% 亮度差- 'settings-menu-bg-selected': '#F1F1F1', // menu selected+ 'settings-btn-secondary-hover-bg': '#F6F6F1', // 卡片锚定: 设置卡上的次级按钮 hover(2026-08-14)+ 'text-placeholder': '#6B6B67', // 三级: 等亮度暖化+ 'settings-integration-avatar-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'settings-logout-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'settings-menu-bg-hover': '#E8E8E3', // 阶梯: 菜单 hover+ 'settings-menu-bg-selected': '#F6F6F1', // 卡片锚定: 比卡片暗 ~6%(压在弹层上的选中态,2026-08-14)'settings-source-link': '#1D4ED8', // 可访问链接蓝- 'settings-theme-auto-dark': '#2A2828', // Auto 预览 dark 固定- 'sidebar-action-icon': '220.0 4.7% 62.2%', // E1D 侧栏层级:二级暗灰 #9A9DA3(时间戳/RemoteProjectIcon)- 'cmd-palette-item-meta': '#9A9DA3', // E1D 侧栏层级:二级暗灰(分组标签/meta)+ 'settings-theme-auto-dark': '#181818', // Auto 预览: 新暗色底+ 'sidebar-action-icon': '60.0 2.1% 52.4%', // 侧栏灰字: 同上+ 'cmd-palette-item-meta': '#888883', // 二级同档(同上)'sidebar-item-active-foreground': '#FCFCFC', // 用户二次改稿 2026-07-20:反相胶囊,light 深底浅字(同 accent-pure-cta-fg)'sidebar-item-active-border': 'transparent', // 用户三次改稿 2026-07-20:选中胶囊彻底去描边'sidebar-item-active': '214.3 5.5% 24.9%', // 用户二次改稿 2026-07-20:反相胶囊 #3C3F43 深底(同 accent-cta-bg)- 'splash-bg': '0.0 0.0% 92.9%', // 背景 -> HSL- 'splash-text': '222.0 4.6% 42.7%', // AA splash text- 'splash-text-destructive': '214.3 5.5% 24.9%', // destructive splash text- 'splash-text-muted': '222.0 4.6% 42.7%', // AA splash muted- 'titlebar-icon': '222.0 4.6% 42.7%', // AA icon+ 'splash-bg': '60.0 16.1% 93.9%', // 页底 -> HSL+ 'splash-text': '60.0 1.9% 41.2%', // 三级 -> HSL+ 'splash-text-destructive': '0.0 0.0% 10.2%', // 正文 -> HSL+ 'splash-text-muted': '60.0 1.9% 41.2%', // 三级 -> HSL+ 'titlebar-icon': '60.0 1.9% 41.2%', // 三级 -> HSL'tooltip-bg': '#3C3F43', // tooltip 深底'tooltip-text': '#FFFFFF', // tooltip 白字'update-btn-border': '#3C3F43', // E1D 中性底(实心胶囊,与 bg 同色)'update-btn-bg': '#3C3F43', // E1D §15.10 反相中性:light 深底,承载浅字'update-btn-text': '#FCFCFC', // E1D 中性字(#FCFCFC on #3C3F43 = 10.32:1)'update-btn-hover': '#2E3237', // E1D §15.10 四态 hover(实心,非 alpha 叠加)- 'accent-foreground': '214.3 5.5% 24.9%', // 裁决: accent 成对中性前景- 'panel-bg': '#EDEDED', // 依赖 D1: 注册后直映背景+ 'accent-foreground': '0.0 0.0% 10.2%', // 正文 -> HSL+ 'panel-bg': '#F2F2ED', // 直映: 页底(暖象牙)primary: '214.3 5.5% 24.9%', // E1D C 类裁决 3:反相中性 HSLring: '217.3 69.7% 56.1%', // 固定蓝(E5D 定稿 2026-07-17 #417CDD HSL,取代 #3b82f6)- 'settings-theme-auto-light': '#EDEDED', // Auto 预览 light 固定- foreground: '214.3 5.5% 24.9%', // alias closure 直接值- border: '214.3 11.1% 87.6%', // alias closure- input: '214.3 11.1% 87.6%', // alias closure- 'secondary-foreground': '214.3 5.5% 24.9%', // alias closure- 'popover-foreground': '214.3 5.5% 24.9%', // alias closure- titlebar: '0.0 0.0% 92.9%', // alias closure: surface- 'titlebar-border': '214.3 11.1% 87.6%', // alias closure: border- 'titlebar-button-hover': '0.0 0.0% 94.5%', // alias closure: hover- 'titlebar-control-hover': '0.0 0.0% 94.5%', // alias closure: hover- sidebar: '0.0 0.0% 92.9%', // alias closure: surface- 'sidebar-border': '214.3 11.1% 87.6%', // alias closure: border+ 'settings-theme-auto-light': '#F2F2ED', // Auto 预览: 新页底+ foreground: '0.0 0.0% 10.2%', // 正文 -> HSL+ border: '60.0 8.5% 88.4%', // 边框 -> HSL+ input: '60.0 8.5% 88.4%', // 边框 -> HSL+ 'secondary-foreground': '0.0 0.0% 10.2%', // 正文 -> HSL+ 'popover-foreground': '0.0 0.0% 10.2%', // 正文 -> HSL+ titlebar: '60.0 16.1% 93.9%', // 页底 -> HSL+ 'titlebar-border': '60.0 8.5% 88.4%', // 边框 -> HSL+ 'titlebar-button-hover': '60.0 12.8% 92.4%', // hover -> HSL+ 'titlebar-control-hover': '60.0 12.8% 92.4%', // hover -> HSL+ sidebar: '60.0 12.8% 92.4%', // 侧栏兜底: 与侧栏玻璃同色(无玻璃平台回落用)+ 'sidebar-border': '60.0 8.5% 88.4%', // 边框 -> HSL'sidebar-item-hover': '0.0 0.0% 0.0% / 0.05', // 玻璃面 hover 半透明化 2026-07-21:黑 5% 叠加(原实色 #F1F1F1 在白底上的等价叠加量),毛玻璃侧栏上壁纸可继续透过- 'sidebar-search-bg': '0.0 0.0% 92.9%', // alias closure: surface- 'sidebar-search-input-bg': 'rgba(255, 255, 255, 0.55)', // 玻璃面搜索输入框 2026-07-21:白 55% 提亮字段感(与 hover 黑 5% 方向相反,可区分"可输入")- 'sidebar-muted': '220.0 4.7% 62.2%', // E1D 侧栏层级:二级暗灰 #9A9DA3(行首图标普通态)- 'surface-translucent-sidebar': 'rgba(255, 255, 255, 0.80)', // 用户调参 2026-07-20:纯白 85%→80%(透壁纸更多;#F6F6F6 试色后退回纯白)- 'surface-translucent-main': '#EDEDED', // E4D 主面板:用户勘误 2026-07-17 撤销毛玻璃,改不透明等价 surface(原 rgba(255,255,255,0.93))- 'surface-translucent-overlay': 'rgba(246, 246, 246, 0.90)', // E4D R1 模式3 浮层半透明- 'composer-pill-bg': '#FCFCFC', // E2 composer pill 底(light,lead Figma 实测 §2-3;取代错稿 glass-pill)- 'composer-pill-icon': '#3C3F43', // E2 composer pill 图标(light=text-primary)+ '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.90)', // 侧栏面: 独立压暗一档+90% 遮盖(用户调参 2026-08-13/14)+ 'surface-translucent-main': '#F2F2ED', // 直映: 页底(暖象牙)+ 'surface-translucent-overlay': 'rgba(251, 251, 246, 0.90)', // 浮层玻璃: 暖化+ 'composer-pill-bg': '#FFFFFA', // 近白档+ 'composer-pill-icon': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)'send-btn-bg': '#3C3F43', // R4 D1/D2 反相中性可用底(不用红,用户裁决)'send-btn-icon': '#FCFCFC', // R4 反相中性字'send-btn-disabled-bg': '#444242', // R4 唤醒态禁用灰底(§2.6)'send-btn-disabled-icon': '#585555', // R4 禁用灰字(§2.6 send 图标)'send-btn-hover-bg': '#2E3237', // E1D 反相中性 hover(lead 四态)'send-btn-pressed-bg': '#25282C', // E1D 反相中性 pressed(lead 四态)+ // ── 2026-08 色阶改版新增 override(原走注册表默认值,现按新阶梯定值;决策表 §9)──+ 'ask-badge-bg': '#F6F6F1', // 卡片锚定: 提问卡序号角标(2026-08-14)+ 'ask-header-chip-bg': '#F6F6F1', // 卡片锚定: 压在提问卡上(2026-08-14)+ 'cmd-palette-item-hover': '#F6F6F1', // 卡片锚定: 命令面板行 hover(2026-08-14)+ 'create-agent-control-bg': '#FFFFFA', // 近白档+ 'create-agent-control-border': '#E4E4DF', // 直映: 边框(冷转暖)+ 'create-agent-control-icon': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'create-agent-control-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'create-agent-quick-card-bg': '#FDFDF8', // 直映: 卡片/输入框(留暖近白)+ 'create-agent-quick-card-bg-hover': '#F6F6F1', // 卡片锚定: 快捷卡 hover(2026-08-14)+ 'create-agent-quick-card-border': '#E4E4DF', // 直映: 边框(冷转暖)+ 'create-agent-quick-card-icon': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'create-agent-quick-card-icon-bg': '#F2F2ED', // 直映: 页底(暖象牙)+ 'create-agent-quick-card-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'create-agent-segment-inactive-text': '#9D9D98', // 未激活态: WCAG 豁免档,勿并入二级+ 'create-agent-segment-track-bg': '#F2F2ED', // 直映: 页底(暖象牙)+ 'create-agent-send-disabled-bg': '#F2F2ED', // 直映: 页底(暖象牙)+ 'create-agent-send-disabled-icon': '#9D9D98', // 禁用态: WCAG 豁免档+ 'md-table-bg': 'rgba(241, 241, 236, 0.55)', // 表格条纹: 跟页底暖化+ 'settings-integration-avatar-border': '#EDEDE8', // 阶梯: 头像描边+ 'sidebar-list-muted': '#888883', // 侧栏灰字: 暖化+压深至 >=3.0(2026-08-13)+ 'sidebar-nav-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ 'sidebar-user-card-bg-hover': 'rgba(26, 26, 26, 0.06)', // 正文色 6% 派生+ 'sidebar-user-card-border': 'rgba(26, 26, 26, 0.10)', // 正文色 10% 派生+ 'sidebar-user-card-text': '#1A1A1A', // 正文: 近黑中性(2026-08 文字阶梯)+ // ── 对侧入表锚定: 值 = 本侧此前的注册表解析原值(解析结果不变, 仅为决策表双边冻结)──+ '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',} as const;export const cindyLight: Theme = {diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.mdindex aca90262c2..af92158562 100644--- a/docs/design-rules/DESIGN.md+++ b/docs/design-rules/DESIGN.md@@ -1022,11 +1022,11 @@ peek 有值 → 调用方跳过重验 → 链路恢复后也不再问。两端|---|---|---|| Brand red | `#DF0C27` | `#DF0C27` || Deep brand red (hover/pressed) | `#A61629` | `#A61629` |-| Background | `#EDEDED` | `#2A2828` |-| Card / input | `#F8F8F8` | `#312F2F` |-| Border | `#DCDFE3` (desktop; mobile light is a global exception `#C6C9CE` — see 15.13 "Cross-platform color isomorphism") | `#434343` |-| Secondary info | `#8C8E94` (re-tuned from Figma `#9A9DA3` in two rounds, finalized 2026-07-20) | `#6F6F6F` |-| Body text | `#3C3F43` | `#D4D4D4` |+| Background | `#F2F2ED` (warm ivory — 2026-08 revision, see 15.16) | `#181818` (pure neutral — 2026-08 revision) |+| Card / input | `#FDFDF8` | `#1F1F1F` |+| Border | `#E4E4DF` (desktop, warm; mobile light keeps its own exception `#C6C9CE` pending the mobile follow-up — see 15.13) | `#313131` |+| Secondary info | `#888883` (2026-08 ruling: warmed + raised to ≥3.0, supersedes the 2026-07-20 `#8C8E94`; history in 15.5) | `#6F6F6F` |+| Body text | `#1A1A1A` (near-black neutral; emphasis tier `#0C0C0C`) | `#D4D4D4` || Pure white | `#FFFFFF` | `#FFFFFF` |### 15.2 Red-Boundary Test Maps(品牌红边界)@@ -1037,7 +1037,7 @@ peek 有值 → 调用方跳过重验 → 链路恢复后也不再问。两端### 15.3 Interpolation Table (sRGB per-channel `round(A+(B-A)*t)`)-See the skin decision table §2 (design-stage working file, not in repo). The Light/Dark 20/40/65/75% shades are frozen with exact values in unit tests (`#EFEFEF/#F1F1F1/#F4F4F4/#F5F5F5`, `#2B2929/#2D2B2B/#2F2D2D/#2F2D2D`).+See the skin decision table §2 (design-stage working file, not in repo). The Light/Dark 20/40/65/75% shades were frozen with exact values in unit tests (`#EFEFEF/#F1F1F1/#F4F4F4/#F5F5F5`, `#2B2929/#2D2B2B/#2F2D2D/#2F2D2D`). **Superseded 2026-08**: the interpolation shades were replaced by the ladder model of the color-ramp revision (rules in 15.16, value authority `token-decision-table.md` §9); the current frozen values live in `cindyDecisionData.ts`.### 15.4 Cross-Theme Exemptions (not covered by CINDY overrides)@@ -1045,15 +1045,16 @@ See the skin decision table §2 (design-stage working file, not in repo). The Li- The status four (finalized 2026-07-17; same values both modes, all 9 themes follow with no override): running `#EA6B17` / awaiting `#19D2C1` / error (status family) `#D91F37` / done `#2AAE5B`; warning foreground `warning-fg` `#F3A115` (decoupled from Toast amber `#F59E0B` — Toast keeps its group-B status quo).- `focus-ring` `#417CDD` (blue — never red); diff red/green; modal scrim/shadows; `overlay-lightbox`; the four Toast colors.- `destructive` / `search-match-bg` stay outside HSL_FORMAT_IDS coverage.-- **hljs syntax colors** (light = highlight.js `github.css`; dark = globals.css `.dark .hljs-*` mirroring github-dark) — dual-threshold ruling (2026-07-17): syntax colors ≥3:1, body text ≥4.5:1. The hljs palettes were designed for GitHub's default canvases; CINDY's code-block canvas (`surface-elevated` `#F8F8F8`/`#312F2F`) sits close to default's, so marginal shortfalls are inherited, not CINDY-introduced (default is equally affected). Light: all syntax colors ≥3 — no remediation, itemized as exemptions. Dark: `[data-theme="cindy-dark"]` overrides `.hljs-section` to `#2573ec` (reaches 3.00:1) and sets `.hljs-punctuation` / `.hljs-tag` explicitly to `#c9d1d9` (defensive). Guarded by `cindyCodeBlockContrast.test.ts` (≥2 baseline + text ≥4.5). Full derivation: decision log.+- **hljs syntax colors** (light = highlight.js `github.css`; dark = globals.css `.dark .hljs-*` mirroring github-dark) — dual-threshold ruling (2026-07-17): syntax colors ≥3:1, body text ≥4.5:1. The hljs palettes were designed for GitHub's default canvases; CINDY's code-block canvas (`surface-elevated`, since 2026-08 `#FDFDF8`/`#1F1F1F`; code block fill `perm-code-bg` `#FAFAF5`/`#191919`) sits close to default's, so marginal shortfalls are inherited, not CINDY-introduced (default is equally affected). Light: all syntax colors ≥3 — no remediation, itemized as exemptions. Dark: `[data-theme="cindy-dark"]` overrides `.hljs-section` to `#2573ec` (3.00:1 on the pre-2026-08 canvas; 3.72:1 after the darker revision — margins only improved, override retained) and sets `.hljs-punctuation` / `.hljs-tag` explicitly to `#c9d1d9` (defensive). Guarded by `cindyCodeBlockContrast.test.ts` (≥2 baseline + text ≥4.5). Full derivation: decision log.- model-budget spectrum bar / GhostTool shimmer: explicitly exempt (neutral shimmer, theme-invariant).### 15.5 U2 Explicit Exception (secondary-info color stays true to Figma)-- Tokens: `text-secondary` (light `#8C8E94` / dark `#6F6F6F`) / `text-secondary-cross` (light stays `#9A9DA3`, not re-tuned).+- Tokens: `text-secondary` (light `#888883` since 2026-08 / dark `#6F6F6F`) / `text-secondary-cross` (light merged into the same `#888883` tier in 2026-08; was `#9A9DA3`).+- **Light side superseded 2026-08-13 (user ruling)**: light secondary info moved to `#888883` — warmed to the ivory hue (B=R−5) and raised to a ≥3.0 floor on every surface it sits on (page 3.17 / hover 3.06 / sidebar 3.06). The U2 "stay true to Figma" exemption now applies to **dark only** (`#6F6F6F` untouched).- Measured contrast (WCAG): × surface `2.32/2.92:1`, × elevated `2.56/2.65:1`, × chip `2.41/2.72:1` — all below the 4.5:1 body-text AA. Ruling **U2 (2026-07-16): stay true to the Figma values**, readability loss accepted as a recorded explicit deviation. (Light was later re-tuned in two rounds to `#8C8E94`, finalized 2026-07-20, desktop and mobile in sync — see decision log.)-- Constraint: **never darken unilaterally** (`#686B72` was tried and rejected, kept only as an archived sample); changing the value requires a fresh user ruling.-- Reverse-frozen test: `cindyThemes.test.ts` group ⑦ asserts the exact finalized values (light `#8C8E94` / dark `#6F6F6F`); injecting `#686B72` must fail; update the baseline only after a user ruling.+- Constraint: **never darken unilaterally** (`#686B72` was tried and rejected, kept only as an archived sample); changing the value requires a fresh user ruling (the 2026-08 light change carries one).+- Reverse-frozen test: `cindyThemes.test.ts` group ⑦ asserts the exact finalized values (light `#888883`, ruling 2026-08-13 / dark `#6F6F6F`); injecting `#686B72` must fail; update the baseline only after a user ruling.### 15.6 HSL Format Contract@@ -1105,18 +1106,18 @@ The splash wordmark is a separate asset pair (`assets/splash/wordmark.png`, whit### 15.8 status-badge-fg-- The orange badge (bg `status-bar-accent` `#EA6B17`) has its own foreground token `status-badge-fg`: **default mirrors `accent-pure-cta-fg`** (light white / dark black — zero change for the 9 existing themes); **CINDY overrides both modes to `#1F1F1F`** (near-black), contrast × `#EA6B17` = **5.19:1 ≥ 4.5** (user-approved; darken toward `#000000` if a future orange fails 4.5).+- The orange badge (bg `status-bar-accent` `#EA6B17`) has its own foreground token `status-badge-fg`: **default mirrors `accent-pure-cta-fg`** (light white / dark black — zero change for the 9 existing themes); **CINDY overrides light to `#1F1F1F`, dark to `#121212`** (near-black; dark shifted with the 2026-08 ramp — see 15.16), contrast × `#EA6B17` = **5.19:1 / 5.90:1 ≥ 4.5** (user-approved; darken toward `#000000` if a future orange fails 4.5).- Consumers: `ContactsListPane:150` uses `status-badge-fg`; the `surface-on-card` consumers that sat on red CTAs (`RolePillDropdown:543/544`, `SkillhubDetailView:504`) moved to `accent-pure-cta-fg` (white); `surface-on-card` stays neutral-inverse (Fast toggle thumb). Registered in `cindyDecisionData` (a D2-phase addition).### 15.10 Red-System Boundary & Neutral CTAs — current state(E1D 红色边界)-- Ordinary primary actions never use brand red — they are neutral-inverse. **Neutral button four states**: light bg `#3C3F43` / text `#FCFCFC`, hover `#2E3237`, pressed `#25282C`; dark bg `#EEEEEE` / text `#252222`, hover `#E2E2E2`, pressed `#D4D4D4` (WCAG 10.32/13.60:1).+- Ordinary primary actions never use brand red — they are neutral-inverse. **Neutral button four states**: light bg `#3C3F43` / text `#FCFCFC`, hover `#2E3237`, pressed `#25282C`; dark bg `#EEEEEE` / text `#151515` (2026-08: inverse dark text shifted with the darker ramp, was `#252222`), hover `#E2E2E2`, pressed `#D4D4D4` (WCAG 10.32/15.74:1).- Red is confined to semantic exceptions: `destructive`/delete, `error-*`, warning, diff red, status dots — plus the login brand accent via `--login-brand-accent` (§16). The older `brand-login-*` tokens were retired with the wave4 white-canvas login and survive only as whitelist strings in `cindyDecisionData.ts` (harmless — the whitelist permits, it does not require).-- **send-btn family**: `send-btn-bg/-icon/-hover-bg/-pressed-bg/-disabled-bg/-disabled-icon` — CINDY overrides the whole family to the neutral four states + disabled grays `#444242`/`#585555`; defaults keep `--accent-cta-bg` with the opacity-85 hover. Whole family sits in `cindyDecisionData` REQUIRED_IDS + CINDY_EXPECTED, guarded by assertion ③.+- **send-btn family**: `send-btn-bg/-icon/-hover-bg/-pressed-bg/-disabled-bg/-disabled-icon` — CINDY overrides the whole family to the neutral four states + disabled grays (light `#444242`/`#585555` unchanged; dark shifted 2026-08 to `#323232`/`#464646`); defaults keep `--accent-cta-bg` with the opacity-85 hover. Whole family sits in `cindyDecisionData` REQUIRED_IDS + CINDY_EXPECTED, guarded by assertion ③.- **Sidebar color hierarchy** (same set for light/dark):- Body (session titles) = `text-foreground` (= `text-primary`: light `#3C3F43` / dark `#D4D4D4`).- - Secondary gray (leading icons at rest / timestamps / meta / group labels) = light `#9A9DA3` / dark `#6F6F6F` (same as `text-secondary`); CINDY overrides `sidebar-muted` / `sidebar-action-icon` (HSL `220.0 4.7% 62.2%` / `0 0% 43.5%`) + `cmd-palette-item-meta` (hex).- - Selected pill = inverse pill: `sidebar-item-active` light `#3C3F43` / dark `#EEEEEE`, foreground `sidebar-item-active-foreground` light `#FCFCFC` / dark `#252222`, border transparent. **Any foreground sitting on `bg-sidebar-item-active` must use `text-sidebar-item-active-foreground` — `text-foreground` is forbidden there** (the token defaults to foreground, so non-CINDY themes see zero change).+ - Secondary gray (leading icons at rest / timestamps / meta / group labels) = light `#888883` (2026-08, was `#9A9DA3`) / dark `#6F6F6F` (same as `text-secondary`); CINDY overrides `sidebar-muted` / `sidebar-action-icon` (HSL `60.0 2.1% 52.4%` / `0 0% 43.5%`) + `cmd-palette-item-meta` (hex).+ - Selected pill = inverse pill: `sidebar-item-active` light `#3C3F43` / dark `#EEEEEE`, foreground `sidebar-item-active-foreground` light `#FCFCFC` / dark `#151515` (2026-08, was `#252222`), border transparent. **Any foreground sitting on `bg-sidebar-item-active` must use `text-sidebar-item-active-foreground` — `text-foreground` is forbidden there** (the token defaults to foreground, so non-CINDY themes see zero change).- Running-state leading icons (vendor glyph / Puzzle / RadioTower / Clock) = **Thinking Orange `--warning-accent` `#EA6B17`**, breathing via `session-status-breathing`; the selected state stays orange (running outranks the inverse foreground). Mobile `statusAccent` mirrors value and priority. Persistent breathing sits on an HTML wrapper; SVG stays static (engineering conventions §7).- Assertions: ③ CINDY_EXPECTED locks the 4 token values; ⑦ adds hierarchy assertions (secondary gray clearly weaker than body; selected-pill foreground ≥4.5 on its fill).- Test maps: `NEUTRAL_PRIMARY_EXPECTED_BY_ID` / `NEUTRAL_PRIMARY_FOREGROUND_BY_ID` + `RED_EXCEPTION_ALLOWED_IDS` (replacing the pre-E1D `BRAND_RED_*` maps — archived in the decision log). Assertions ⑤/⑦/⑧ enforce exact neutrals, the red whitelist, neutral contrast, and falsifiability.@@ -1150,7 +1151,7 @@ The execution rulebook for subsequent desktop / mobile UI updates. Sources: the#### Red boundary- Brand red `#DF0C27` only for brand display / splash, destructive actions, running/thinking emphasis, and the list active glyph (dark uses `#A61629` for the glyph).-- Ordinary CTAs, FABs, send buttons, and confirm-style primaries are neutral-inverse: light bg `#3C3F43` / text `#FCFCFC`, dark bg `#EEEEEE` / text `#252222`. Never brand-red these.+- Ordinary CTAs, FABs, send buttons, and confirm-style primaries are neutral-inverse: light bg `#3C3F43` / text `#FCFCFC`, dark bg `#EEEEEE` / text `#151515` (2026-08). Never brand-red these.- The red whitelist does not include carets, focus rings, ordinary buttons, or ordinary selected backgrounds. A new red consumer must document its semantics and enter the token/test whitelist first; no component-level hardcoding.#### Caret & focus@@ -1162,6 +1163,7 @@ The execution rulebook for subsequent desktop / mobile UI updates. Sources: the#### Cross-platform color isomorphism- Mobile color semantics must mirror the desktop token decisions: the base layers (background, body, secondary info, borders) map directly from CINDY desktop semantics — never invent a parallel mobile palette for the same meanings.+- **Pending follow-up (2026-08)**: the desktop color-ramp revision (15.16) moved the desktop base layers; mobile has **not** been synced yet and still carries the pre-revision values (including comments claiming "in sync with desktop"). Until the mobile follow-up lands, the isomorphism baseline for mobile remains the pre-2026-08 desktop values; do not partially sync individual tokens.- **`colors.border` light is a mobile-wide exception, not a homepage-scoped token** (ruling 2026-07-21, PR #266): mobile light `border` / `borderTranslucent` = `#C6C9CE` / `rgba(198,201,206,0.62)`, deviating from desktop `#DCDFE3` — desktop borders usually sit on `#F8F8F8` cards, while mobile hairlines sit directly on the `#EDEDED` background, where `#DCDFE3` reads at a nearly invisible 1.14:1; the darkened 1.42:1 is device-verified legible. The value lives in `apps/mobile/src/theme/tokens.ts` global `lightColors.border`, applying to every mobile-light hairline; dark stays `#434343`, isomorphic with desktop. `chatCodeBorder` / `sheetActionBorder` / `sheetGrabber` keep independent values and do not follow this exception.- Mobile-only tokens carry only mobile-specific layers or geometry:@@ -1217,6 +1219,18 @@ The execution rulebook for subsequent desktop / mobile UI updates. Sources: the- titlebar-area (ContentHeader) ghost elements → `titlebar-button-hover` (same as the ChromeActions window buttons);- general light hover in the content area → `--surface-hover`.+### 15.16 2026-08 Color-Ramp Revision (warm ivory light / neutral near-black dark)++> Value authority: [`token-decision-table.md`](./token-decision-table.md) §9 (full ladders, text tiers, contrast matrix, approval trail). Frozen in `cindyDecisionData.ts`; this subsection pins the rules.++- **Light** = warm ivory: page `#F2F2ED`; every surface/border is warm with **B = R−5** (single warmth constant; one sanctioned ceiling exception — pure white `#FFFFFF` stays for floating planes that need maximum lift above the near-white card, currently `ask-option-list-bg` only). Cards stay near-white (`#FDFDF8`) — card lift ≈9.4%, matching the original spec. Hover/chip tiers sit **below** the page (the white ceiling leaves no room above); the sidebar is its own plane one step darker (`#EEEEE9` at 90% glass opacity).+- **Dark** = pure neutral: page `#181818`, all layers R=G=B (zero warmth), simple parallel shift from the 2026-07 values. Known debt: near-black compression keeps only ~65% of the original perceived layer separation — recorded in [#2559](https://github.com/makecindy/cindy/issues/2559), fix is the equal-luminance ladder.+- **Text ramp (light)**: deepest emphasis `#0C0C0C` → body `#1A1A1A` (both neutral, crisp) → tertiary `#6B6B67` (warm −4) → secondary/meta `#888883` (warm −5, ≥3.0 floor) → disabled `#9D9D98` (WCAG-exempt). Warmth increases as text gets lighter; dark text tiers are all neutral (tertiary `#C1C1C1`, equal-luminance neutralized 2026-08).+- **Dual anchoring**: interactive fills that sit on the **page** anchor to the page (`surface-hover` tier); fills that sit on **cards/popovers** anchor to the card (`#F6F6F1` tier, ≈6% below card — `settings-menu-bg-selected`, `perm-item-selected-bg`, `ask-badge-bg`, `cmd-palette-item-hover`, etc.). A single token cannot serve both planes after the revision; do not "unify" them back.+- **Twin sync**: every color carried in both hex and HSL forms (24 pairs) must stay value-identical; derived translucent inlines (e.g. `chat-input-border-focus` = tertiary at 30%) must be re-derived when their source moves.+- **Exempt families untouched**: `login-*` (58 tokens), `diff-*`, `error-*`, `overlay-*`, semantic status colors, shadows — per §10/§16 and `protected-tokens.ts`.+- User-tuned one-offs: dark sidebar glass `rgba(5,5,5,0.85)` (2026-08-11); light sidebar glass 90% opacity (2026-08-13/14).+## 16. Login Flow (登录链路)> 本节是登录全链路的设计系统规范。逐参数权威 = 同目录的 [`figma-component-spec.md`](./figma-component-spec.md)(组件 / 色板速查,nodeId 溯源)与 [`token-decision-table.md`](./token-decision-table.md)(token / 尺寸决策)——两份自 2026-07-24 起随 `docs/design-rules/` 入仓维护;`DESIGN-login`(逐屏规格)、`flow-map`(状态机)、`fidelity-matrix`(保真度验收矩阵)仍为设计阶段工作文件,不入仓库。本节不重复抄全表,只钉死设计规则与组件契约,逐参数值以 Figma 组件库及本节色板表为准。diff --git a/docs/design-rules/token-decision-table.md b/docs/design-rules/token-decision-table.mdindex 5debd38658..921711a9dc 100644--- a/docs/design-rules/token-decision-table.md+++ b/docs/design-rules/token-decision-table.md@@ -160,3 +160,71 @@ export const loginColors = {- 回调页 dark/white 是浏览器页面自身主题,不一定等于 app 当前主题;实现时要保留强制 preview 能力。- disabled 按钮的 `rgba(255,255,255,0.7)` 需要 token 化,否则会违反「不硬编码 rgba」规则。- ~~如果后续新增 hover / pressed Figma 状态,应优先复用 `login-brand-bg-pressed` / `login-primary-button-bg`,不要把 hover 写成临时 hex。~~〔已关闭(wave5 2026-07-24):hover / pressed 状态已全量补齐并统一为「hover 叠白变亮 / pressed 叠黑」,叠层走 `--login-overlay-*` 二态 token 组,见 §3 表尾与 `figma-component-spec §11.1`;`login-brand-bg-pressed` 仅保留品牌红 accent 按压语义,不作 hover 兜底。〕++## 9. 2026-08 Cindy 皮肤色阶改版(暖象牙 + 中性近黑)++> 用户在 2026-08-11 ~ 2026-08-14 的交互式调参会话中逐项批准;本节为该轮全部色值改动的+> 唯一权威,取代 §3 中被覆盖的条目(§3 其余条目继续有效)。冻结载体:+> `apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts`(103 条更新 + 32 条新入表)。+> 规则正文另见 `DESIGN.md` §15.16。++### 9.1 推导规则(先于任何单值)++| 规则 | 内容 |+|---|---|+| 暖度基准(light) | 一切面/边框: **B = R−5**(与页底同一暖差);唯一暖度常数,不得混用别的暖差。天花板例外: 需最大抬升的浮起面保留纯白 `#FFFFFF`(现仅 `ask-option-list-bg`) |+| 中性基准(dark) | 一切面/文字: **R=G=B**,零暖差(2026-07 的微暖 +2 一并归零) |+| 文字渐进暖(light) | 越深越中性、越淡越暖: 强调/正文中性 → 三级 B=R−4 → 二级/meta B=R−5 |+| 等亮度换算 | 换色相时保持 WCAG 相对亮度不变(对比度只增不减);冷转暖边框按等亮度求解 |+| 双锚定 | 压在**页面**上的交互态锚定页底;压在**卡片/弹层**上的锚定卡片(单 token 无法两面兼顾,禁止"统一回去") |+| 双写同步 | 同色 HEX/HSL 两种写法(24 组)逐值一致;内联派生值(如聚焦描边=三级色 30%)随源同步 |+| 信息类文字地板 | light 二级/meta/侧栏灰字对比度 **≥3.0**(最弱面上);禁用/未激活态按 WCAG 豁免不抬 |+| 豁免不碰 | `login-*` 全族(58 token)、`diff-*`/`error-*`/`overlay-*`、语义状态色、阴影(§10/§16 + `protected-tokens.ts`) |++### 9.2 Light 面阶梯(暖象牙)++| 档 | 值 | 用途 | vs 页底亮度差 |+|---|---|---|---|+| 近白 | `#FFFFFA` | composer pill / 控件底 | +11.2% |+| 卡片 | `#FDFDF8` | 卡片/输入框/弹窗/气泡 | +9.4% |+| 次级卡片 | `#FAFAF5` | chip-alt / 代码块底(`perm-code-bg`) | +6.8% |+| 卡片锚定交互态 | `#F6F6F1` | 弹层选中/菜单选中/命令面板行 hover 等 8 项 | 比卡片 −6.1% |+| **页底** | **`#F2F2ED`** | surface / titlebar / panel | 0 |+| 柔和 hover | `#F0F0EB` | surface-hover-soft | −1.7% |+| 通用 hover/chip | `#EEEEE9` | surface-hover / chip | −3.3% |+| 侧栏 | `#EEEEE9` @ 90% 玻璃 | 独立面(玻璃遮盖度用户调参) | −3.3% |+| 下拉行 hover | `#EFEFEA` | model-item-hover(锚定弹层面板 −11.9%) | — |+| 菜单 hover | `#E8E8E3` | settings-menu-bg-hover | −8.1% |+| 边框 | `#E4E4DF` | border-default(冷 `#DCDFE3` 转暖) | −11.2% |+| 弱档 | `#DFDFDA` | file-chip / 滚动条 | −15.0% |++### 9.3 Dark 面阶梯(中性近黑,自 2026-07 值整体平移)++页底 `#181818` / 柔和 hover `#191919` / hover-chip `#1D1D1D` / 卡片 `#1F1F1F` /+composer pill `#272727` / 菜单 hover `#282828` / 文件纸片 `#292929` / 下拉行 hover `#2B2B2B` /+禁用底 `#323232` / 边框 `#313131` / 弱档 `#3E3E3E` / 侧栏玻璃 `rgba(5,5,5,0.85)`(用户调参 2026-08-11)。+**已知债**: 近黑压缩使层次观感只保留 2026-07 版的 ~65%,修复方案(等亮度阶梯)与实测数据+记录于 [issue #2559](https://github.com/makecindy/cindy/issues/2559),独立一轮处理。++### 9.4 文字阶梯与对比度++| 档 | Light | 页底对比度 | Dark | 页底对比度 |+|---|---|---|---|---|+| 强调 | `#0C0C0C`(中性) | 18.0 | `#FFFFFF` | 17.8 |+| 正文 | `#1A1A1A`(中性) | 15.5 | `#D4D4D4` | 12.0 |+| 三级/占位/禁用 | `#6B6B67`(暖−4) | 4.8 | `#C1C1C1`(等亮度转中性) | 9.9 |+| 二级/meta/侧栏灰字 | `#888883`(暖−5) | 3.2(最弱面 3.06) | `#6F6F6F`(U2 原值) | 3.5 |+| 禁用图标/未激活 | `#9D9D98`(WCAG 豁免) | 2.5 | `#464646` | — |++- light 二级取代 U2 原值 `#8C8E94`(2026-07-20 调参),U2 例外自此仅存于 dark。+- 反相中性 CTA: dark 深字 `#252222` → `#151515`(对比度 13.60 → 15.74)。+- 内联派生同步: `chat-input-border-focus` = 三级色 30%(light `rgba(107,107,103,.30)` /+ dark `rgba(193,193,193,.30)`);侧栏用户卡 hover/border = 正文色 6%/10%。++### 9.5 预览与杂项++`settings-theme-auto-light` = `#F2F2ED`、`settings-theme-auto-dark` = `#181818`(两模式文件同步);+`md-table-bg` 随页底;`surface-translucent-overlay` light 暖化 / dark 平移。+移动端未随本轮同步(342 处命中 + 冷更确认),为已登记 follow-up;+`text-secondary`/`text-tertiary` 命名倒置(改名方案)见 issue #2559。+