-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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] Allow custom variables and references in workbench color customizations section #56855
Comments
Interesting idea! |
Was this implemented or not yet? I also need to define custom variables in workspaces not to repeat myself. |
I'm really astonished how this could be forgotten. VS Code is great so far, but this is a real big oversight, imho. |
Would even take it further and say that this should also be modifiable by user settings. So for example I use the ayu-light theme and I don't like the orange highlighting, in my settings I would then override theme variables and tokens that are defined by the author: {
"workbench.colorCustomizations": {
"teabyii.ayu": {
"@primary": "hsl(40, 40%, 20%)"
"input.background": "#2cbe4f", // previously `@primary`
}
},
} This would allow modifying themes differently, since VS Code now has a dark and night theme switch. |
#73069 was closed as dup of this although I believe the intention was different: to refer to colors already defined by themes, not to variables defined by the end user. For example, if I want the base foreground color for markdown emphasis, instead of the more colorful variants many themes apply, I would like to express "for this use what this theme defines as the default foreground color" without having to hardcode colors for each theme. |
I'm expanding the issue to 'variables' and 'references' |
This is a feature request to allow defining custom color variables in the workbench color customizations section. It would allow creating a small palette of colors and reusing it across the workbench color definitions, saving many repetitions and making it much easier to maintain.
This is just simple text substitution based on some naming convention like the .less
@variable
convention. For example, see the@PaletteXXX
variables in the sample below:The text was updated successfully, but these errors were encountered: