lsh2002/dsh-custom-fonts

Plugin插件 Native原生 ⭐ 2 MIT UI & Themes界面与主题

Customize the Chinese and English fonts, the code font, and the global font size of the DeepSeek Harness Web UI — right from a settings page, with a live preview.

catalog descriptioncatalog 简介 / catalog description:deepseek-harness的修改字体插件

Project Overview项目介绍

dsh-custom-fonts is a client-only customization plugin for the DeepSeek Harness Web UI that adds a dedicated "Fonts (字体)" page under the Settings menu once installed. The page exposes three independent font selectors: an English UI font for Latin characters (with built-in suggestions such as Segoe UI, Arial, Georgia, and Consolas), a Chinese UI font for Han characters (covering Microsoft YaHei, SimSun, SimHei, KaiTi, Source Han Sans, and PingFang), and a separate monospace code font that is scoped to pre, code, kbd, and samp elements (suggestions include Consolas, JetBrains Mono, Fira Code, Cascadia Code, and Sarasa Mono SC). A -4 to +8 pixel global font-size offset slider rounds out the controls, and every change renders live on a mixed Chinese/English sample plus a code-font sample inside the settings panel. Inputs accept comma-separated font lists as well as free-form names.

The plugin ships with no host half and no background process: it injects a single global stylesheet that defines two CSS custom properties for the English and Chinese families, then applies a broad font-family rule with an !important fallback chain so Latin glyphs hit the English face while Han glyphs silently fall back to the Chinese face. No language detection or DOM mutation is involved. The code-font declaration is written after the general rule, so it wins inside code regions only, and the font-size offset uses calc(1em ± Npx) relative to each element's own size, which keeps nesting levels from cascading exponentially; setting the slider to zero restores the default. A Reset button clears every control and removes the injected stylesheet, and there is also a Chinese-language README.zh-CN.md for users who prefer 中文说明.

Distribution is through the in-app Plugin Market under Settings → Plugin Market once the entry is published, or via the official CLI: dsh plugin --profile web add dsh-custom-fonts for the published version, and dsh plugin --profile web add github:lsh2002/dsh-custom-fonts for direct installation from the repository. After install the user only needs to refresh the page; no service restart is required, and uninstall from Settings → Plugins → Plugin configuration (or the matching CLI remove command) followed by a refresh reverts the UI automatically. The repository is MIT-licensed, has no runtime dependencies beyond the DSH Web profile itself, and currently lists only the dsh-plugin topic plus a bundle-manifest metadata file, with two stars at time of writing.

dsh-custom-fonts 是面向 DeepSeek Harness Web 端的纯客户端字体定制插件,安装后会在「设置」中新增一个「Fonts(字体)」页面。它支持分别配置英文 UI 字体(如 Segoe UI、Georgia)、中文 UI 字体(如微软雅黑、思源黑体、苹方)以及独立的等宽代码字体(如 JetBrains Mono、Cascadia Code),并提供 -4 到 +8 像素的全局字号偏移滑块。字体输入支持英文逗号分隔的字体列表和任意自由书写形式,所有改动在设置页内实时预览,刷新页面即生效,无需重启。

插件的核心实现是向页面注入一张全局样式表,把英文字体与中文字体通过 font-family 回退链拆分:拉丁字符优先命中英文字体,汉字因无字形自动回退到中文字体,无需任何语言检测或 DOM 操作。等宽代码规则随后覆盖 pre/code/kbd/samp 区域;字号偏移通过 calc(1em ± Npx) 相对于每个元素自身尺寸偏移,因此多层嵌套也不会产生指数级放大。设置页底部提供「Reset」按钮,可一键清空控件并移除所有注入样式。

安装方式有两种:一是等待条目上线后在「设置 → 插件市场」中获取,二是通过命令行执行 dsh plugin --profile web add dsh-custom-fonts,或直接从源码仓库 dsh plugin --profile web add github:lsh2002/dsh-custom-fonts 安装。卸载在「设置 → 插件 → 插件配置」中移除后刷新页面,样式会自动恢复。仓库使用 MIT 协议发布,无任何外部依赖,也不涉及服务端组件。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-custom-fonts

把 lsh2002/dsh-custom-fonts 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-custom-fonts

Customize the Chinese and English fonts, the code font, and the global font size of the DeepSeek Harness Web UI — right from a settings page, with a live preview.

中文说明

What it does

A pure client-side plugin (no host half, no restart needed). Once installed it adds a Fonts (字体) page under Settings:

  • UI font · English — used for Latin characters. (Segoe UI, Arial, Georgia, Consolas…)
  • UI font · Chinese — used for Han characters. (微软雅黑 / 宋体 / 黑体 / 楷体 / 思源黑体 / 苹方…)
  • Code font — a separate mono face for code blocks and inline code (pre/code/kbd/samp). (Consolas, JetBrains Mono, Fira Code, Cascadia Code, Sarasa Mono SC…)
  • Font-size offset — a -4..+8 px global slider; kernel text stays sharp, no layout blow-up (see below).
  • Live preview — mixed Chinese/English UI sample plus a code-font sample render as you type (comma-separated font lists and free-form names are both supported).
  • Reset — clears every control and removes all injected styles.

How it works

The plugin injects one global stylesheet:

:root { --dsh-custom-fonts-en: 'English'; --dsh-custom-fonts-zh: 'Chinese'; }
body, body * { font-family: 'English font', 'Chinese font' !important; }
pre, code, kbd, samp { font-family: 'Code font' !important; }
body, body * { font-size: calc(1em + 2px) !important; }  /* when offset ≠ 0 */
  • The font-family fallback chain is the standard way to split fonts by script: Latin characters match the English font first, and Han characters — which the English font has no glyphs for — fall back to the Chinese font. No language detection, no DOM surgery.
  • The code-font rule comes later and wins inside code regions only.
  • The size offset applies calc(1em ± Npx) relative to each element's own size, so every nesting level shifts by exactly N — no exponential cascade. Clearing it (0) restores the default.

Changes apply immediately and globally (message body, sidebar, inputs, everything).

Install

From the plugin market (Settings → Plugin Market) once the entry is published, or:

dsh plugin --profile web add dsh-custom-fonts

or directly from the repository:

dsh plugin --profile web add github:lsh2002/dsh-custom-fonts

Client-only plugin: after a page refresh it is live — no restart required.

Uninstall

Remove it from Settings → Plugins → Plugin configuration (or dsh plugin --profile web remove dsh-custom-fonts), refresh the page; your fonts are reverted automatically.

License

MIT

← 上一个 Prev dsh-archive-sessions 下一个 Next dsh-cost-tracker →