-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[themes] simpler way to create and edit themes #23853
Comments
Right now the story is that you can create a new theme using the yeoman generator as described here. b. and c. are on our list to be improved. Please add your ideas on what should be improved. |
@hbarr I'm working on something that should help out with this, stay tuned 😃 |
@hoovercj something like that is doing to be previewed in v1.11, you can check out the release notes now but it should be released today. https://github.com/Microsoft/vscode-docs/blob/vnext/release-notes/v1_11.md#preview-workbench-theming |
My personal answer to this which builds on top of the workbench theming work is this https://github.com/Tyriar/vscode-theme-generator It's an npm module that lets you generate a theme based on a small set of colors, allowing you to go deeper if you want and color specific things like "identifier", "keyword", etc., as opposed to targeting tmTheme scopes. Please send feedback my way, also remember it's early days and the API will break (both VS Code and the generator). |
Thanks for the update! I like the idea of having a theme generator as you mentioned, and I think it really lowers the bar to entry in creating and distributing themes for extension developers, but I don't believe it solves the issue of personalizing code for users. The workbench overrides in settings that are in the preview seem more in spirit with my PR and with this comment which do aim to solve the personalization user. I hope this is expanded upon for all theme overrides and made official as the API stabilises because it simply isn't good enough to force users to create a new theme to change one color or add italics for every theme they want to customize. Also, I think this issue should be closed in favor of #11556 which encompasses the idea of theme ease-of-use |
@Tyriar Thanks for the links. It looks like imminent releases of VSCode will address some of these usability and configurability issues. @hoovercj Thanks for the cross-links to similar topics on #11556 and #459. The issue of making minor changes to a theme without having to create a new one with external tools has been raised before. The overlay style sheet is an interesting idea. I would be happy to migrate to #11556 |
@hoovercj I think #11556 could be closed off when the new theme settings are finalized (likely 1.12), that allows users to change any one-off color as you want. This issue though would be better kept open until the generator is iterated on and some of it potentially upstreamed to VS Code and/or included in the yo generator. |
@Tyriar oh ok, it wasn't clear to me from the release notes just how wide the settings would be, or if they were intended to be a longer term solution or only a temporary patch to be removed in favor of using the values in themes. All this information together has me confident that the solution you're working towards alleviates the major pain points with themes, I'm excited to get my hands on it. Great work, as always :-) |
Closing this off, as of v1.12 you now have the option of:
|
Newbie alert: I have been programming for 40+ years and used many different code editors, but I am relatively new to VSCode.
I do not like any of the standard colour themes so I thought I would edit an existing theme or define a new one of my own. You can do this easily in many other code editors.
However, the documentation implies that all I can do is trawl through hundreds of themes for other editors (TextMate or Sublime Text) and convert them... Yes, I have tried searching more widely, on StackOverflow and elsewhere. It seems to be a common issue for VSCode users.
Surely, it should be possible to edit a theme in much the same way that settings are handled? The theme should be specified ultimately with one or more (per language) JSON files that the user can edit or overlay. Something somewhere in VSCode is doing the equivalent of parsing the text, tagging the components and looking up the right colour in a map. That map could be loaded as a JSON file.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: