DSH-font: Change Web interface font and font size in Settings

Introduction

The font and font size of the DeepSeek Harness (DSH) web interface are determined by the host’s default theme. When staring at the interface to write prompts or view code blocks for extended periods, users often desire a sans-serif font for the interface and a different font for monospace areas. Furthermore, they may want the ability to scale UI text or code font sizes proportionally without modifying CSS or forking themes. Within the DSH ecosystem, this capability can be implemented as a profile bundle plugin. Below is an introduction to the community plugin dsh-font (npm package name @citisen/dsh-font). It adds a Fonts row to Settings → General, placing the interface font stack, code font stack, and two font size axes under the management of the settings page.

What is this

dsh-font is a third-party DSH Web profile bundle: it holds persistent settings namespaces on the Node side and injects style lines before rendering, while the browser side renders the results and registers the settings row. The SkillHub community directory lists it at caparisen/dsh-font under the “Fun Customization” category. The source code and documentation are available in the GitHub repository (found in the README and the repository field of package.json). The version referenced in the current materials is 0.3.1, licensed under MIT.

The plugin requires dsh 0.1.5-rc.1 or a higher 0.1.5-rc.x version. The README specifies that it utilizes the settings.general.item slot, the settingsScope service, and ctx.theme.overrideTokens, which are available in both the latest and next release channels. Newer versions (mentioned in the materials starting from 0.2.3) are compatible with both the 0.1.5-rc.x and 0.1.7-alpha.1 settings models. In the profile, the plugin entry’s id is ui-font, and the package name is @citisen/dsh-font.

Core Features

The Fonts Row in Settings

Upon installation and activation, a Fonts row will appear in Settings → General, containing two font query fields, each accompanied by a font size input box:

Field Function Value
Interface font Writes to the CSS variable --dsw-font-family, affecting non-code UI text Font query string (can include font weight)
Interface text size Adjacent numeric box: scales hardcoded UI font sizes 75–150 (percentage)
Code font Writes to --ds-font-family-code, affecting code blocks, inline code, and other monospace areas Font query string
Code text size Adjacent numeric box: font size for code blocks and inline code 10–20 (px)

The font size boxes are native number inputs, with the unit (% or px) displayed inside the box. Only complete and in-range numbers are written to disk; incomplete numbers during input are not persisted, and the field reverts to the stored value upon losing focus.

Font Query Editor

The two font fields are not ordinary single-line text inputs but small font query language editors: the entire font stack is edited as a single text block with syntax highlighting, soft wrapping, and autocompletion based on the list of locally installed fonts. Font weight is written within the query string (the README continues to explain this syntax where the text was truncated).

Relationship with Conversation Body Font Size

The font size for conversation body text, titles, and tables is not adjusted via the Fonts row in this plugin. They are controlled by dsh’s built-in Settings → Appearance → Font size (ui-theme namespace). Since version 0.3.1, this plugin no longer provides controls for conversation body font size, no longer writes to --dsh-content-font-size, and the contentFontSize property has been removed from the configuration schema. If an older version left contentFontSize in $DSH_HOME/settings.yaml or the profile’s cordis.patch.yml, this key must be deleted; otherwise, dsh will reject the entire ui-font section due to the unknown key.

Handling Startup Failures (Optional Reading)

If dsh fails to start after enabling the plugin, the console may display Failed to load plugins, @citisen/dsh-font: pending (waiting for service: settingsScope), etc. The README treats “enabled but inactive plugins” as a startup failure and provides three methods that can be operated even when a normal start is impossible (disabling the patch, a one-time overlay launch, or the remove command). The removal command listed in the materials is:

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

This requires pnpm to be in your PATH. If pnpm is unavailable, you can manually edit dsh.profile.bundles and the corresponding dependencies in $DSH_HOME/profiles/web/package.json. To launch temporarily with a clean profile:

dsh --profile rescue --from-default-profile web

To disable the entry in the profile’s cordis.patch.yml:

- id: ui-font
  disabled: true

Installation and Activation

The retrieved materials do not provide a one-line installation command such as dsh plugin add, so this article will not construct installation steps based on guessed plugin names. Please open the SkillHub directory page to view installation instructions consistent with your current dsh version. Before installing, it is recommended to read the README (which includes both Chinese and English) and cordis.patch.yml on GitHub to confirm that the bundle’s behavior and license (MIT) are acceptable.

DSH plugins run with the permissions of the current dsh process and participate in profile composition and settings persistence. Please review the source code and dependencies (e.g., @deepseek-ai/schemastery) yourself before installing third-party bundles.

Typical Usage

  1. Open Settings → General in the Web interface and locate Fonts.
  2. Edit the font query in Interface font (you can select local fonts from the autocompletion list) and specify the font weight in the query string if necessary. Set the interface font size scale (75–150%) in the adjacent numeric box.
  3. Set the monospace font stack in Code font and set the code font size (10–20 px) in the adjacent box.
  4. After saving, the plugin will write the variables and overrides into the theme. You should see the font changes in the interface and code areas after refreshing or starting a new session.

If upgrading from dsh 0.1.7 and the old plugin entry was named font, settings may have been left in $DSH_HOME/settings.yaml.imported. The README explains that now that the entry ID is unified as ui-font, you can follow its steps to copy valid keys back to settings.yaml, start version 0.1.7 once to allow dsh to import them into the profile’s Cordis patch, and finally delete keys no longer declared in the schema (including contentFontSize) during import.

Use Cases and Notes

Suitable for users who wish to customize the interface font family, code font family, and the two font size axes (UI/code) for the DSH Web GUI without modifying theme source code. It is not suitable for those expecting to change the Markdown conversation body font size within this plugin—please use Appearance → Font size for that purpose.

Compatibility highlights (all from the README):

  • Starting from 0.2.4, it no longer borrows design system icons, avoiding React rendering errors and the disappearance of the entire Fonts row from the settings page caused by icon renaming across dsh lines.
  • 0.3.1 removed the conversation body font size control; please clean up any leftover contentFontSize configurations.
  • The community directory skillhub.cn has no official affiliation with DeepSeek or High-Flyer. DSH itself is a harness where “everything is a plugin,” and third-party bundles are released independently by their maintainers.

Conclusion

dsh-font consolidates the interface font, code font, and corresponding font sizes of the Web interface into a single row of controls on the settings page, while relying on dsh’s native capabilities to handle conversation body font sizes. For installation steps and changelogs, please refer to the directory page and the GitHub README:

羽毛球分组比赛记分
小程序二维码

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

Xiaoye