packages/ui/src/Terminal.tsx 里的 xterm 主题现在统一从 packages/ui/src/styles.css 读取 terminal 专属 token。
当前接入的 token:
--color-terminal-bg--color-terminal-fg--color-terminal-cursor--color-terminal-cursor-accent--color-terminal-selection--color-terminal-selection-inactive--color-terminal-black--color-terminal-red--color-terminal-green--color-terminal-yellow--color-terminal-blue--color-terminal-magenta--color-terminal-cyan--color-terminal-white--color-terminal-bright-black--color-terminal-bright-red--color-terminal-bright-green--color-terminal-bright-yellow--color-terminal-bright-blue--color-terminal-bright-magenta--color-terminal-bright-cyan--color-terminal-bright-white调整方式:
packages/ui/src/styles.css 的亮色 @theme 和暗色 .dark 中修改对应 token。Terminal 会在主题切换时重新读取 token 并实时更新 xterm 配色。设计约束:
--color-background,避免终端区域硬编码纯白后和工作区背景脱节。默认正文、ANSI 色、选区色仍由 terminal token 单独调校,保证命令输出可读。