Dsh CSDN Theme

Preface

The default Markdown rendering style of DeepSeek Harness (DSH) Web GUI differs from the CSDN blog page. When opening notes copied from CSDN in DSH, the styles of heading levels, quote blocks, tables, and inline code often fail to align, creating a fragmented reading experience.

The dsh-csdn-theme plugin transfers the color scheme and body text layout of CSDN blog posts to the DSH Web GUI, restoring details such as brand colors and paragraph spacing.

What is this

A color scheme and body text layout theme plugin for CSDN blog posts, designed for DeepSeek Harness Web GUI.

  • Maintainer: d0ublecl1ck
  • License: MIT
  • Core Implementation: Two-layer style override (token override layer + element-level style surface), running in the browser without requiring a build step.

Core Features

  1. Two-layer style override: Override --dsw-alias-*, Markdown typography, and code highlighting variables through token, then append <style> tags to complete details such as quote block borders and table grids.
  2. Dual theme support: Provides both light and dark color schemes. The dark side adjusts semantically and is not an official CSDN skin.
  3. Typography restoration:
    - Brand color: CSDN brand color #fc5531.
    - Inline code: Pink background with red text (#c7254e on #f9f2f4).
    - Quote blocks: 8px gray thick border on the left, background #eef0f4.
    - Tables: Solid grid, header background #eff3f5, zebra stripes.
  4. Syntax highlighting: Uses Atom One Light / Dark.
  5. Zero dependencies: No runtime dependencies, no build step required.

Installation and Activation

Install the plugin by executing the following command in the terminal:

dsh plugin --profile web add dsh-csdn-theme

After installation is complete, restart the dsh web process or refresh the page in DSH Desktop to activate it.

Typical Usage and Verification

After activation, check the following three points to confirm it is working:

  1. Inline code appears as pink background with red text (#c7254e on #f9f2f4).
  2. Quote blocks have an 8px gray thick border on the left.
  3. Tables appear as solid grids with a light-colored header background.

Execute the following command in the browser console; if an element is returned, it indicates the style layer has been injected:

document.querySelector('style[data-plugin="dsh-csdn-theme"]')

Use Cases and Notes

  • Use cases: For users who want to read or edit Markdown notes copied from CSDN in DSH while maintaining a visual experience consistent with the CSDN webpage.
  • Notes:
  • This plugin only performs visual overrides; it does not modify DOM structure, register settings, or make network requests.
  • The compact variant (such as small-font areas like tool output) is not overridden.
  • The u and kbd rules target real <u> / <kbd> HTML elements and are typically not triggered in conversation body text.
  • The dark side uses semantically adjusted dark values and is not an official CSDN skin.

Conclusion

dsh-csdn-theme restores the typography details of CSDN blog posts through a two-layer style override approach without altering host logic, making it suitable for developers who need to maintain reading consistency.

  • GitHub: https://github.com/d0ublecl1ck/dsh-csdn-theme
羽毛球分组比赛记分
小程序二维码

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

Xiaoye