dsh-fish-ui 0.2.1 → 0.3.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 +14 -25
- package/client.js +150 -0
- package/icon.svg +4 -4
- package/index.js +1 -1
- package/package.json +2 -3
- package/assets/icon-180.png +0 -0
package/README.md
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
# dsh-fish-ui
|
|
2
2
|
|
|
3
|
-
**Deep Fish UI** — a dot-matrix theme for the DeepSeek Harness Web UI: a fish drawn in dots on the blank home,
|
|
3
|
+
**Deep Fish UI** — a Catppuccin-themed, dot-matrix theme for the DeepSeek Harness Web UI: a fish drawn in dots on the blank home, aurora light, pointer physics, thinking and text motion, Maple Mono NF CN type, and a switchable **Fish finish** layer.
|
|
4
4
|
|
|
5
|
-
Everything is
|
|
5
|
+
Everything is toggleable from **Settings → Plugins → dsh-fish-ui**, or the **Deep Fish UI** action in the sidebar footer.
|
|
6
6
|
|
|
7
7
|
## What's inside
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- **Soft motion**: buttons lift 1px on hover; all motion is disabled under `prefers-reduced-motion`.
|
|
9
|
+
- **Catppuccin palette**: Latte / Mocha backgrounds, text, borders, sidebar and accents, plus the code and diff palettes.
|
|
10
|
+
- **Fish hero**: a dot-matrix fish and wordmark on a blank session, a full-page dot field, a slow bottom wave and pointer ripples.
|
|
11
|
+
- **Aurora**: slowly drifting gradient light behind the interface, breathing with the accent colour.
|
|
12
|
+
- **Pointer physics**: a soft glow that follows the cursor, and a subtle 3D tilt on the composer.
|
|
13
|
+
- **Thinking & text motion**: replies rise in, reasoning blocks shimmer gently, streaming text keeps a calm breathing rhythm.
|
|
14
|
+
- **Fish finish**: Maple Mono NF CN across the UI and code with `ss01` / `cv01` / `liga`, a 16px composer with accent focus glow, rounded code surfaces, and motion-safe hover.
|
|
15
|
+
|
|
16
|
+
All motion is disabled under `prefers-reduced-motion`.
|
|
18
17
|
|
|
19
18
|
## Install
|
|
20
19
|
|
|
@@ -22,35 +21,25 @@ Everything is switchable from **Settings → Plugins → dsh-fish-ui**, or the *
|
|
|
22
21
|
dsh plugin --profile <profile> add dsh-fish-ui
|
|
23
22
|
```
|
|
24
23
|
|
|
25
|
-
Then **fully quit and reopen DSH** (Cmd+Q on macOS, not just a page refresh)
|
|
26
|
-
|
|
27
|
-
From a local checkout:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
dsh plugin --profile <profile> add /absolute/path/to/dsh-fish-ui
|
|
31
|
-
```
|
|
24
|
+
Then **fully quit and reopen DSH** (Cmd+Q on macOS, not just a page refresh).
|
|
32
25
|
|
|
33
26
|
## Font
|
|
34
27
|
|
|
35
|
-
Install the font once per machine:
|
|
36
|
-
|
|
37
28
|
```bash
|
|
38
29
|
brew install --cask font-maple-mono-nf-cn
|
|
39
30
|
```
|
|
40
31
|
|
|
41
|
-
Without it the stack falls back to the system monospace font;
|
|
32
|
+
Without it the stack falls back to the system monospace font; the font layer can be turned off in settings.
|
|
42
33
|
|
|
43
|
-
## Settings
|
|
34
|
+
## Settings groups
|
|
44
35
|
|
|
45
|
-
|
|
36
|
+
**Interface & reading** · **Hero** · **Thinking** · **Composer** · **Sidebar** · **Accents** · **Fish finish** · **Catppuccin & motion**
|
|
46
37
|
|
|
47
38
|
## Compatibility
|
|
48
39
|
|
|
49
40
|
- DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`
|
|
50
41
|
- Node.js `>=22`
|
|
51
42
|
|
|
52
|
-
Do not install two theme plugins that own the same slots at once; disable one before enabling the other.
|
|
53
|
-
|
|
54
43
|
## License
|
|
55
44
|
|
|
56
45
|
MIT. See [LICENSE](./LICENSE).
|
package/client.js
CHANGED
|
@@ -2370,6 +2370,7 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
2370
2370
|
'hero', 'field', 'wave', 'ripple', 'thinkingSphere', 'thinkingLabel',
|
|
2371
2371
|
'glass', 'effortBadge', 'sidebarDots', 'sidebarRail', 'bold', 'focusRing', 'diff',
|
|
2372
2372
|
'reading', 'code', 'fishFont', 'fishGlow', 'fishMotion', 'fishCode',
|
|
2373
|
+
'catppuccin', 'aurora', 'cursor', 'textMotion',
|
|
2373
2374
|
].map(key => [key, true])))
|
|
2374
2375
|
const DC_OFF_CLASS = Object.freeze(Object.fromEntries(Object.keys(DC_DEFAULT_SETTINGS)
|
|
2375
2376
|
.map(key => [key, 'dc-off-' + key.toLowerCase()])))
|
|
@@ -2426,10 +2427,29 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
2426
2427
|
'--dc-accent': dcModes('#3269B7', '#8AB6FA'),
|
|
2427
2428
|
'--dc-focus': dcModes('rgb(50 105 183 / 18%)', 'rgb(138 182 250 / 18%)'),
|
|
2428
2429
|
}
|
|
2430
|
+
const DC_CAT = {
|
|
2431
|
+
'--dsw-alias-bg-base': dcModes('#eff1f5', '#1e1e2e'),
|
|
2432
|
+
'--dsw-alias-bg-layer-1': dcModes('#e6e9ef', '#181825'),
|
|
2433
|
+
'--dsw-alias-bg-layer-2': dcModes('#dce0e8', '#11111b'),
|
|
2434
|
+
'--dsw-alias-bg-overlay': dcModes('#eff1f5', '#181825'),
|
|
2435
|
+
'--dsw-alias-border-l1': dcModes('#bcc0cc', '#313244'),
|
|
2436
|
+
'--dsw-alias-border-l2': dcModes('#acb0be', '#45475a'),
|
|
2437
|
+
'--dsw-alias-label-primary': dcModes('#4c4f69', '#cdd6f4'),
|
|
2438
|
+
'--dsw-alias-label-secondary': dcModes('#6c6f85', '#a6adc8'),
|
|
2439
|
+
'--dsw-specific-sidebar-fill': dcModes('#e6e9ef', '#181825'),
|
|
2440
|
+
'--dsw-alias-brand-primary': dcModes('#1e66f5', '#89b4fa'),
|
|
2441
|
+
'--dsw-alias-state-success-primary': dcModes('#40a02b', '#a6e3a1'),
|
|
2442
|
+
'--dsw-alias-state-warn-primary': dcModes('#df8e1d', '#f9e2af'),
|
|
2443
|
+
'--dsw-alias-state-error-primary': dcModes('#d20f39', '#f38ba8'),
|
|
2444
|
+
'--dsw-alias-state-idle-primary': dcModes('#8c8fa1', '#7f849c'),
|
|
2445
|
+
'--dc-accent': dcModes('#8839ef', '#cba6f7'),
|
|
2446
|
+
'--dc-focus': dcModes('rgb(136 57 239 / 18%)', 'rgb(203 166 247 / 18%)'),
|
|
2447
|
+
}
|
|
2429
2448
|
function dcSyncTheme() {
|
|
2430
2449
|
if (dcTheme === null) return
|
|
2431
2450
|
for (const [name, enabled, tokens] of [
|
|
2432
2451
|
['identity', true, DC_IDENTITY],
|
|
2452
|
+
['catppuccin', dcSettings.catppuccin, DC_CAT],
|
|
2433
2453
|
['code', dcSettings.code, DC_CODE], ['diff', dcSettings.diff, DC_DIFF],
|
|
2434
2454
|
]) {
|
|
2435
2455
|
if (enabled && !dcThemeLayers.has(name)) {
|
|
@@ -2632,6 +2652,18 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
2632
2652
|
fishMotion: ['Soft motion', 'Buttons lift on hover and surfaces ease between states'],
|
|
2633
2653
|
fishCode: ['Code surface', 'Rounded code blocks and tinted inline-code pills'],
|
|
2634
2654
|
})
|
|
2655
|
+
Object.assign(DC_COPY.zh.items, {
|
|
2656
|
+
catppuccin: ['Catppuccin 配色', 'Latte / Mocha 全套背景、文字、边框与强调色'],
|
|
2657
|
+
aurora: ['极光背景', '缓慢流动的渐变光晕,随主题色呼吸'],
|
|
2658
|
+
cursor: ['指针物理', '跟随指针的柔光、输入框微倾斜'],
|
|
2659
|
+
textMotion: ['思考与文字动效', '回复浮入、思考块微光、流式文字呼吸感'],
|
|
2660
|
+
})
|
|
2661
|
+
Object.assign(DC_COPY.en.items, {
|
|
2662
|
+
catppuccin: ['Catppuccin palette', 'Latte / Mocha backgrounds, text, borders and accents'],
|
|
2663
|
+
aurora: ['Aurora field', 'Slow drifting gradient light that breathes with the accent'],
|
|
2664
|
+
cursor: ['Pointer physics', 'A cursor-following glow and a subtle composer tilt'],
|
|
2665
|
+
textMotion: ['Thinking & text motion', 'Replies rise in, reasoning shimmers, streaming text breathes'],
|
|
2666
|
+
})
|
|
2635
2667
|
/** Switch drawn as SVG so the capsule ends and the knob are exact shapes. */
|
|
2636
2668
|
function DcSwitchSvg({ value }) {
|
|
2637
2669
|
const on = value === true
|
|
@@ -2775,6 +2807,65 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
2775
2807
|
}
|
|
2776
2808
|
`
|
|
2777
2809
|
|
|
2810
|
+
const FISH_FX_CSS = `
|
|
2811
|
+
:root:not(.dc-off-catppuccin) {
|
|
2812
|
+
--fish-ink: var(--dc-accent, #cba6f7);
|
|
2813
|
+
}
|
|
2814
|
+
:root:not(.dc-off-aurora) body {
|
|
2815
|
+
background-image:
|
|
2816
|
+
radial-gradient(55% 45% at 12% 8%, color-mix(in srgb, var(--dc-accent) 14%, transparent), transparent 70%),
|
|
2817
|
+
radial-gradient(50% 42% at 88% 16%, color-mix(in srgb, #89b4fa 12%, transparent), transparent 70%),
|
|
2818
|
+
radial-gradient(45% 38% at 50% 96%, color-mix(in srgb, #cba6f7 10%, transparent), transparent 72%) !important;
|
|
2819
|
+
background-size: 220% 220%, 220% 220%, 220% 220% !important;
|
|
2820
|
+
background-repeat: no-repeat !important;
|
|
2821
|
+
animation: fish-aurora 26s ease-in-out infinite alternate;
|
|
2822
|
+
}
|
|
2823
|
+
@keyframes fish-aurora {
|
|
2824
|
+
0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
|
|
2825
|
+
100% { background-position: 18% 12%, 82% 20%, 42% 78%; }
|
|
2826
|
+
}
|
|
2827
|
+
.fish-cursor-glow {
|
|
2828
|
+
position: fixed;
|
|
2829
|
+
left: 0;
|
|
2830
|
+
top: 0;
|
|
2831
|
+
width: 360px;
|
|
2832
|
+
height: 360px;
|
|
2833
|
+
margin: -180px 0 0 -180px;
|
|
2834
|
+
border-radius: 50%;
|
|
2835
|
+
pointer-events: none;
|
|
2836
|
+
z-index: 1;
|
|
2837
|
+
opacity: 0;
|
|
2838
|
+
transition: opacity .35s ease;
|
|
2839
|
+
background: radial-gradient(circle, color-mix(in srgb, var(--dc-accent, #cba6f7) 18%, transparent), transparent 66%);
|
|
2840
|
+
will-change: transform;
|
|
2841
|
+
}
|
|
2842
|
+
:root:not(.dc-off-cursor) .fish-cursor-glow { opacity: .55; }
|
|
2843
|
+
:root:not(.dc-off-cursor) [data-composer-card] {
|
|
2844
|
+
transition: transform .2s ease, box-shadow .25s ease;
|
|
2845
|
+
will-change: transform;
|
|
2846
|
+
}
|
|
2847
|
+
:root:not(.dc-off-textmotion) [data-chat-flow-kind="assistant-step"] {
|
|
2848
|
+
animation: fish-rise .4s cubic-bezier(.16,1,.3,1) both;
|
|
2849
|
+
}
|
|
2850
|
+
@keyframes fish-rise {
|
|
2851
|
+
from { opacity: 0; transform: translateY(7px); }
|
|
2852
|
+
to { opacity: 1; transform: none; }
|
|
2853
|
+
}
|
|
2854
|
+
:root:not(.dc-off-textmotion) [data-chat-group-part="reasoning"] {
|
|
2855
|
+
border-left: 2px solid color-mix(in srgb, var(--dc-accent, #cba6f7) 45%, transparent);
|
|
2856
|
+
padding-left: 10px;
|
|
2857
|
+
animation: fish-breathe 4.5s ease-in-out infinite;
|
|
2858
|
+
}
|
|
2859
|
+
@keyframes fish-breathe {
|
|
2860
|
+
0%, 100% { opacity: .72; }
|
|
2861
|
+
50% { opacity: 1; }
|
|
2862
|
+
}
|
|
2863
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2864
|
+
.fish-cursor-glow { display: none; }
|
|
2865
|
+
:root body { animation: none !important; }
|
|
2866
|
+
}
|
|
2867
|
+
`
|
|
2868
|
+
|
|
2778
2869
|
function DcSettingsPage() {
|
|
2779
2870
|
const copy = dcUsesChinese() ? DC_COPY.zh : DC_COPY.en
|
|
2780
2871
|
const settings = useDcSettings()
|
|
@@ -2826,6 +2917,9 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
2826
2917
|
group(zh ? 'Fish 字体与质感' : 'Fish finish', [
|
|
2827
2918
|
item('fishFont'), item('fishGlow'), item('fishMotion'), item('fishCode'),
|
|
2828
2919
|
]),
|
|
2920
|
+
group(zh ? 'Catppuccin 与动效' : 'Catppuccin & motion', [
|
|
2921
|
+
item('catppuccin'), item('aurora'), item('cursor'), item('textMotion'),
|
|
2922
|
+
]),
|
|
2829
2923
|
h('div', { key: 'footer', className: 'dc-set-footer' }, [
|
|
2830
2924
|
h('button', { key: 'reset', type: 'button', className: 'dc-set-reset', disabled, onClick: reset }, copy.reset),
|
|
2831
2925
|
h('span', { key: 'note', className: 'dc-set-note' }, 'Deep Fish UI · 0.2.0'),
|
|
@@ -3128,6 +3222,62 @@ body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
|
3128
3222
|
document.head.append(style)
|
|
3129
3223
|
return () => style.remove()
|
|
3130
3224
|
}, 'dsh-fish-ui: finish styles')
|
|
3225
|
+
ctx.effect(() => {
|
|
3226
|
+
const style = document.createElement('style')
|
|
3227
|
+
style.dataset.dshPlugin = 'dsh-fish-ui: fx'
|
|
3228
|
+
style.textContent = FISH_FX_CSS
|
|
3229
|
+
document.head.append(style)
|
|
3230
|
+
return () => style.remove()
|
|
3231
|
+
}, 'dsh-fish-ui: fx styles')
|
|
3232
|
+
ctx.effect(() => {
|
|
3233
|
+
if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
|
|
3234
|
+
const glow = document.createElement('div')
|
|
3235
|
+
glow.className = 'fish-cursor-glow'
|
|
3236
|
+
document.body.append(glow)
|
|
3237
|
+
let tx = window.innerWidth / 2
|
|
3238
|
+
let ty = window.innerHeight / 2
|
|
3239
|
+
let x = tx
|
|
3240
|
+
let y = ty
|
|
3241
|
+
let raf = 0
|
|
3242
|
+
const move = event => { tx = event.clientX; ty = event.clientY }
|
|
3243
|
+
const loop = () => {
|
|
3244
|
+
x += (tx - x) * 0.12
|
|
3245
|
+
y += (ty - y) * 0.12
|
|
3246
|
+
glow.style.transform = 'translate3d(' + x.toFixed(1) + 'px,' + y.toFixed(1) + 'px,0)'
|
|
3247
|
+
raf = window.requestAnimationFrame(loop)
|
|
3248
|
+
}
|
|
3249
|
+
window.addEventListener('pointermove', move, { passive: true })
|
|
3250
|
+
raf = window.requestAnimationFrame(loop)
|
|
3251
|
+
|
|
3252
|
+
const tilt = event => {
|
|
3253
|
+
const card = event.currentTarget
|
|
3254
|
+
const rect = card.getBoundingClientRect()
|
|
3255
|
+
const dx = (event.clientX - rect.left) / rect.width - 0.5
|
|
3256
|
+
const dy = (event.clientY - rect.top) / rect.height - 0.5
|
|
3257
|
+
card.style.transform = 'perspective(900px) rotateX(' + (-dy * 1.6).toFixed(2) + 'deg) rotateY(' + (dx * 1.6).toFixed(2) + 'deg)'
|
|
3258
|
+
}
|
|
3259
|
+
const reset = event => { event.currentTarget.style.transform = '' }
|
|
3260
|
+
const cards = new Set()
|
|
3261
|
+
const bind = event => {
|
|
3262
|
+
const card = event.target.closest && event.target.closest('[data-composer-card]')
|
|
3263
|
+
if (!card || cards.has(card)) return
|
|
3264
|
+
cards.add(card)
|
|
3265
|
+
card.addEventListener('pointermove', tilt)
|
|
3266
|
+
card.addEventListener('pointerleave', reset)
|
|
3267
|
+
}
|
|
3268
|
+
document.addEventListener('pointerover', bind, { passive: true })
|
|
3269
|
+
return () => {
|
|
3270
|
+
window.cancelAnimationFrame(raf)
|
|
3271
|
+
window.removeEventListener('pointermove', move)
|
|
3272
|
+
document.removeEventListener('pointerover', bind)
|
|
3273
|
+
for (const card of cards) {
|
|
3274
|
+
card.removeEventListener('pointermove', tilt)
|
|
3275
|
+
card.removeEventListener('pointerleave', reset)
|
|
3276
|
+
card.style.transform = ''
|
|
3277
|
+
}
|
|
3278
|
+
glow.remove()
|
|
3279
|
+
}
|
|
3280
|
+
}, 'dsh-fish-ui: pointer physics')
|
|
3131
3281
|
ctx.inject(['theme'], scope => {
|
|
3132
3282
|
scope.effect(() => {
|
|
3133
3283
|
dcTheme = scope.theme
|
package/icon.svg
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
2
|
-
<rect width="64" height="64" rx="14" fill="#
|
|
3
|
-
<g fill="#
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#1e1e2e"/>
|
|
3
|
+
<g fill="#cba6f7">
|
|
4
4
|
<path d="M12 22 L22 32 L12 42 Z"/>
|
|
5
5
|
<ellipse cx="37" cy="32" rx="16" ry="10"/>
|
|
6
6
|
</g>
|
|
7
|
-
<circle cx="44" cy="29" r="2.4" fill="#
|
|
8
|
-
<g fill="#
|
|
7
|
+
<circle cx="44" cy="29" r="2.4" fill="#11111b"/>
|
|
8
|
+
<g fill="#89b4fa" opacity=".85">
|
|
9
9
|
<circle cx="52" cy="18" r="1.6"/><circle cx="57" cy="13" r="1.2"/><circle cx="56" cy="23" r="1"/>
|
|
10
10
|
</g>
|
|
11
11
|
</svg>
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import Schema from '@deepseek-ai/schemastery'
|
|
|
4
4
|
export const Config = Schema.object(Object.fromEntries([
|
|
5
5
|
'hero', 'field', 'wave', 'ripple', 'thinkingSphere', 'thinkingLabel',
|
|
6
6
|
'glass', 'effortBadge', 'sidebarDots', 'sidebarRail', 'bold', 'focusRing', 'diff',
|
|
7
|
-
'reading', 'code', 'fishFont', 'fishGlow', 'fishMotion', 'fishCode',
|
|
7
|
+
'reading', 'code', 'fishFont', 'fishGlow', 'fishMotion', 'fishCode', 'catppuccin', 'aurora', 'cursor', 'textMotion',
|
|
8
8
|
].map(key => [key, Schema.boolean().default(true).volatile()]).concat([
|
|
9
9
|
['settingsMigrated', Schema.boolean().default(false).volatile().hidden()],
|
|
10
10
|
])))
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Deep Fish UI — a dot-matrix theme
|
|
5
|
+
"description": "Deep Fish UI — a Catppuccin-themed, dot-matrix DSH theme: fish hero artwork, aurora background, pointer physics, thinking/text motion, Maple Mono NF CN type and fish-finish toggles.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Guocheng Song",
|
|
8
8
|
"repository": {
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"cordis.patch.yml",
|
|
26
26
|
"locale/*.json",
|
|
27
27
|
"icon.svg",
|
|
28
|
-
"assets",
|
|
29
28
|
"README.md",
|
|
30
29
|
"LICENSE"
|
|
31
30
|
],
|
package/assets/icon-180.png
DELETED
|
Binary file
|