Introduction¶
The official font settings in DeepSeek Harness (DSH) only affect the chat content. UI elements such as the sidebar, settings page, and menus still use fixed pixel values, which makes the interface appear too small when the chat font size is increased. This plugin merges the original “Chat Font Size” with a new “Interface Font Size” into a single row, allowing users to adjust chat and interface fonts independently within the same control, while preserving the original “More Font Settings” entry.
Plugin Overview¶
- Name: ceasarxuu/dsh-super-ui
- Maintainer: ceasarXuu
- Type: Client-side plugin
- License: MIT
- Package:
@ceasarxuu/dsh-super-ui - Dependencies:
@deepseek-ai/schemastery(host mode); browser-side uses React only
Core Features¶
Merged Font Settings Row¶
In DSH’s Settings → General page, the original “Font size” row is replaced with a merged row containing two independent options:
- Chat font size: Font size for chat content (10–22 px). Behavior is consistent with the official setting; shortcuts and theme service remain unchanged.
- Interface font size: Font size for UI elements (80–150%, 5% step, default 100%). Controls the sidebar, settings page, menus, dialogs, and similar components.
Preserved Settings¶
The original “More font settings” collapsible panel is retained, including the font lists for body, code, and terminal along with their respective size settings. These are still written via the host theme service.
Independent Scale Ranges¶
| Control | Scope |
|---|---|
| Interface font size | Left-side session tree, search, footer; right-side sidebar, session titles, settings page, plugin page, menus, dialogs, toasts, tooltips |
| Chat font size | Chat messages, Markdown, code blocks, tool cards, traces |
| More font settings | Font lists and code/terminal sizes |
| Sidebar terminal cells | Retains the original terminal font size setting |
The chat column is neutralized with --dsh-super-ui-scale: 1, ensuring chat content is controlled solely by “Chat font size”.
Installation & Activation¶
- Open
Plugins → Add pluginin DSH, then select a local directory or list the plugin via the profile’scordis.patch.yml. - After installation, open
Settings → Generalto see the merged font row.
Configuration¶
Via UI Settings¶
In the font row under Settings → General, drag the “Interface font size” slider to adjust the UI scale in real time. The setting persists after restart.
Via Plugin Config¶
Navigate to Plugins → Super UI → Config to modify the fontScale field (80–150).
Via Profile Patch¶
Add the following to the profile’s cordis.patch.yml:
- id: super-ui
name: '@ceasarxuu/dsh-super-ui'
config:
fontScale: 120 # Interface text scaled up by 20%, chat size unchanged
After uninstalling or disabling the plugin, the UI reverts to native DSH behavior.
Technical Implementation¶
- Row replacement: The plugin registers the same cell ID (
font-size) with a lower priority, causing the merged row to override the official row. - Theme service: Chat/code/terminal fonts are written via
ctx.theme.getTheme()andctx.theme.setFontSize()/setFontFamily(). - CSSOM rewriting: Traverses same-origin stylesheets and rewrites literal
font-size: <length>declarations tofont-size: calc(<length> * var(--dsh-super-ui-scale, 1)), preserving selector specificity and original rule order. - Real-time response: The scale propagates via a custom property on
<html>. The chat column explicitly resets it to 1 to avoid double scaling. - Dynamic adaptation: A MutationObserver intercepts subsequently loaded stylesheets and applies the rewrite. The original declarations are restored upon unmount.
Known Limitations¶
- Only literal
px/remfont sizes are rewritten;em,%, and keyword values scale through inheritance. - Layout geometry (icons, padding, control heights, sidebar width) is not scaled.
- The
fontshorthand is only rewritten when the browser supportscalc()within the shorthand. - Chat column scaling depends on the current DSH framework structure (center grid cell). Future refactoring may alter behavior; the plugin will degrade gracefully without throwing errors.
- Row override relies on the official row retaining the cell ID. If a future version renames the ID, the merged row will disappear, but interface scaling remains available through other entry points.
Use Cases¶
- DSH users who need a unified way to adjust UI element font sizes.
- Developers and users with high requirements for interface readability and visual consistency.
It is recommended to review the source code and license before installation to ensure compliance with usage policies.
Summary¶
Without altering DSH’s official theme service, this plugin provides two independent font scales—“Chat” and “Interface”—through a single row control. It preserves the original shortcuts and “More Font Settings” while resolving the issue of UI elements appearing disproportionately small when chat content is scaled up.
- Catalog page: https://www.skillhub.cn/plugins/ceasarXuu/dsh-super-ui
- GitHub: https://github.com/ceasarXuu/dsh-super-ui