-
-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Labels
Feature RequestFeature requests from customersFeature requests from customersThemesTheme relatedTheme relatedUXUX related issuesUX related issues
Description
Describe the problem
Currently, there is no eazy way for extensions to modify theme CSS variables to be changed via CSS. The extension authors have to go to every single place the color is used and replace it individually. That is out right impossible.
to address this, we should consider changing less variables as css variables that can be overridden by cascading theme css.
Describe the solution you'd like
- Covert core less variables as native css variables that can be overridden by extensions
- Expose them in the themes template
Alternatives considered
No response
Additional context
This can be easily done with:
- declare an
extensible-css.lessfile and import from brackets less files. - Now refactor all extension modifiable less variables as a root variable
:root {
--ui-color: red;
}- now in extensions, we can simply have a line on top
--ui-color: red;under no braces and it will override the UI variables. - Update the template theme extension with the values
- Refactor all svg buttons which sets background image with
image-maskandbackground-colorcss instead of hardcoded color in svg - Decide how to apply the color scheme in the welcome screen dialogue/extensions panel/ general iframe based dialogue
Metadata
Metadata
Assignees
Labels
Feature RequestFeature requests from customersFeature requests from customersThemesTheme relatedTheme relatedUXUX related issuesUX related issues