You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: Add theme support (dark mode + VS Code theme import) in Desktop GUI #152
Yes. The Desktop GUI only ships the default light theme — there is no dark theme and no way to customize the color scheme. For a coding tool used for long sessions, the lack of theme support is a significant usability gap (many developers work in dark mode).
Describe the solution you'd like
Add basic theme support for the Desktop app:
Ship at least a built-in Dark theme alongside the default.
Provide a theme entry point (Settings → Appearance) with an option like "Import VS Code theme (.json)" that loads a Theme+ColorTheme file (VS Code's colorTheme format) and maps its workbench/editor colors to the Desktop UI via CSS variables.
Follow system OS light/dark preference by default, with a manual override.
Since the Desktop frontend is React + CSS (see desktop/src/**), reusing the mature VS Code theme ecosystem (settings.json / .json color themes) dramatically lowers implementation cost — no need to design a theme system from scratch.
Describe alternatives you've considered
Supporting only a fixed dark/light toggle (works, but users can't personalize).
Building a custom theme format (more work, smaller ecosystem).
Additional context
Platform: Windows 11.
The VS Code theme format is JSON and widely documented; tools like theme.json from the VS Code marketplace can be imported directly.
Thanks for raising this. Good news first: a dark theme is already there. It's been in the app since the Tauri rewrite and follows your OS setting automatically — if you switch Windows 11 to dark mode, DeepCode should follow. Worth a try, in case that covers what you needed.
What was genuinely missing is the ability to override the OS, and that's now in #161: Settings → Appearance → Theme, with Match system / Light / Dark.
VS Code theme import isn't done yet. Mapping an external theme format onto our tokens needs a bit more thought than the toggle did, so we've left it for a follow-up. Keeping this issue open for that part.
I’m preparing a follow-up for the remaining VS Code theme-import portion after the current Appearance/i18n change settles.
Proposed first-PR boundary:
import a standalone VS Code color-theme JSON/JSONC file locally;
map a documented subset of colors (editor, sidebar, panels, foregrounds, borders, focus/success/warning/error) onto DeepCode’s existing CSS tokens;
persist only the normalized mapped palette and source label in machine-local Appearance settings;
validate color values and fall back to the selected light/dark base for unmapped tokens;
deliberately ignore syntax tokenColors, extension package discovery, and cross-file include resolution in the first pass.
That keeps the import inert and testable without granting arbitrary file/package access. Would that bounded format be acceptable, or do you want include chains and extension theme packages supported from the start?
That boundary is acceptable — importing a single local color-theme file, mapping a documented subset of colors onto the existing tokens, persisting only the normalized palette, and leaving tokenColors, extension packages and include chains out of the first pass is exactly the right size.
Three things to keep in mind so it fits the current theme system:
Plug the imported palette in as one more ThemePreference (e.g. imported) so it shows up in the existing Appearance picker and the data-theme mechanism, rather than as a side channel.
Every token must resolve: whatever the theme file does not map has to be filled from the selected light/dark base, and a test should assert the merged palette is complete against tokens.css (the same guarantee the built-in themes carry).
The import should read the file and nothing else — no execution, no package discovery — and invalid color values should be rejected with a visible message, not silently dropped.
Activity
feat(desktop): appearance preferences for width, theme and typography
Zongwei9888 commentedon Aug 6, 2026
Thanks for raising this. Good news first: a dark theme is already there. It's been in the app since the Tauri rewrite and follows your OS setting automatically — if you switch Windows 11 to dark mode, DeepCode should follow. Worth a try, in case that covers what you needed.
What was genuinely missing is the ability to override the OS, and that's now in #161: Settings → Appearance → Theme, with Match system / Light / Dark.
VS Code theme import isn't done yet. Mapping an external theme format onto our tokens needs a bit more thought than the toggle did, so we've left it for a follow-up. Keeping this issue open for that part.
lihuiyang1024 commentedon Sep 5, 2026
I’m preparing a follow-up for the remaining VS Code theme-import portion after the current Appearance/i18n change settles.
Proposed first-PR boundary:
colors(editor, sidebar, panels, foregrounds, borders, focus/success/warning/error) onto DeepCode’s existing CSS tokens;tokenColors, extension package discovery, and cross-fileincluderesolution in the first pass.That keeps the import inert and testable without granting arbitrary file/package access. Would that bounded format be acceptable, or do you want
includechains and extension theme packages supported from the start?Zongwei9888 commentedon Sep 6, 2026
That boundary is acceptable — importing a single local color-theme file, mapping a documented subset of
colorsonto the existing tokens, persisting only the normalized palette, and leavingtokenColors, extension packages andincludechains out of the first pass is exactly the right size.Three things to keep in mind so it fits the current theme system:
ThemePreference(e.g.imported) so it shows up in the existing Appearance picker and thedata-thememechanism, rather than as a side channel.tokens.css(the same guarantee the built-in themes carry).With that, go ahead.
Merge (repaired) PR #207: import VS Code color themes in the desktop app