dsh-dracula-theme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/README.zh.md +57 -0
- package/cordis.patch.yml +7 -0
- package/lib/client.js +846 -0
- package/lib/index.js +13 -0
- package/package.json +59 -0
- package/themes/dracula-soft.json +189 -0
- package/themes/dracula.json +189 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ossFrankFrank
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# dsh-dracula-theme
|
|
2
|
+
|
|
3
|
+
🧛 Dracula theme for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH): the classic dark palette — plus the **Dracula Soft** variant — registered into the built-in theme runtime, with a one-click skin picker in **Settings → General**.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Two faithful variants** built from the official [Dracula palette](https://draculatheme.com):
|
|
8
|
+
- `Dracula` — the classic `#282a36` canvas
|
|
9
|
+
- `Dracula Soft` — the gentler `#343746` background
|
|
10
|
+
- Core logic adopted from the **official [Dracula DeepSeek port](https://github.com/dracula/deepseek)** (MIT): the canvas/brand `--dsw-static-*` overrides and code-highlight palette are taken verbatim and translated into the DSH theme runtime. On top of that, full token coverage: neutral & canvas ramps, brand (purple), blue (cyan), red / green / amber state colors, alias surfaces, component-specific tokens (sidebar, bubbles, composer, menus) and the official Dracula syntax colors for code highlighting (`--shiki-*`).
|
|
11
|
+
- One-click switching from **Settings → General → Dracula theme**, persisted across sessions.
|
|
12
|
+
|
|
13
|
+
## Preview
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
The classic Dracula canvas (`#282a36`) mapped onto the full DSH surface stack — sidebar, conversations, code blocks — with the purple/cyan brand accents from the official Dracula DeepSeek port.
|
|
18
|
+
|
|
19
|
+
## Palette
|
|
20
|
+
|
|
21
|
+
| Role | Color |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Background | `#282a36` |
|
|
24
|
+
| Dark background (base canvas) | `#20212b` |
|
|
25
|
+
| Current line / selection | `#44475a` |
|
|
26
|
+
| Foreground | `#f8f8f2` |
|
|
27
|
+
| Comment | `#6272a4` |
|
|
28
|
+
| Purple (brand) | `#bd93f9` |
|
|
29
|
+
| Pink (keyword) | `#ff79c6` |
|
|
30
|
+
| Cyan (link) | `#8be9fd` |
|
|
31
|
+
| Green (success) | `#50fa7b` |
|
|
32
|
+
| Yellow (string) | `#f1fa8c` |
|
|
33
|
+
| Orange (warn) | `#ffb86c` |
|
|
34
|
+
| Red (error) | `#ff5555` |
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
# from npm (prebuilt, recommended)
|
|
40
|
+
dsh plugin --profile web add dsh-dracula-theme
|
|
41
|
+
|
|
42
|
+
# or from source
|
|
43
|
+
dsh plugin --profile web add https://github.com/ossFrankFrank/dsh-dracula-theme
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Restart the profile, then pick the skin in **Settings → General → Dracula theme**.
|
|
47
|
+
|
|
48
|
+
## Development
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
npm run generate # rebuild themes/*.json and lib/client.js from palette/dracula.json
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The token tables are generated: edit the anchors in `palette/dracula.json` (colors, the official `canvasRamp`/`brandRamp`/`codeTokens` mappings, `grayRamp`, `soft.background`) and regenerate. `lib/client.js` is the browser bundle consumed by the DSH client runtime; `lib/index.js` is a no-op host entry.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT — see [LICENSE](LICENSE). Structure modeled on [dsh-catppuccin](https://github.com/zhijun-dai/Catppuccin-dsh-theme) (MIT); token mapping adopted from the official [Dracula DeepSeek port](https://github.com/dracula/deepseek) (MIT).
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# dsh-dracula-theme
|
|
2
|
+
|
|
3
|
+
🧛 DeepSeek Harness (DSH) 的德古拉主题:经典暗色配色(外加 **Dracula Soft** 变体)接入内置主题运行时,在**设置 → 通用**里一键切换。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
- **两套忠实变体**,基于官方 [Dracula 色板](https://draculatheme.com) 构建:
|
|
8
|
+
- `Dracula` —— 经典 `#282a36` 画布
|
|
9
|
+
- `Dracula Soft` —— 更柔和的 `#343746` 背景
|
|
10
|
+
- 完整的 token 覆盖:中性色阶、画布色阶、品牌色(紫)、蓝色(青)、红/绿/琥珀状态色、别名表面、组件专属 token(侧边栏、气泡、输入框、菜单)以及官方德古拉语法配色(`--shiki-*` 代码高亮)。
|
|
11
|
+
- 从**设置 → 通用 → 德古拉主题**一键切换,选择持久保存。
|
|
12
|
+
|
|
13
|
+
## 预览
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
经典德古拉画布(`#282a36`)映射到 DSH 全部界面层 —— 侧边栏、会话、代码块,品牌点缀色取自官方 Dracula DeepSeek 移植版的紫/青配色。
|
|
18
|
+
|
|
19
|
+
## 色板
|
|
20
|
+
|
|
21
|
+
| 角色 | 颜色 |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| 背景 | `#282a36` |
|
|
24
|
+
| 当前行 / 选区 | `#44475a` |
|
|
25
|
+
| 前景 | `#f8f8f2` |
|
|
26
|
+
| 注释 | `#6272a4` |
|
|
27
|
+
| 紫色(品牌) | `#bd93f9` |
|
|
28
|
+
| 粉色(关键字) | `#ff79c6` |
|
|
29
|
+
| 青色(链接) | `#8be9fd` |
|
|
30
|
+
| 绿色(成功) | `#50fa7b` |
|
|
31
|
+
| 黄色(字符串) | `#f1fa8c` |
|
|
32
|
+
| 橙色(警告) | `#ffb86c` |
|
|
33
|
+
| 红色(错误) | `#ff5555` |
|
|
34
|
+
|
|
35
|
+
## 安装
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
# 从 npm(预构建,推荐)
|
|
39
|
+
dsh plugin --profile web add dsh-dracula-theme
|
|
40
|
+
|
|
41
|
+
# 或从源码
|
|
42
|
+
dsh plugin --profile web add https://github.com/ossFrankFrank/dsh-dracula-theme
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
重启 profile 后,在**设置 → 通用 → 德古拉主题**里选择皮肤。
|
|
46
|
+
|
|
47
|
+
## 开发
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
npm run generate # 从 palette/dracula.json 重新生成 themes/*.json 与 lib/client.js
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
token 表是生成出来的:修改 `palette/dracula.json` 里的锚点(颜色、`grayRamp`、`soft.background`)后重新生成即可。`lib/client.js` 是浏览器端 bundle,由 DSH 客户端运行时加载;`lib/index.js` 是空的 host 入口。
|
|
54
|
+
|
|
55
|
+
## 许可
|
|
56
|
+
|
|
57
|
+
MIT —— 见 [LICENSE](LICENSE)。结构参考 [dsh-catppuccin](https://github.com/zhijun-dai/Catppuccin-dsh-theme)(MIT)。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# dsh-dracula-theme profile patch layer — insert one loader entry for the plugin
|
|
2
|
+
# package. The entry is a normal cordis loader entry (id + package name); the
|
|
3
|
+
# browser half is picked up by dsh-client-modules through the package's
|
|
4
|
+
# dsh.client declaration, exactly like the shipped ui-* packages.
|
|
5
|
+
- insert:
|
|
6
|
+
- id: dracula
|
|
7
|
+
name: 'dsh-dracula-theme'
|