dsh-opencode-palette 1.6.4 → 1.7.1

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 CHANGED
@@ -1,110 +1,97 @@
1
- # 🎨 dsh-opencode-palette
1
+ <h1 align="center">🎨 dsh-opencode-palette</h1>
2
2
 
3
- **🌐 [中文](../README.md) · [English](README.en.md)**
3
+ <div align="center">
4
4
 
5
- **The complete opencode palette for DeepSeek Harness — 34 official themes. Easier on the eyes, nicer to code in.**
5
+ **🌐 [中文](../README.md) · [English](README.en.md)**
6
6
 
7
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](../LICENSE)
8
- [![npm](https://img.shields.io/npm/v/dsh-opencode-palette)](https://www.npmjs.com/package/dsh-opencode-palette)
9
- [![opencode](https://img.shields.io/badge/themes-opencode%20v1.18.12-orange)](https://github.com/anomalyco/opencode)
10
- [![tests](https://img.shields.io/badge/tests-20%2F20-green)]()
7
+ **Built for long coding sessions — 38 eye-friendly themes, one click. Easier on the eyes, nicer to code in.**
11
8
 
12
- ![hero](../assets/hero-en.svg)
13
- ## Install in one command
9
+ *为长时间编程而生 —— 38 款护眼配色一键换上,眼睛舒服,码字开心。*
14
10
 
15
- Requires the **DSH CLI** (DeepSeek Harness command-line tool). If you don't have it yet:
11
+ Your ⭐ is the brightest star in my night sky.
16
12
 
17
- ```bash
18
- npm install -g @deepseek-ai/dsh
19
- ```
13
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](../LICENSE)
14
+ [![npm](https://img.shields.io/npm/v/dsh-opencode-palette)](https://www.npmjs.com/package/dsh-opencode-palette)
15
+ [![themes](https://img.shields.io/badge/themes-38%20opencode-orange)](https://github.com/anomalyco/opencode)
16
+ [![tests](https://img.shields.io/badge/tests-38%2F38-green)]()
20
17
 
21
- Then install the plugin into your profile:
18
+ </div>
22
19
 
23
- ```bash
24
- dsh plugin --profile web add dsh-opencode-palette
25
- ```
26
20
 
27
- That's it — **zero configuration**: this plugin uses DSH's official bundle mechanism — it ships its own `cordis.patch.yml` (declared via `dsh.bundle.patch`), so `dsh plugin add` automatically joins the package into the profile's `dsh.profile.bundles` layer stack, where the DSH loader assembles it at startup; `dsh plugin remove` removes it automatically. No manual file editing, and no pnpm build scripts (no postinstall, so pnpm v10 never blocks it). Restart DSH (or refresh the browser page) and the plugin is on, using the official `opencode` theme (deep black with orange / blue / violet).
21
+ <h2 align="center"><sub>INSTALL</sub><br>Install in one command</h2>
28
22
 
29
- > **Upgrading from 1.4.x or earlier**: old versions wrote a registration block into `~/.dsh/profiles/web/cordis.patch.yml` via postinstall. Before upgrading, delete the `opencode-palette` block from that file (a leftover would duplicate the bundle registration), then re-run `dsh plugin --profile web add dsh-opencode-palette`.
23
+ <div align="center">
30
24
 
31
- ## What it does
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
- DeepSeek Harness ships with one look. This plugin lets you dress the whole interface in any of the **34 official opencode themes** — `tokyonight`, `dracula`, `gruvbox`, `matrix`, `rose-pine`, `catppuccin ×3`, `solarized`, `synthwave84` …
27
+ </div>
34
28
 
35
- - Every color comes from opencode's official theme JSON (v1.18.12) — what opencode ships is what you get.
36
- - One click re-skins everything: backgrounds, buttons, borders, status colors, markdown, and code syntax highlighting.
37
- - Your choice is remembered across restarts.
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
- **Settings → Plugins → Opencode Palette** (in Chinese: **设置 → 插件 → OpenCode 调色板**):
33
+ # 2. add the plugin to your profile
34
+ dsh plugin --profile web add dsh-opencode-palette
35
+ ```
43
36
 
44
- ![setup panel](../assets/setup-panel-en.svg)
37
+ <h2 align="center"><sub>GUIDE</sub><br>Get started in 30 seconds</h2>
45
38
 
46
- Click any theme chip — the interface re-skins instantly:
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
- ![theme switch](../assets/theme-switch-en.svg)
42
+ <h2 align="center"><sub>THEMES</sub><br>Features</h2>
49
43
 
50
- ## Features
44
+ <div align="center">
51
45
 
52
- ### 34 themes and the stories behind their names
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
- Every name has a story:
48
+ </div>
55
49
 
56
50
  ![theme stories](../assets/theme-stories-en.svg)
57
51
 
58
- ### 34 official themes, faithfully ported
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
- ![palette strips](../assets/palette-strips-en.svg)
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
- All 34 at a glance:
56
+ </div>
65
57
 
66
- ![palette matrix](../assets/palette-matrix-en.svg)
58
+ <h2 align="center"><sub>UPGRADE</sub><br>Upgrade</h2>
67
59
 
68
- ### Typography, independent from the theme
69
-
70
- - Body style: monospace (terminal) or regular (UI) — the opencode terminal look or a classic interface look.
71
- - Font size: 11–18 px.
72
- - Code font: 5 presets with live preview (JetBrains Mono, Cascadia Code, Fira Code, SF Mono, Consolas).
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
- ### `system` — back to default in one click
66
+ <div align="center">
75
67
 
76
- Restores DSH's native appearance whenever you want, while keeping your typography settings.
68
+ <details>
69
+ <summary>Upgrading from 1.4.x or earlier</summary>
77
70
 
78
- ### Persisted per browser
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
- Your theme and typography choices are stored locally and survive refresh and restart.
73
+ </details>
81
74
 
82
- ### Bilingual panel
75
+ </div>
83
76
 
84
- The panel follows your DSH interface language automatically — switch the language in DSH and the panel follows instantly.
77
+ <h2 align="center"><sub>MORE</sub><br>More from the author</h2>
85
78
 
86
- ## More from the author
79
+ <div align="center">
87
80
 
88
81
  If you like this plugin, you might also like:
89
82
 
90
- - [**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.
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
- ## Development
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
- ```bash
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
- Architecture: see [DESIGN.md](../DESIGN.md) — a data-driven three-stage pipeline, with `src/engine/map-dsh.mjs` as the single source of truth for the DSH mapping layer.
89
+ <h2 align="center"><sub>CONNECT</sub><br>Feedback & Contact</h2>
103
90
 
104
- ## Contributing
91
+ <div align="center">
105
92
 
106
- Good starting points: new upstream themes (run `npm run sync`), mapping refinements, copy polish, or more locale translations. Keep the engine pure (no DOM) so the tests stay green.
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
- ## License & credits
95
+ <img src="../assets/feishu-qr.png" alt="Author's Feishu QR code" width="260" />
109
96
 
110
- MIT © FeatherHunter. Theme definitions are vendored from [opencode](https://github.com/anomalyco/opencode) (MIT) and its upstream theme projects — see [THIRD_PARTY_NOTICES](../src/themes/THIRD_PARTY_NOTICES.md).
97
+ </div>