@nonamelego/dsh-catppuccin 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 +131 -0
- package/assets/.gitkeep +0 -0
- package/assets/previews/frappe.png +0 -0
- package/assets/previews/hero-mocha.png +0 -0
- package/assets/previews/latte.png +0 -0
- package/assets/previews/macchiato.png +0 -0
- package/assets/previews/mocha.png +0 -0
- package/cordis.patch.yml +6 -0
- package/lib/client.js +925 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +47 -0
- package/package.json +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Catppuccin
|
|
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,131 @@
|
|
|
1
|
+
<h3 align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width="100" alt="Logo"/><br/>
|
|
3
|
+
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
|
|
4
|
+
Catppuccin for <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a>
|
|
5
|
+
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
|
|
6
|
+
</h3>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/NoNameLeGo/dsh-catppuccin/stargazers"><img src="https://img.shields.io/github/stars/NoNameLeGo/dsh-catppuccin?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
|
|
10
|
+
<a href="https://github.com/NoNameLeGo/dsh-catppuccin/issues"><img src="https://img.shields.io/github/issues/NoNameLeGo/dsh-catppuccin?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
|
|
11
|
+
<a href="https://github.com/NoNameLeGo/dsh-catppuccin/contributors"><img src="https://img.shields.io/github/contributors/NoNameLeGo/dsh-catppuccin?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="assets/previews/hero-mocha.png" width="70%" alt="Catppuccin Mocha 主题下的 DeepSeek Harness"/>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## 简介
|
|
19
|
+
|
|
20
|
+
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web GUI
|
|
21
|
+
(`dsh web`)的 [Catppuccin](https://github.com/catppuccin/catppuccin) 主题插件。
|
|
22
|
+
|
|
23
|
+
它内置 Catppuccin 的四种风味——**Latte**、**Frappé**、**Macchiato**、**Mocha**——
|
|
24
|
+
把整个界面的配色都换成对应的 Catppuccin 色板;并在 **设置 → 常规 → 外观**
|
|
25
|
+
下方提供一行 **Catppuccin** 快捷切换,选择会自动保存、下次启动自动恢复。
|
|
26
|
+
|
|
27
|
+
## 特性
|
|
28
|
+
|
|
29
|
+
- 🎨 四种风味:Latte(浅色)、Frappé / Macchiato / Mocha(深色)
|
|
30
|
+
- 🧩 接入官方主题系统,与内置浅色 / 深色 / 跟随系统主题平级
|
|
31
|
+
- 🎯 全界面配色覆盖(162 个配色变量),不只是一两个强调色
|
|
32
|
+
- ⚙️ 设置页一行切换,选择自动保存、重启自动恢复
|
|
33
|
+
- 🌐 中英文双语文案(跟随系统语言)
|
|
34
|
+
|
|
35
|
+
## 预览
|
|
36
|
+
|
|
37
|
+
四种风味在 DeepSeek Harness 中的实际效果(截图来自本地 GUI,Mocha 见文首大图):
|
|
38
|
+
|
|
39
|
+
<details>
|
|
40
|
+
<summary>🌻 Latte(浅色)</summary>
|
|
41
|
+
<img src="assets/previews/latte.png"/>
|
|
42
|
+
</details>
|
|
43
|
+
<details>
|
|
44
|
+
<summary>🪴 Frappé(深色)</summary>
|
|
45
|
+
<img src="assets/previews/frappe.png"/>
|
|
46
|
+
</details>
|
|
47
|
+
<details>
|
|
48
|
+
<summary>🌺 Macchiato(深色)</summary>
|
|
49
|
+
<img src="assets/previews/macchiato.png"/>
|
|
50
|
+
</details>
|
|
51
|
+
<details>
|
|
52
|
+
<summary>🌿 Mocha(深色)</summary>
|
|
53
|
+
<img src="assets/previews/mocha.png"/>
|
|
54
|
+
</details>
|
|
55
|
+
|
|
56
|
+
## 安装
|
|
57
|
+
|
|
58
|
+
### 方式一:从 npm 安装(推荐)
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
dsh plugin --profile <profile名> add @nonamelego/dsh-catppuccin
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
装完重启 `dsh web` 即可,`dsh plugin` 会自动把它加进 profile 的 bundles。
|
|
65
|
+
|
|
66
|
+
### 方式二:从仓库安装
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
dsh plugin --profile <profile名> add https://github.com/NoNameLeGo/dsh-catppuccin
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 方式三:本地链接
|
|
73
|
+
|
|
74
|
+
克隆到本地后,把包链接进 profile 并加入 bundles:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
pnpm --dir <profile目录> add link:<本仓库路径>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
然后在 profile 的 `package.json` 中把 `@nonamelego/dsh-catppuccin` 加进 `dsh.profile.bundles`,
|
|
81
|
+
重启 `dsh web` 即可。
|
|
82
|
+
|
|
83
|
+
## 使用
|
|
84
|
+
|
|
85
|
+
1. 打开 Web GUI(默认 `http://127.0.0.1:3080`)。
|
|
86
|
+
2. 进入 **设置 → 常规**。
|
|
87
|
+
3. 在 **外观** 区域下方找到 **Catppuccin** 行,选择风味:
|
|
88
|
+
**Latte**(浅色)、**Frappé**、**Macchiato** 或 **Mocha**(深色)。
|
|
89
|
+
4. 选择 **跟随系统** 则回退到官方主题。
|
|
90
|
+
|
|
91
|
+
## 开发
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
pnpm install
|
|
95
|
+
pnpm typecheck # tsc --noEmit 类型检查
|
|
96
|
+
pnpm test # vitest 跑配色表覆盖测试
|
|
97
|
+
pnpm build # tsdown 构建 -> lib/index.js(服务端)+ lib/client.js(浏览器)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
配色表由生成器脚本产出——修改 `scripts/generate-palettes.mjs` 后重跑:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
node scripts/generate-palettes.mjs
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 🙋 常见问题
|
|
107
|
+
|
|
108
|
+
- Q: **_"为什么外观行里看不到 Catppuccin 风味?"_**\
|
|
109
|
+
A: 官方外观行只列出内置的浅色/深色/跟随系统偏好。四种风味在它正下方的
|
|
110
|
+
**Catppuccin** 行里。
|
|
111
|
+
- Q: **_"我的风味选择是怎么记住的?"_**
|
|
112
|
+
A: 选择保存在 `dsh-catppuccin` 设置里,启动时会自动恢复。
|
|
113
|
+
|
|
114
|
+
## 💝 致谢
|
|
115
|
+
|
|
116
|
+
- [Catppuccin](https://github.com/catppuccin) 提供的色板与 port 模板
|
|
117
|
+
- [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的插件体系
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<p align="center">
|
|
122
|
+
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" />
|
|
123
|
+
</p>
|
|
124
|
+
|
|
125
|
+
<p align="center">
|
|
126
|
+
Copyright © 2021-present <a href="https://github.com/catppuccin" target="_blank">Catppuccin Org</a>
|
|
127
|
+
</p>
|
|
128
|
+
|
|
129
|
+
<p align="center">
|
|
130
|
+
<a href="https://github.com/catppuccin/catppuccin/blob/main/LICENSE"><img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8"/></a>
|
|
131
|
+
</p>
|
package/assets/.gitkeep
ADDED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# dsh-catppuccin bundle patch: inserts its dsh.client row into the web plugin
|
|
2
|
+
# roster. The bundle is the official dsh plugin shape — install it with
|
|
3
|
+
# `dsh plugin --profile <name> add <path-or-git-url>`.
|
|
4
|
+
- insert:
|
|
5
|
+
- id: dsh-catppuccin
|
|
6
|
+
name: '@nonamelego/dsh-catppuccin'
|