dsh-answer-style: Modifying Only the Typography of the Model's Response

Introduction

In DeepSeek Harness (DSH), model responses are displayed mixed together with user messages, tool lines, and UI controls. Most of the time the default styling is sufficient, but occasionally you need to adjust the font, font weight, or color of model responses independently without affecting other content. Existing solutions either require changing the global theme or manually editing CSS, which lacks flexibility.

The dsh-answer-style plugin scopes its changes to the “model response” section only, modifying font, font weight, bold color, and line height, while leaving user messages, tool lines, and UI controls untouched. It stores configuration on the Host, shares settings across Web and Desktop, and supports one-click reset to defaults.

What It Is

dsh-answer-style is a DSH Web plugin developed by maintainer Luoqiaocong. It works by injecting styles that target only the model response blocks marked with [data-chat-flow-kind="assistant-step"] in the chat, including body text, thinking processes, lists, and tables. Configuration is stored at ~/.dsh/answer-style.json on the Host, changes take effect immediately, and preferences are shared across all browsers and the desktop app.

Core Features

The plugin provides settings across four dimensions:

  • Font: Supports grouped presets (Chinese system fonts, Western system fonts, monospace, open-source fonts requiring manual installation), can also read locally installed fonts, or accept a custom font-family value.
  • Font Weight: Body text and h1–h6 headings are each independently configurable, defaulting to follow the theme.
  • Color: Supports preset color swatches, a system color picker, or direct entry of #1d4ed8 / rgb(…). The scope of color application is selectable via checkboxes: bold segments, headings, table headers.
  • Toggle: One-click enable or disable for the plugin. “Reset to Defaults” clears all preferences and removes the injected styles.

The scope is limited to model responses only. Code blocks retain their own monospace font and color and are not overridden.

Installation and Activation

Install using the following commands (from the npm registry):

# Web (recommended)
dsh plugin --profile web add dsh-answer-style

# DSH Desktop
dsh plugin --profile desktop add dsh-answer-style

You can also install directly from GitHub:

dsh plugin --profile web add github:Luoqiaocong/dsh-answer-style

After installation, refresh the page. If the “Answer Font” option does not appear in Settings, restart dsh web once.

Typical Usage

  1. Open DSH’s Settings → Answer Font.
  2. In the font dropdown, select a preset or a locally installed font, or manually enter a font-family value.
  3. Adjust the font weight for body text and h1–h6 headings separately; the default is “Follow Theme.”
  4. Choose a color for the parts you want to emphasize, and check the scope (bold segments, headings, table headers).
  5. To revert to the original look, click “Reset to Defaults.” To restore a single setting, use “Follow Theme” / “Default.”

Use Cases and Notes

  • Ideal for scenarios where you need to adjust model response typography independently without changing the entire DSH theme or user message styling.
  • The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation.
  • Fonts must be installed on the local machine; otherwise they will not take effect.
  • If DSH changes its chat anchor points or Markdown class names, the selectors in lib/client.js need to be updated accordingly.

Limitations

  • Only model responses are affected; all other UI elements remain unchanged.
  • Fonts must be installed on the local machine.
  • No runtime dependencies, no font bundling, no network calls, no data collection.

Conclusion

dsh-answer-style provides a lightweight, controllable way to customize the typography of model responses. Configuration is stored on the Host, and one-click reset is supported. For more details, visit the plugin directory page or the GitHub repository.

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

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

Xiaoye