DeepSeek Harness plugin

dsh-global-font

全局字体插件:覆盖 DSH UI 字体与代码字体(CSS 变量注入,含插件渲染内容的字体)

Jump to install

Source facts

Repository
ErrorLst/dsh-global-font
Latest update
Aug 19, 2026
Category
UI Enhancements
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-21

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ErrorLst/dsh-global-font
Plugin: dsh-global-font
Author: ErrorLst

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

<h1 align="center">dsh-global-font</h1>

<p align="center">DSH 全局字体插件:设置页提供字体选择面板(预设 + 自定义 + 预览),选择立即全局生效(含代码块与插件界面)并持久保存。</p>

<p align="center"><a href="https://github.com/ErrorLst/dsh-global-font">github.com/ErrorLst/dsh-global-font</a></p>

功能

能力说明
设置页「字体」面板侧栏设置 → 字体:UI 字体 / 代码字体两个下拉选择器
预设字体系统默认、system-ui、霞鹜文楷、思源黑体、微软雅黑、衬线;代码字体含 JetBrains Mono / Cascadia Code / Fira Code / Consolas
自定义字体栈下拉选「自定义字体…」,输入完整 CSS font-family 栈
实时预览选择后立即应用到整个 UI(含 markdown、代码块、插件界面),面板内同步预览两种字体
还原默认一键恢复 DSH 原始字体
持久保存选择保存在本浏览器(localStorage),刷新 / 重启后保持

原理

DSH 主题把字体收敛在两个 CSS 变量(@deepseek-ai/dsh-client-ui-theme):

变量作用
--dsw-font-familyUI 字体(body、按钮、输入框、markdown、插件 UI)
--ds-font-family-code代码字体(行内代码、代码块、终端、JSON 树)

client half 注入一条 <style>,以 !important 覆盖这两个变量并强制 body/button/input/select/textarea 继承——宿主 UI 和使用主题变量/继承字体的插件 UI 都会统一换字体。

安装

dsh plugin --profile web add github:ErrorLst/dsh-global-font

本包声明了 dsh.bundle.patchdsh plugin add 成功后 reconcile 会自动把它登记进 profile 的 bundle 层(dsh.profile.bundles),无需手动编辑配置;重启 dsh web 即生效。

本地开发安装(同一目录即本仓库 checkout):dsh plugin --profile web add <本仓库路径>

使用

1. 重启 dsh web 后刷新 GUI 页面(新 client bundle 自动生效)。 2. 打开侧栏 设置 → 字体,选择或自定义字体;选择立即全局生效并保存。 3. 想恢复默认,点「还原默认」即可。

配置与持久化

  • 面板选择:保存在浏览器 localStorage(key dsh-global-font.config),刷新/重启保持;换浏览器需重新选择。
  • 服务器基线:包内 config.jsonuiFont/codeFont 两个 CSS font-family 栈)由 Node half 路由 /api/dsh-global-font/config 下发,作为未选择时的默认值;当前内容即 DSH 原始字体栈,可改为你偏好的默认。
  • config.json 后无需重启(路由每次请求读磁盘),刷新页面生效。

还原 / 卸载

1. 设置页「还原默认」或浏览器控制台执行 localStorage.removeItem('dsh-global-font.config')。 2. 完全卸载:dsh plugin --profile web remove @dsh-external/dsh-global-font(仅旧版本 dsh 才需手动删除 profile 的 insert 行)。

已知边界

  • 插件若在具体元素上硬编码 font-family(如内联样式),不会被强制覆盖;绝大多数插件 UI 走继承或主题变量,均在覆盖范围内。
  • 持久化是浏览器级的(localStorage),不跨浏览器同步;服务端只提供默认基线。

插件管理

已装插件用 plugin-registry 的薄控制台管理(浏览器面板):管理 profile 插件安装态(bundle 层栈 + insert 行 + 启停),无需手改配置。安装:dsh plugin --profile web add <plugin-registry>/packages/plugin/console