CSS settings that make it difficult to create editor themes with different colors
See original GitHub issueAs requested, here’s a list of issues I found while trying to create an editor theme with different colors:
- Hardcoded styles
-
Link Nodes properties - Projects -> New - Credentials
- Project Settings - Settings - Credentials State (both icon and text)
- Node Status White background
- Dashboard - Tabs & Links I don’t know if this is the right place to talk about this one
- Navigator (div, svg and rect)
- Debug Tools Window doesn’t load custom CSS
-
- Wrong (?) classes
- Commit Changes Some parts of the diff table use debug message panel styles
- !important rules
diff.scss
- background (Line 456)
- background (Line 459)
palette-editor.scss
- background (Line 125)
- background (Line 217)
I’ll update this list if I find similar issues elsewhere.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
A DRY Approach to Color Themes in CSS
The more themes you add, the more complex it becomes to manage, but the point is that it is possible! We add another...
Read more >How to create different color themes with CSS and Javascript
Another way to do this is to have different stylesheets for your color themes and still follow through with the process in this...
Read more >How to create a theme switcher with HTML & CSS - YouTube
A few custom properties and the :has() selector make color theming super easy to do ! Add in a bit of JS and...
Read more >Switch Between Color Schemes with CSS Variables and ...
In this tutorial, we'll discuss how to implement different color schemes on a website using CSS variables and one line of vanilla JavaScript. ......
Read more >W3.CSS Color Themes - W3Schools
One reader sent us this suggestion: You might want to consider adding a gradient for each theme. I used the l2 and l1...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bonanitech we are working on a complete reworking of the editor CSS. This is a massive change to pretty much everything.
As a breaking change it will be part of the upcoming 1.0 release.
The work for that release is in the
dev
branch. The pr that introduced most of the changes is here: https://github.com/node-red/node-red/pull/2158One of the goals for this will be to also make it easier to create themes. The restructuring of the sass files puts all colours into one file. I plan to create a theme roller app that makes it easy to plug in a custom set of colours and generate a theme CSS. Once we have that, it would be great to use your midnight theme as a test case and have it available when we release 1.0.
I’ll be in touch once we have a few more pieces in place.
good info - thanks. (slightly reformatted to add tickboxes, and yes please add other as you find them)