Back to marketplace

dsh-pixel-ui

UI & Experience

zhang66633/dsh-pixel-ui

Pixel-art skin plugin for DeepSeek Harness with four retro themes (wood, paper, warm, terminal green), switchable via settings.

  • crt
  • deepseek-harness
  • dsh
  • dsh-plugin
  • pixel-art
  • pixel-font
  • pixel-skin
  • retro
  • skin
  • stardew-valley
  • theme
GitHub Stars
3GitHub
Views
0DSH Plugin Hub
Forks
0GitHub
Open issues
0GitHub Issues
Manifest version
1.3.0dsh-pixel-ui
Latest push
Oct 6, 2026GitHub
License
MITCSS
Plugin type
Host + ClientRuns in both Host and Web Client

Verification and compatibility

This section shows evidence collected by the catalog. Undeclared information is labeled as unknown.

Static checked
01Exact source: github · dsh-pixel-ui@1.3.002Validated: Aug 24, 202603Verified Harness: 0.1.0-rc.7
Current-version compatibility
Verified on the catalog Harness version
Declared Harness range
Not declared
Declared platforms
Not declared
Profiles
web
Build approval
Unknown
Permissions
Not declared
External services
Not declared
Telemetry
Unknown
No known risk flags found

This is not a security endorsement. Review source, permissions, and configuration before installing.

View evidence and scope

Verification covers only the named source, version, and Harness environment. It does not guarantee future compatibility.

  • github:zhang66633/dsh-pixel-ui#44454483bbdbbba60822bb7a1d2846ff94ed021c
  • The manifest and static structure passed checks; a runtime load check has not completed.

README

View source

🪵 dsh-pixel-ui

DeepSeek Harness 像素皮肤(Agent Xi 风格):四个主题一键切换——像素·木屋 / 像素·羊皮纸 / 像素·暖阳 / 像素·终端绿,随时可切回现代默认 UI。

License: MIT dsh version themes contrast


Overview

dsh-pixel-ui 是一个皮肤插件,把 dsh Web GUI 重皮肤成像素 RPG 风:

  1. 四个主题:像素·木屋(深木 + 金)、像素·羊皮纸(浅色纸面 + 金棕)、像素·暖阳(暖橙木)、像素·终端绿(终端绿字),色板与 Agent Xi 主题系统同源;
  2. 像素质感:完全平面——整像素 2px 描边、平涂色块的一档明度差、2px 棋盘抖动、手绘 SVG 像素图形(对勾/单选点/下拉箭头/光标),全表零 box-shadow 与 text-shadow;标题/页签/列表用像素字体,正文与代码走 mono,长文不累眼;
  3. 桌面端友好:内容列宽随视口撑开(clamp(680px, 64vw - 140px, 1200px),窄屏仍是宿主原本的 680px),皮肤选择在 dsh-app:// 页面上也能恢复。

适合谁:想要像素风 / 星露谷风 / 复古终端外观的 dsh 用户;想给会话截图加一点氛围感的博主和开发者。

Themes

像素·木屋 · pixel-wood

深色 · 深木 #1A0F06 + 金 #F4D03F(默认主题)

像素·羊皮纸 · pixel-paper

浅色 · 纸面 #F0E8D8 + 深金棕 #A07000

像素·暖阳 · pixel-warm

深色 · 暖木 #1E0E04 + 橙 #FF8C42

像素·终端绿 · pixel-retro

深色 · 墨绿 #0A0E0A + 绿 #33FF33

截图取自 DSH Desktop(1920×1200 @125% 缩放)。截图由插件市场按本仓库根的 screenshots.json 读取——换图只推自己的仓库,不必提 PR。

Compatibility

项支持范围
dsh 生态0.1.0-rc.6 ~ 0.2.x(ThemeService register/setTheme + settings.general.item 槽位;0.2.0-rc.2 已按源码逐条核对客户端契约,host/node 半边于 2026-10-01 在运行中的桌面端实测;见 docs/dev/迭代记录.md)
DSH Desktop2.0.x(web 兼容模式/高级模式均适用)
模式三深色 + 一浅色(colorScheme 按主题声明)
浏览器现代 Chromium / Firefox(localStorage + CSS 变量 + SVG 光标)
字体fusion-pixel 12px zh_hans(MIT)+ Press Start 2P(OFL),随包分发
对比度四主题全部通过 WCAG AA(正文 ≥4.5:1、非文本 ≥3:1,npm run test:contrast 门禁)

Install / Uninstall

Install

npm(推荐):

dsh plugin add dsh-pixel-ui

GitHub Releases(无需 npm,同样开箱即用):

# 下载 Releases 里的 dsh-pixel-ui-<version>.tgz
dsh plugin add ./dsh-pixel-ui-1.5.0.tgz

GitHub 源码(构建产物已随仓库提交,无需构建):

dsh plugin add github:zhang66633/dsh-pixel-ui

本地开发(link 方式):

// <profile>/package.json
{
  "dependencies": { "dsh-pixel-ui": "link:<仓库路径>" },
  "dsh": { "profile": { "bundles": ["dsh-pixel-ui"] } }
}
cd <profile> && pnpm install

安装后重启 dsh / DSH Desktop,皮肤才会进入 Loader 组合。

DSH Desktop 用户

  1. 托盘右键 → Open DSH Terminal,在终端里执行 dsh plugin add dsh-pixel-ui(自动作用于当前 profile,如 desktop);
  2. 退出并重新打开 DSH Desktop。

主题记忆(桌面端随机端口不再失忆)

DSH Desktop 默认每次启动随机分配本地 Web 端口,而浏览器 localStorage 按 origin(含端口)隔离——旧版本因此会在重启后忘记皮肤选择。v1.4.0 起(v1.5.0 起桌面端改走宿主 index 注入),最后一次选择的主题会同时写入宿主侧文件($DSH_HOME/storages/dsh-pixel-ui/preference.json,经 /dsh-pixel-ui/preference 路由读写),与端口无关;localStorage 退化为同端口的快速镜像。无需任何配置,固定端口(dsh-desktop.port)现在只是可选项。

Upgrade

  • npm:重新运行 dsh plugin add(固定版本号);
  • 本地 link:git pull 后重新构建(npm run build),刷新浏览器。

Disable

只从 dsh.profile.bundles 移除 dsh-pixel-ui(依赖可以保留)——皮肤不再注入,UI 回到现代默认。

Uninstall

从 profile package.json 移除依赖与 bundles 条目,pnpm install。

Quick start

  1. 安装后重启 dsh / DSH Desktop;
  2. 首次加载自动激活默认主题「像素·木屋」;
  3. 设置 → 通用 → 像素主题,五个按钮一键切换四个皮肤和「现代默认」;
  4. 选「现代默认」(或外观行选 浅色 / 深色 / 跟随系统)即整体退出皮肤,选择会被记住,下次打开不复活。

最小可复现示例:安装 → 重启 → 木屋主题上身 → 切换到「像素·羊皮纸」→ 输入框文字清晰可读 → 点「现代默认」→ 页面立即回到现代 UI → 刷新页面仍是现代 UI。

Configuration

  • 无配置项:四个主题的 13+1 个 --dsw-alias-* token 定义在 src/client/index.js 的 THEMES,像素质感样式在 src/client/pixel.css;
  • 默认主题:pixel-wood(仅首次安装时自动激活,之后尊重你的选择);
  • 持久化:双层——宿主文件 $DSH_HOME/storages/dsh-pixel-ui/preference.json(权威,跨端口/跨浏览器)+ 浏览器 localStorage 的 dsh-pixel-ui:theme(同 origin 镜像);
  • 无环境变量、无敏感项。

Permissions & data

  • 宿主进程:只读本包内字体文件;在 $DSH_HOME/storages/dsh-pixel-ui/ 下读写一个主题偏好 JSON(仅注册 /dsh-pixel-ui/fonts/* 与 /dsh-pixel-ui/preference 两个路由,字体文件名白名单、主题 id 白名单,均无路径穿越);
  • 浏览器半边:注册主题 + 注入样式表 + 一个设置行;无网络请求、无遥测、不读凭据,只在 localStorage 存一个主题 id。

Troubleshooting

现象处理
皮肤没生效dsh --profile <name> --dump-config(DSH Desktop 终端里直接 dsh --dump-config)确认 dsh-pixel-ui 在树;设置 → 通用 → 像素主题 里选一个主题;重启(node 半边改路由后必须重启,client 半边刷新即可)
想回现代默认设置 → 通用 → 像素主题 → 点「现代默认」(或外观行选 浅色/深色/跟随系统)
主题没记住确认浏览器未禁用 localStorage;v1.4.0 起以宿主文件为权威(桌面端经 index 注入下发),检查 $DSH_HOME/storages/dsh-pixel-ui/preference.json 是否存在且内容合法
字体没加载浏览器控制台(F12 → Network)看 /dsh-pixel-ui/fonts/* 是否 200
偏好路由 404宿主还是旧版 node 半边:重启 DSH Desktop;未重启期间功能自动降级为 localStorage 记忆
回滚从 dsh.profile.bundles 移除插件条目并 pnpm install —— profile 其余部分不受影响

Development

npm install
npm run build    # 构建 lib/client.js(wire 格式,CSS 以文本内联)
npm test         # test:host + test:client + test:contrast 三件套
  • scripts/test-host.mjs:node 半边(字体白名单 / 偏好路由读写与校验 / dispose)
  • scripts/test-client.mjs:browser 半边(加载真实 lib/client.js,覆盖注册、恢复矩阵、交互、渲染、dispose)
  • scripts/audit-contrast.mjs:四主题 WCAG 对比度门禁(改 palette 必跑)

改动皮肤后重新构建并刷新浏览器即可(link 安装方式下无需重启 dsh;动了 lib/index.js 的路由则需重启)。开发文档在 docs/dev/(计划 / 迭代 / 踩坑)。欢迎 PR;行为变更请同步更新 README。

License & security

MIT © 2026 zhang66633 · 字体:fusion-pixel(MIT)、Press Start 2P(SIL OFL)。

安全问题请通过 GitHub security advisory 私下报告,不要发公开 issue。

Comments

0
Newest first