dsh-opencode-palette 1.6.0 → 1.6.2
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 +8 -2
- package/lib/client.js +7 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**🌐 [中文](../README.md) · [English](README.en.md)**
|
|
4
4
|
|
|
5
|
-
**The complete opencode palette for DeepSeek Harness — 34 official themes,
|
|
5
|
+
**The complete opencode palette for DeepSeek Harness — 34 official themes. Easier on the eyes, nicer to code in.**
|
|
6
6
|
|
|
7
7
|
[](../LICENSE)
|
|
8
8
|
[](https://www.npmjs.com/package/dsh-opencode-palette)
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
[]()
|
|
11
11
|
|
|
12
12
|

|
|
13
|
-
|
|
14
13
|
## Install in one command
|
|
15
14
|
|
|
16
15
|
Requires the **DSH CLI** (DeepSeek Harness command-line tool). If you don't have it yet:
|
|
@@ -84,6 +83,13 @@ Your theme and typography choices are stored locally and survive refresh and res
|
|
|
84
83
|
|
|
85
84
|
The panel follows your DSH interface language automatically — switch the language in DSH and the panel follows instantly.
|
|
86
85
|
|
|
86
|
+
## More from the author
|
|
87
|
+
|
|
88
|
+
If you like this plugin, you might also like:
|
|
89
|
+
|
|
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.
|
|
92
|
+
|
|
87
93
|
## Development
|
|
88
94
|
|
|
89
95
|
```bash
|
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* dsh-opencode-palette v1.6.
|
|
2
|
+
* dsh-opencode-palette v1.6.2 — 浏览器半(构建产物,勿手改)
|
|
3
3
|
* 数据驱动管线:opencode v1.18.12 官方主题 JSON → 颜色解析 → DSH 适配注入
|
|
4
4
|
* 源:src/engine/* + runtime/client.mjs(npm run build 重新生成)
|
|
5
5
|
*/
|
|
@@ -132,6 +132,10 @@ __mods["resolve"] = { ansiToHex, rgbToHex, hexToRgb, shade, withAlpha, contrastT
|
|
|
132
132
|
// DSH 升级改 CSS 变量名时,只需要改这一个文件。
|
|
133
133
|
// 值 = opencode 色位名;generate.mjs 负责取值与派生(提亮/透明/对比色)。
|
|
134
134
|
|
|
135
|
+
const { shade, withAlpha, contrastText } = __mods["resolve"]
|
|
136
|
+
|
|
137
|
+
// 派生 token 的 helpers 来自 resolve.mjs(shade/withAlpha/contrastText)
|
|
138
|
+
|
|
135
139
|
// ── 1. token 层:theme.overrideTokens 注册的 --dsw-alias-* 变量 ──
|
|
136
140
|
// 格式: [DSH 变量, 来源色位](来源缺失/透明/解析失败 → 该 token 自动跳过,不污染)
|
|
137
141
|
const TOKEN_MAP = [
|
|
@@ -167,7 +171,6 @@ const TOKEN_MAP = [
|
|
|
167
171
|
['--dsw-alias-button-primary-dimmed', 'backgroundPanel'],
|
|
168
172
|
// 文字层级
|
|
169
173
|
['--dsw-alias-label-primary', 'text'],
|
|
170
|
-
['--dsw-alias-label-primary-inverted', 'text'],
|
|
171
174
|
['--dsw-alias-label-primary-dimmed', 'text'],
|
|
172
175
|
['--dsw-alias-brand-primary-invert', 'text'],
|
|
173
176
|
['--dsw-alias-label-secondary', 'textMuted'],
|
|
@@ -194,6 +197,7 @@ const TOKEN_MAP = [
|
|
|
194
197
|
const DERIVED_TOKENS = [
|
|
195
198
|
['--dsw-alias-button-primary-hover', (c) => shade(c.primary, 0.12)],
|
|
196
199
|
['--dsw-alias-button-info-hover', (c) => shade(c.info, 0.12)],
|
|
200
|
+
['--dsw-alias-label-primary-inverted', (c) => contrastText(c.text)],
|
|
197
201
|
['--dsw-alias-label-primary-foreground', (c) => contrastText(c.primary)],
|
|
198
202
|
['--dsw-alias-label-dimmed', (c) => withAlpha(c.textMuted, 0.8)],
|
|
199
203
|
['--dsw-alias-button-tool-bar-fill', (c) => withAlpha(c.text, 0.1)],
|
|
@@ -8020,7 +8024,7 @@ function saveState(state) {
|
|
|
8020
8024
|
}
|
|
8021
8025
|
// ── i18n:面板文案双语表(跟随 DSH 界面语言,html[lang] 为信号源)──
|
|
8022
8026
|
const I18N = {
|
|
8023
|
-
panelName: { zh: '
|
|
8027
|
+
panelName: { zh: 'opencode调色板', en: 'Opencode Palette' },
|
|
8024
8028
|
subtitle: { zh: '34 款 opencode 官方配色主题,点击即切换', en: '34 official opencode themes — click to switch' },
|
|
8025
8029
|
enabled: { zh: '已启用', en: 'Enabled' },
|
|
8026
8030
|
disabled: { zh: '已停用', en: 'Disabled' },
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-opencode-palette",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "让 DeepSeek Harness 穿上 34 款经典皮肤——东京的霓虹夜色、德古拉的暗红月光、复古工坊的暖黄灯火、黑客帝国的数字雨、玫瑰松林间的风……一键换肤,即点即换,重启不丢。34 legendary skins for DeepSeek Harness — tokyonight's neon dusk, dracula's crimson moon, gruvbox's retro glow, the matrix's digital rain, rose-pine's rosewood calm… one click, instant, persisted.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|