dsh-opencode-palette 1.6.3 → 1.7.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/README.md +53 -66
- package/lib/client.js +679 -51
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,110 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">🎨 dsh-opencode-palette</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**🌐 [中文](../README.md) · [English](README.en.md)**
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
[](https://www.npmjs.com/package/dsh-opencode-palette)
|
|
9
|
-
[](https://github.com/anomalyco/opencode)
|
|
10
|
-
[]()
|
|
7
|
+
**Built for long coding sessions — 38 eye-friendly themes, one click. Easier on the eyes, nicer to code in.**
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
## Install in one command
|
|
9
|
+
*为长时间编程而生 —— 38 款护眼配色一键换上,眼睛舒服,码字开心。*
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
Your ⭐ is the brightest star in my night sky.
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
npm
|
|
19
|
-
|
|
13
|
+
[](../LICENSE)
|
|
14
|
+
[](https://www.npmjs.com/package/dsh-opencode-palette)
|
|
15
|
+
[](https://github.com/anomalyco/opencode)
|
|
16
|
+
[]()
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
</div>
|
|
22
19
|
|
|
23
|
-
```bash
|
|
24
|
-
dsh plugin --profile web add dsh-opencode-palette
|
|
25
|
-
```
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
<h2 align="center"><sub>INSTALL</sub><br>Install in one command</h2>
|
|
28
22
|
|
|
29
|
-
>
|
|
23
|
+
<div align="center">
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
Requires the **DSH CLI**. **Zero configuration** — restart DSH (or refresh the browser page) and it just works, with the official `opencode` theme on by default.
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
</div>
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- The panel speaks your language — it follows the DSH interface language (中文 / English).
|
|
39
|
-
|
|
40
|
-
## Get started in 30 seconds
|
|
29
|
+
```bash
|
|
30
|
+
# 1. install the DSH CLI first (skip if you have it)
|
|
31
|
+
npm install -g @deepseek-ai/dsh
|
|
41
32
|
|
|
42
|
-
|
|
33
|
+
# 2. add the plugin to your profile
|
|
34
|
+
dsh plugin --profile web add dsh-opencode-palette
|
|
35
|
+
```
|
|
43
36
|
|
|
44
|
-
|
|
37
|
+
<h2 align="center"><sub>GUIDE</sub><br>Get started in 30 seconds</h2>
|
|
45
38
|
|
|
46
|
-
|
|
39
|
+
1. Open **Settings → Plugins → Opencode Palette** (in Chinese: **设置 → 插件 → OpenCode 调色板**).
|
|
40
|
+
2. Click any theme chip — the interface re-skins instantly. Try a few and find the kindest one for your eyes.
|
|
47
41
|
|
|
48
|
-
|
|
42
|
+
<h2 align="center"><sub>THEMES</sub><br>Features</h2>
|
|
49
43
|
|
|
50
|
-
|
|
44
|
+
<div align="center">
|
|
51
45
|
|
|
52
|
-
|
|
46
|
+
Every theme name has a story behind it, and all 38 live in the settings panel grouped by color family — search and switch. Each theme's 7 core colors — `background · text · primary · accent · error · warning · success` — are defined in `src/themes/`.
|
|
53
47
|
|
|
54
|
-
|
|
48
|
+
</div>
|
|
55
49
|
|
|
56
50
|

|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Each theme shows its 7 core colors at a glance — `background · text · primary · accent · error · warning · success`:
|
|
52
|
+
<div align="center">
|
|
61
53
|
|
|
62
|
-
|
|
54
|
+
Typography stays independent from the theme: applied to all text or code only, 11–18 px, 6 code fonts with live preview. `system` takes you back to DSH's native look in one click while keeping your typography. The panel follows your DSH interface language (中文 / English) instantly.
|
|
63
55
|
|
|
64
|
-
|
|
56
|
+
</div>
|
|
65
57
|
|
|
66
|
-
|
|
58
|
+
<h2 align="center"><sub>UPGRADE</sub><br>Upgrade</h2>
|
|
67
59
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
```bash
|
|
61
|
+
dsh plugin --profile web update dsh-opencode-palette
|
|
62
|
+
# pin to an older version:
|
|
63
|
+
dsh plugin --profile web add dsh-opencode-palette@<version>
|
|
64
|
+
```
|
|
73
65
|
|
|
74
|
-
|
|
66
|
+
<div align="center">
|
|
75
67
|
|
|
76
|
-
|
|
68
|
+
<details>
|
|
69
|
+
<summary>Upgrading from 1.4.x or earlier</summary>
|
|
77
70
|
|
|
78
|
-
|
|
71
|
+
Old versions wrote a registration block into `~/.dsh/profiles/web/cordis.patch.yml` via postinstall. Delete the `opencode-palette` block from that file first (a leftover would duplicate the bundle registration), then run `update` above.
|
|
79
72
|
|
|
80
|
-
|
|
73
|
+
</details>
|
|
81
74
|
|
|
82
|
-
|
|
75
|
+
</div>
|
|
83
76
|
|
|
84
|
-
|
|
77
|
+
<h2 align="center"><sub>MORE</sub><br>More from the author</h2>
|
|
85
78
|
|
|
86
|
-
|
|
79
|
+
<div align="center">
|
|
87
80
|
|
|
88
81
|
If you like this plugin, you might also like:
|
|
89
82
|
|
|
90
|
-
|
|
91
|
-
- [**dsh-mattpocock-skills-deck**](https://github.com/FeatherHunter/dsh-mattpocock-skills-deck) — Want your AI to do more than chat? 25 engineering skills, installed with a single prompt.
|
|
83
|
+
**[dsh-prompt](https://github.com/FeatherHunter/dsh-prompt)** — When you get stuck writing a prompt, it has 24 deep templates — one click, straight into your input box
|
|
92
84
|
|
|
93
|
-
|
|
85
|
+
**[dsh-mattpocock-skills-deck](https://github.com/FeatherHunter/dsh-mattpocock-skills-deck)** — Want your AI to do more than chat? 25 engineering skills, installed with a single prompt
|
|
94
86
|
|
|
95
|
-
|
|
96
|
-
npm run sync # fetch official theme JSONs from opencode (version-locked, checksummed)
|
|
97
|
-
npm test # 20 tests: engine audit of all 34 themes + panel render (zh/en)
|
|
98
|
-
npm run build # zero-dependency bundler -> package/ + dynamic client.js
|
|
99
|
-
npm run assets # regenerate the SVG images in this README
|
|
100
|
-
```
|
|
87
|
+
</div>
|
|
101
88
|
|
|
102
|
-
|
|
89
|
+
<h2 align="center"><sub>CONNECT</sub><br>Feedback & Contact</h2>
|
|
103
90
|
|
|
104
|
-
|
|
91
|
+
<div align="center">
|
|
105
92
|
|
|
106
|
-
|
|
93
|
+
Found a bug or have an idea? Please [open an issue](https://github.com/FeatherHunter/dsh-opencode-palette/issues). You can also scan the QR code to add the author on Feishu (mention `dsh-opencode-palette`).
|
|
107
94
|
|
|
108
|
-
|
|
95
|
+
<img src="../assets/feishu-qr.png" alt="Author's Feishu QR code" width="260" />
|
|
109
96
|
|
|
110
|
-
|
|
97
|
+
</div>
|