dsh-plugin-dracula-color-theme: Dracula Color Theme Plugin for DeepSeek Harness

Preface

The DeepSeek Harness (DSH) Web interface supports functionality extension through plugins. For developers accustomed to specific visual styles, built-in themes often fail to meet their needs. dsh-plugin-dracula-color-theme is a third-party theme plugin designed to port the classic Dracula color scheme fully into the DSH Web GUI.

Plugin Overview

  • Plugin Name: hoodyhuo/dsh-plugin-dracula-color-theme
  • Core Positioning: DSH Web GUI theme plugin, applying the official Dracula color scheme, covering both alias and specific design token layers along with shiki syntax highlighting, and providing system theme takeover functionality.
  • Maintainer: HoodyHuo
  • License: MIT

Core Features

  1. Comprehensive Color Coverage
    The background colors adopt the official VS Code layered standard (title bar, sidebar, main content, overlays), with separate mappings for specific-level elements such as the sidebar, session bubbles, input boxes, menus, etc.

  2. Code Highlighting
    For the css-variables theme based on shiki, 14 variables have been rewritten to align with the Dracula syntax palette (e.g., keyword pink, function green, constant purple, string yellow, etc.).

  3. Guard Mechanism
    Since third-party theme IDs are not persisted, the host may fall back to built-in preferences when loading settings, pushing updates, or reconnecting. This plugin prevents fallback through a three-layer mechanism:

    • Body inline tokens (highest cascade priority);
    • Monitoring theme/change events;
    • 1.5-second polling.
  4. Settings Toggle
    In Settings → General, there is a toggle labeled “Take Over System Theme Preferences (Dracula)”. When enabled, the plugin takes over the theme; when disabled, it restores the built-in light/dark toggle logic.

Installation and Activation

Installing this plugin requires administrator privileges or write access to the target profile.

  1. Run the installation command:
    dsh plugin --profile web add dsh-plugin-dracula-color-theme
  1. After installation completes, you must restart dsh web (or refresh the page if configured with patchReload: live) for the plugin to take effect.

  2. In the Web UI, navigate to “Settings → General”.

  3. Enable the “Take Over System Theme Preferences (Dracula)” toggle.

Maintenance and Uninstallation

Update
If using the Git clone method, the update command is as follows:

git -C <clone-directory> pull

You can also simply re-run the installation command to update to the latest version.

Uninstall

dsh plugin --profile web remove dsh-plugin-dracula-color-theme

Notes

  • Restart Required: The plugin will not load unless you restart the dsh web application after installation.
  • Persistence Behavior: Third-party theme IDs are not persisted; the host will revert to built-in preferences when loading settings. This is expected behavior, and the plugin handles this through its guard mechanism.
  • License: Open-sourced under the MIT License.

Summary

dsh-plugin-dracula-color-theme provides a complete Dracula color scheme, solving the issue of DSH’s default theme not matching personal aesthetic preferences. By covering design tokens and syntax highlighting, it offers developers an immersive coding environment. For more details, please refer to the project homepage or plugin directory.

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

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

Xiaoye