RainbowDashy/dsh-theme-palettes0

dsh-theme-palettes

DSH 调色板基础设施:支持方案映射的主题调色板,内置 VSCode 红并提供第三方注册 API。

AI 分析

核心用途是为 DSH 提供灵活的主题调色板映射与切换机制。适合想要自定义界面配色或开发第三方主题的开发者和用户。

套件
dsh-theme-palettes
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RainbowDashy/dsh-theme-palettes

Usage

This package never touches the Appearance picker and never registers a theme id there. Instead it maps the resolved color scheme onto a palette via one theme.overrideTokens layer:

  • Dark appearance uses vscode-red by default; light appearance stays on the stock (default) palette.
  • System resolves to light or dark via the OS and re-fires when the OS scheme flips.
  • Changing the Appearance preference (light/dark/system) re-maps the palette immediately.
  • A mapping that references an unregistered id is fail-soft: it behaves as default.
  • Removing the plugin restores the stock palette.

Because the palette is layered over the active theme via overrideTokens, it wins per-token for as long as the plugin is loaded.