tzy168/dsh-web-theme-packs ↗★ 2

dsh-web-theme-packs

Out-of-tree Web plugin: load folder-based theme packs (tokens, CSS, fonts, images) and switch them through ThemeRuntime 适合想自定义 Web 主题的用户;需配置主题包根目录。

パッケージ
dsh-web-theme-packs
互換性
未検証
Harness ピア範囲
workspace:^
Cordis ピア範囲
workspace:^
バージョン
0.1.0
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

Configuration

- id: web-theme-packs
  name: dsh-web-theme-packs
  config:
    roots:
      - !!js dshHomePath('theme-packs')
    routePrefix: /dsh-theme-packs

An empty roots list (the default) scans bundled themes/ then $DSH_HOME/theme-packs. Later roots win on duplicate ids. routePrefix must start with /, must not be /, and must not end with /.

The Host serves GET {prefix}/catalog.json, GET {prefix}/events (SSE revision stream), rewritten {prefix}/{id}/theme.css, and other pack files. The selected pack id is stored in the theme-packs.active settings section; Light / Dark / System under Appearance clears it.