Skip to content

[Feature Request]: Add theme support (dark mode + VS Code theme import) in Desktop GUI #152

Closed

Description

@lidao2026-Coding

Is your feature request related to a problem?

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:

  1. Ship at least a built-in Dark theme alongside the default.
  2. 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.
  3. 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.
  • Version: DeepCode Desktop 0.1.0 (v2.0.0 runtime).

Activity

  1. Zongwei9888 commented on Aug 6, 2026

    @Zongwei9888
    Contributor

    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.

  2. lihuiyang1024 commented on Sep 5, 2026

    @lihuiyang1024
    Contributor

    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?

  3. Zongwei9888 commented on Sep 6, 2026

    @Zongwei9888
    Contributor

    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.

    With that, go ahead.

  4. added a commit that references this issue on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions