Preface¶
The DeepSeek Harness interface can feel monotonous after prolonged use, and developers often want a visual style that better suits their personal preferences. Existing solutions either require manual CSS modifications or lack a unified theme management mechanism. This article introduces an appearance plugin that provides theme switching, editing, and sharing capabilities, with a built-in theme called Sylvan · Pine Rain.
Overview¶
tangyixiao/dsh-sylvan-appearance is a DeepSeek Harness appearance plugin responsible for theme switching, editing, and sharing, while also providing a theme extension interface. The plugin ships with the Sylvan · Pine Rain theme, supporting light/dark color schemes, custom color palettes and typography, and code highlighting aligned with VS Code’s Modern Dark theme. The plugin is open-sourced under the MIT license.
Core Features¶
- Theme switching: Switch between System, Light, Dark, and Sylvan · Pine Rain themes under Settings → Appearance.
- Theme editing: Duplicate a theme to customize colors, fonts, and code highlighting. The conversation preview on the right updates in real time.
- Theme sharing: Use Export Current Theme to obtain a
.dsh-theme.jsonfile, which can then be imported, previewed, and saved in another profile. - Theme extension: Other plugins can contribute custom themes by injecting the
sylvanAppearanceThemesservice, supporting light/dark color schemes, six-digit hexadecimal colors, and comma-separated font lists. - Theme memory: When switching to Sylvan for the first time, the plugin remembers the previous theme so you can restore it on the same page.
Installation & Activation¶
DSH Desktop: Go to Plugins and add dsh-sylvan-appearance from npm.
DSH Web: Use the CLI to install.
dsh plugin --profile web add dsh-sylvan-appearance
Alternatively, download the .tgz from GitHub Releases and replace the package name in the install command with the absolute path. After installation, open Settings → Appearance to get started. Web and Desktop each use the theme settings of their respective DSH profile.
Typical Usage¶
- Switch to Sylvan · Pine Rain: Open Settings → Appearance and select Sylvan · Pine Rain.
- Export a theme: Click Export Current Theme on the Appearance page to obtain a
.dsh-theme.jsonfile. - Import a theme: On the Appearance page of another profile, import the file to create a new theme.
- Restore the previous theme: After switching to Sylvan, you can restore your previously used theme on the same page.
- Customize a theme: Duplicate a theme, modify the color palette and fonts, then click Save & Apply.
Theme Extension Example¶
Other plugins can declare dsh-sylvan-appearance in the dsh.client.inject field of their client manifest, then inject the sylvanAppearanceThemes service in their client entry point.
const inject = ['sylvanAppearanceThemes']
function apply(ctx) {
ctx.effect(() => ctx.sylvanAppearanceThemes.register('example:evergreen', {
name: '长青',
colorScheme: 'dark',
tokens: {
'--dsw-alias-bg-base': '#0f0f11',
'--dsw-alias-label-primary': '#e3e4e6',
'--dsw-alias-brand-primary': '#4fa66b',
'--shiki-token-keyword': '#c586c0',
},
}))
}
Run npm run build to regenerate the client entry point, and npm pack to produce the installable package.
Use Cases & Notes¶
This plugin is well suited for developers who need to uniformly manage, switch, and share interface themes. The plugin runs with the permissions of the current DSH process, so it is recommended to review the source code and license before installing. Version requirements: DeepSeek Harness Web >=0.2.2-rc.3, Desktop >=0.2.2-rc.5.
Conclusion¶
This plugin provides DSH with a scalable theming system, helping developers quickly build and share personalized interface styles. For more details, refer to the plugin directory and the GitHub repository.