DSH Web Settings: Change UI and Code Fonts

Preface

The DeepSeek Harness (DSH) Web interface uses a default font stack provided by the design system. When staring at the interface or writing code for long periods, many users prefer to switch to their preferred interface fonts and monospace fonts, and to adjust control font sizes and code font sizes independently. Modifying CSS or forking themes works, but requires manual merging when upgrading DSH. The dsh-font introduced below follows the DSH profile bundle approach: it adds a Font row to Settings → General, persists the interface font, code font, and the two size axes into settings, and injects CSS variables at the theme layer via the plugin.

What is this

dsh-font is a third-party DSH Web profile bundle (npm package name @citisen/dsh-font, version 0.3.1 in current materials, MIT license). It registers the settings namespace ui-font in Cordis (the profile entry id is also ui-font). The Node side handles persistence and styles before first paint; the browser side registers the settings row and applies variables such as --dsw-font-family and --ds-font-family-code.

Maintenance and source: The community directory entry is equasen/dsh-font (Category: Fun Customization); the GitHub repository to verify the source is equasen/dsh-font (public data shows 0 stars). Community directory sites like SkillHub are not officially affiliated with DeepSeek / High-Flyer. Please review the repository source and license yourself before installing.

Host requirements: dsh 0.1.5-rc.1 or a newer 0.1.5-rc.x is required; the plugin also adapts to the 0.1.7-alpha.1 and later settings model (from 0.2.3 it supports settings on both lines; from 0.2.4 it no longer depends on design system icon exports). It uses the settings.general.item slot, settingsScope / configForms, and ctx.theme.overrideTokens, and is usually available on the latest and next channels.

Core Features

After installation and restarting the Web, a Font row appears in Settings → General, containing two “font query” edit boxes, each with an independent number input box to the right.

Field Purpose Value
Interface Font Non-code UI text, maps to --dsw-font-family Font query (family name, may include weight words)
Interface Size Scales hardcoded interface text sizes 75 – 150 (percentage, integer)
Code Font Code blocks, inline code, etc., maps to --ds-font-family-code Font query
Code Size Code area font size 10 – 20 px

The size boxes are native number inputs: only complete values within the range are written; if you leave while typing, it reverts to the saved value.

The two font boxes are not plain text boxes but small font-family query language editors: the whole stack is edited as a single text blob with syntax highlighting, line breaks, and native font completion; font weights are written as words after the corresponding family (e.g., Geist Mono medium, monospace), and the plugin splits them into font-family and font-weight. Settings are parsed and written to the host document in real-time during editing (namespace ui-font, common path $DSH_HOME/settings.yaml) and persist after restart.

Two points require special note (based on 0.3.1):

  1. Session body font size is not in this plugin. The font size for conversation body, titles, and tables is controlled by DSH’s built-in Settings → Appearance → Font Size (ui-theme); 0.3.1 has removed the writing of --dsh-content-font-size from this row, and contentFontSize is no longer in the schema. If an older version saved this key, it must be deleted from settings.yaml or the profile’s cordis.patch.yml, otherwise the entire ui-font block may be rejected by validation.
  2. The plugin does not install fonts. Only font names resolvable by the browser or system will take effect; incorrect names will fall back to the generic font at the end of the stack, and web fonts are not downloaded automatically.

Installation and Activation

On a machine with the web profile initialized, use the command from the README (do not assemble the package name yourself):

dsh plugin --profile web add @citisen/dsh-font

If not using the npm registry, install the same package from GitHub:

dsh plugin --profile web add github:citisen/dsh-font

Restart the Web after installation:

dsh --profile web

dsh plugin forwards to pnpm within the profile directory (must be on PATH) and reconciles dsh.profile.bundles; since the package declares dsh.bundle, it generally appends the profile layer automatically without manual changes to cordis.patch.yml.

Uninstall example (from source material):

dsh plugin --profile web remove @citisen/dsh-font

If the plugin is in a pending state (e.g., waiting for settingsScope) causing dsh to fail to start, the README provides methods such as disabling the entry when unable to start, one-time patch stacking, or uninstalling; the corresponding behavior id in the profile is ui-font, and the package name is @citisen/dsh-font.

Typical Usage

  1. Complete the installation above and start dsh --profile web.
  2. Open Settings → General → Font.
  3. Edit the font stack in the Interface Font box, e.g.:
Geist Mono medium, "Zhuque Fangsong (technical preview)", monospace
  1. Use the number box on the right to set Interface Size between 75–150 (e.g., 110 for 110%).
  2. Configure the monospace stack in Code Font and set Code Size between 10–20 px.
  3. To restore factory settings, use the inline “Restore Default”; if the interface font weight is 400 by default, no extra CSS rule is written.

To change the conversation area body font size, go to Settings → Appearance → Font Size, not this plugin.

Applicable Scenarios and Considerations

Who it is for: Users who spend long periods doing agent development, reviewing conversations and code blocks in DSH Web, and want to unify interface/code fonts and fine-tune control or code font sizes without maintaining a forked theme.

Please note before use:

  • The plugin runs with the permissions of the current dsh process and its profile, reading and writing profile dependencies and settings under $DSH_HOME; as a third-party bundle, please read the GitHub repository source and MIT license before installing.
  • Users upgrading from 0.1.7 who used the old entry name font and have settings left in settings.yaml.imported need to follow the README’s import steps to migrate valid ui-font keys back and delete keys unknown to the schema.
  • Using dsh plugin add <local-path> across drive letters on Windows may be unreliable; the README provides alternatives using pnpm and directory junctions within the profile directory.

Conclusion

dsh-font consolidates the Web GUI’s interface font, code font, and the two size axes into a single row in the settings page, with a clear division of labor from DSH’s built-in conversation body font size settings. For further verification of fields and troubleshooting, please refer to the repository README (including the Chinese README.zh.md).

  • Community Directory Page: https://www.skillhub.cn/plugins/equasen/dsh-font
  • GitHub: https://github.com/equasen/dsh-font
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye