RealHacker/dsh-theme-colorizer 预览 preview

RealHacker/dsh-theme-colorizer

Plugin插件 Native原生 ⭐ 2 UI & Themes界面与主题

一个Deepseek Harness插件,为其UI提供颜色主题。

Project Overview项目介绍

This is a native Cordis plugin built exclusively for DeepSeek Harness (DSH), designed to add customizable color theme support to DSH’s web user interface. It ships five pre-built color themes out of the box: Ocean Blue, Forest Green, Sunset Orange, Royal Purple, and Monochrome. After installation, a new “Color Theme” selector row appears in the General section of DSH’s Settings panel, letting users pick their preferred color scheme. When a user selects a theme, the plugin applies the selected theme’s CSS custom property overrides on top of the active light or dark base palette, updating all interface components to match the new color scheme.

Installing this plugin is straightforward for users with a working DSH installation. To complete a quick install, you just run the command dsh plugin --profile web add path/to/dsh-theme-colorizer-1.0.1.tgz in your terminal. The plugin is split into two separate parts: a host-side entry for DSH’s Node.js server, and a client-side bundle that runs in the user’s browser. The host side is inert and only handles initial mounting, while all core theme logic runs on the client side, with user preferences stored in the browser’s localStorage. Storing preferences locally keeps the plugin self-contained and avoids host-side persistence issues with DSH’s restricted settings allowlist.

This plugin has several known limitations that are documented in its README. First, it does not currently change the color of scrollbars or syntax highlighting, since those elements are styled by separate stylesheets that use independent token sets. Second, because user preferences are stored in localStorage, the selected theme does not sync across different browsers or devices. Third, there is no support for users to create custom color themes, only the five built-in options are available. Finally, the selected theme does not apply during the initial HTML paint, only after the client plugin fully loads. The project notes that these limitations may be addressed in future releases.

这是一个专为DeepSeek Harness(DSH)开发的原生Cordis插件,作用是为DSH的网页界面提供可自定义的颜色主题功能。目前内置了海洋蓝、森林绿、日落橙、皇家紫、单色五种预设主题,用户可以在设置面板的通用区域选择喜欢的颜色主题,插件会将选中主题对应的CSS变量覆盖在原有的明暗基础调色板之上,实现界面整体配色的个性化调整。

安装方式非常简单,只需要在终端执行 dsh plugin --profile web add 加上对应安装包路径命令即可完成安装。插件分为服务端和客户端两部分:服务端仅做入口挂载,不处理额外业务逻辑,所有核心功能都在浏览器端运行,用户的主题选择会保存在浏览器localStorage中,刷新页面或者重新打开DSH后用户选择依然有效。

插件目前存在一些已知限制:暂不支持修改滚动条和代码高亮的颜色,这些部分由独立样式表单独控制,不会跟随当前主题变化;主题选择仅保存在当前浏览器,无法跟随用户跨设备同步;也不支持用户自定义创建主题,仅能使用内置的五种预设;首次渲染页面不会加载选中主题,要等插件加载完成后才会生效。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dist\dsh-theme-colorizer-1.0.1.tgz

把 RealHacker/dsh-theme-colorizer 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-theme-colorizer

Color theme

A DeepSeek Harness (DSH) plugin that adds customizable color themes to the DeepSeek Web UI. The user selects a color theme on the Settings page, and the chosen theme's --dsw-alias-* CSS token overrides are applied on top of the active light/dark base palette.

Features

  • 5 color themes: Ocean Blue, Forest Green, Sunset Orange, Royal Purple, Monochrome
  • Settings page integration: a "Color Theme" row appears in the General section of the Settings panel
  • Persisted preference: the user's choice is kept in browser localStorage and survives page refreshes
  • Composes with the built-in Appearance row: the color theme is independent of the light/dark/system preference — both layers compose through the theme service's override stacking

How it works

The DSH plugin loading model

A DSH plugin is a Cordis plugin module. It exports an apply(ctx) function that the Cordis loader calls with a context (ctx). Every registration the plugin makes — theme overrides, slot registrations — is an effect on that context, so unloading the plugin automatically tears down its contributions.

This plugin has two halves because it contributes to both the Host (Node.js server) and the Client (browser) sides of the DSH web application:

Host side (src/index.ts)

The Host half is a loadable but inert entry: the row in the composition must resolve a package main, and the browser plugin graph is served from the package's ./client export. There is no host-side work because persistence is client-side: the Host API gateway only exposes settings namespaces on a curated allowlist (WEB_SETTINGS_NAMESPACES in the apiproxy), and plugin-owned exposure is deferred harness work — a write to an unlisted namespace is refused with settings-not-exposed. Keeping the preference in localStorage makes the plugin fully self-contained (no harness source changes, no host rebuild).

When loaded: at server startup, when the Loader reads the composition and mounts this plugin entry. The host half's apply runs and returns immediately.

Client side (src/client/index.ts)

The Client half runs in the browser. It:

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev mmx-quota-tool 下一个 Next dsh-usage-dashboard →