← 返回列表
D

@kongxiangyiren/dhs-theme-plugin

v0.0.3 · 3 天前发布

主题管理插件:设置-主题大分类,内置森林绿/海洋蓝,支持上传 __ModuleLoader__.load 格式的 JS 主题(overrideTokens + CSS + slots UI),点击切换,磁盘持久化。

dsh-plugindeepseek-harnesstheme

README

@kongxiangyiren/dhs-theme-plugin

DSH 主题管理插件(静态版):在 设置 → 主题 提供主题大分类,内置两套主题,
支持上传自定义 JS 主题并一键切换,数据持久化在磁盘上(换浏览器不丢)。

功能

  • 设置 → 主题 大分类(与"通用"平级)

  • 内置主题:森林绿 / 海洋蓝(13 个 alias token 覆盖 + 质感特效 CSS:辉光、网格/波纹、暗角、霓虹光带)

  • 上传自定义 JS 主题__ModuleLoader__.load 格式单文件,支持 overrideTokens 改色、注入 CSS、slots 注册 UI 组件、require("react")无文件大小限制

  • 点击切换:上传主题出现在主列表,点一下即应用;切换内置主题自动停用上传主题;同一时刻只有一个生效

  • 磁盘持久化:Host 半部注册 webServer 路由 GET/POST /api/theme-plugin,数据存放在 DSH home(~/.dsh/dhs-theme-plugin.json),浏览器无关
  • 安装

    ```bash

    从 npm 安装(首选)


    dsh plugin --profile web add @kongxiangyiren/dhs-theme-plugin

    或从 git 直装(纯 JS 无 prepare,无需 allowBuilds 授权)


    dsh plugin --profile web add git+https://github.com/kongxiangyiren/dhs-theme-plugin

    或本地目录(开发/验证)


    dsh plugin --profile web add ./
    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @kongxiangyiren/dhs-theme-plugin
    Repo
    git+https://github.com/kongxiangyiren/dhs-theme-plugin.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"client":{"platform":"web","immediately":true},"bundle":{"patch":"./cordis.patch.yml"}}