Skip to content

[theming] Separate workbench theme and syntax theme #25986

Open

Description

@hungys

After upgrading to VS Code 1.12, I noticed that the workbench theme of the built-in Monokai color theme had been changed. However, I preferred the default workbench theme a lot.

But in VS Code, there are only two types of themes: Color Theme and Icon Theme, and the workbench theme is tightly coupled with the syntax theme in the Color Theme category.

In contrast, Sublime Text separates theme into color_scheme and theme in the preferences. For example, I can choose Material style for the workbench and Monokai for the syntax highlighting. Does the team have plan to separate them and let users have more flexibility to customize their editor?

By the way, I found that some of theme extensions use .json as their theme file (including the built-in Monokai), but the official documentation only mentions that we can use yo code to generate theme extension with an existing .tmTheme file. Is there any documentation for clarifying their difference and also the schema of the .json file?

Activity

  1. changed the title [-]Separate workbench theme and syntax theme[/-] [+][Feature Request] Separate workbench theme and syntax theme[/+] on May 5, 2017
  2. hungys commented on May 5, 2017

    @hungys
    ContributorAuthor

    As #25985 mentioned, maybe the theme of Integrated Terminal should also be separated. Doesn't really like how zsh's agnoster theme was rendered in Monokai theme :(

    Integrated Terminal with Monokai theme

  3. added
    feature-request
    on May 5, 2017
  4. changed the title [-][Feature Request] Separate workbench theme and syntax theme[/-] [+]Separate workbench theme and syntax theme[/+] on May 5, 2017
  5. anaganisk commented on May 5, 2017

    @anaganisk

    do textmate themes support workbench theming yet? or are the restricted to JSON type theme files?

  6. aeschli commented on May 5, 2017

    @aeschli
    Contributor

    Workbench theming is restricted to the new JSON color theme format. But you can keep your text mate theme together with the new JSON file.
    Just use the code yeoman generator and create a theme extension. As input pass in your current tmTheme.

  7. aeschli commented on May 5, 2017

    @aeschli
    Contributor

    We currently have no plans to separate workbench themes and syntax themes in the UI.

  8. equinusocio commented on May 5, 2017

    @equinusocio

    Please if you do that, make it as flaggable setting. Jimmy Hung (@hungys) you can always customise your workbench color through settings

  9. anaganisk commented on May 5, 2017

    @anaganisk

    Martin Aeschlimann (@aeschli) I just figured out I can convert tmTheme file to JSON file, using vscode yo generator. So I guess its not much of a problem.

  10. hungys commented on May 5, 2017

    @hungys
    ContributorAuthor

    Martin Aeschlimann (@aeschli)

    1. Is the JSON color theme format documented anywhere? I see most of the guides telling us to use yo code with an existing tmTheme file. In addition, how to keep them together with single theme contribution point?
    2. Thanks. I hope this would be considered in future release.

    Equinusocio (@equinusocio)
    I know we can manually configure them, but considering for the user experience, I think there're benefits to separate them (like how Sublime Text did).

    SKA (@anaganisk)
    How did you do that? I've tried yo code but the generated theme extension project is always composed with tsTheme file, even creating an empty project.

  11. equinusocio commented on May 5, 2017

    @equinusocio

    Jimmy Hung (@hungys) If you want to convert a textmate theme to json you can also use any of the online converter tools. I converted my material theme textmate to yaml and then to json because you can't convert directly XML to JSON.

  12. 33 remaining items

  13. vscodebot commented on Jan 15, 2020

    @vscodebot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  14. KishorJena commented on Feb 22, 2022

    @KishorJena

    Is it under process or already rolled out. I am eagerly waiting for separate theming of Vscode Window UI and Editor Syntax

  15. jaycverg commented on Apr 8, 2022

    @jaycverg

    Also waiting for this. I came from Webstorm and still trying to fully switch to vscode. On my mac, I would like to use a UI theme that matches my dark UI theme but would like to use a different color scheme for my editor syntax.

  16. ygypt commented on May 3, 2022

    @ygypt

    the year is 2091, dinosaurs have risen on earth once again, driving humans to escape to mars. the poor and unfortunate were left behind to scavenge and fend. the humans of earth fought tirelessly to stay alive, bonding together and developing the tactics to take the reptiles out. dinosaurs have gone extinct a second time, and the Meek who fled to mars leaving the poor behind are soon to feel the wrath of a planet coated in crimson with raptor blood, inhabited by warriors, and vscode still doesnt let you pick a separate theme for the ui and the syntax

  17. paul-hph commented on May 4, 2022

    @paul-hph

    Come on Sam Birch (@smammy)... :D

  18. ygypt commented on May 4, 2022

    @ygypt

    @paul-siteway cut smammy some slack, the last time he had the freedom of choice his head blew a gasket

  19. rldribeiro commented on May 17, 2022

    @rldribeiro

    Plus one for this feature.

  20. sirius0xff commented on Jul 23, 2022

    @sirius0xff

    Currently one can first select the prefered color theme, the in run in command palette:
    Developer: Generate Color Theme From Current Settings

    in a generated file, copy the array after tokenColors

    "tokenColors": [...]
    

    paste into your settings.json

    {//settings.json
    ...
    "editor.tokenColorCustomizations": {
        "textMateRules": [ ... ] // <---------------------- here
    },
    ...
    }
    

    This would fix many of the syntax theme and allow the workbench theme to be changed.

    Unfortunately this does not cover semantic Token Color, which can also be edited:

    {//settings.json
      "editor.semanticTokenColorCustomizations": {
        "rules": {
          ...
        },
      },
    }
    

    Or disable semantic highlighting.....

  21. iDad5 commented on Sep 11, 2022

    @iDad5

    Some thoughts on this:

    I generally agree that it's a good thing if the UI of the workbench and the syntax highlighting is matched - good design isn't about looking nice, but about conveying information effortlessly. And there are a lot of themes out there but due to the lacking documentation on how to make a theme from scratch most of them are just based on a few others, which actually makes it very hard to find unique good ones.

    The option of customizing most aspects of a theme is a good thing, but it fails at a crucial point: semantic highlighting.

    If we fully separate workbench- and syntactic themes it might actually get really confusing in the end, as for legacy reasons existing and beloved color themes will have to be able to do both. (And also it seems to be rather complicated and/or the priority of/enthusiasm for this feature is not to great with the team as the time it takes to get it done is rather long...)

    I would propose a different approach therefore:

    Why not extend the theme syntax so that tokeColors as well as semanticTokenColors can be wrapped into language specific definitions together with a subset from colors (editor.background being the most obvious) and let those override the standards defined in the root.

    it would be a combination of the language specific settings

    my-color-theme.json:

     {
        "color": {"same as" : "now"},
        "colorTokens": {"same as" : "now"},
        "semanticColorTokens": {"nothing" : "new"},
        "language-specifics" : [
            {
                "[typescript]" : {
                    "color": {
                        //light on dark
                        "editor.background": "#080809",
                        "editor.foreground": "#b8cbd1"
                        // and so on for relevant editor settings only
                    },
                    "colorTokens": {
                        // same principle as today
                    },
                    "semanticColorTokens": {
                        // ditto 
                    }
                },
                "[markup]" : {
                    "color": {
                        // dark on light
                        "editor.background": "#b8cbd1",
                        "editor.foreground": "#080809"
                        // and so on for relevant editor settings only
                    },
                    "colorTokens": {
                        // same principle as today
                    },
                    "semanticColorTokens": {
                        // ditto 
                    }
                }
                // and on ...
            }
        ]
    }
    

    That in combination with ad better documentation for theming - it is actually pretty easy to extend/customize existing themes.
    Could solve most of the whishes of this issue, issue #20652 which is also very popular and even longer not solved.

    (If you add in #105247 allowing for color palettes - it would make things even easier.)

    If I can be of assistance with this I would give my very best.

  22. alekseykorzun commented on Jan 10, 2025

    @alekseykorzun

    The separation is crucial for millions of programmers with astigmatism, who greatly benefit from a light editor paired with a dark user interface. It’s worth noting that astigmatism will impact all of us as we level up.

    Given this, it’s surprising to see Microsoft, a company that often preaches inclusivity, to actively dismiss the issue since 2017.

  23. sea-snake commented on Mar 27, 2026

    @sea-snake

    For anyone stumbling on this in the future: if you're tired of manually overriding text colors, I had Claude build a small extension over lunch that does exactly this. It overrides just the editor syntax highlighting from one theme while keeping everything else from your active theme. Leaving this here so I can find it again too.

    Editor Syntax Override

    A VS Code extension that overrides editor syntax highlighting colors with those from any other installed theme — while keeping your current theme's UI (sidebar, tabs, statusbar, etc.) intact.

    Install

    1. Unzip editor-syntax-override.zip
    2. Move the local.editor-syntax-override-1.0.0 folder into your VS Code extensions directory:
      • macOS / Linux: ~/.vscode/extensions/
      • Windows: %USERPROFILE%\.vscode\extensions\
    3. Restart VS Code

    Usage

    1. Set your preferred theme normally — this controls the entire UI
    2. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
    3. Run Override Editor Syntax Colors
    4. Browse the theme list — syntax colors update live as you scroll
    5. Press Enter to confirm, or Escape to cancel (reverts to previous colors)

    To remove the overrides, run Clear Editor Syntax Overrides from the Command Palette.

    editor-syntax-override.zip

  24. pyiso80 commented on Apr 13, 2026

    @pyiso80

    sea-snake Thanks! That's exactly what I am looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestthemes

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions