question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS settings that make it difficult to create editor themes with different colors

See original GitHub issue

As 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
knollearycommented, May 18, 2019

@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/2158

One 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.

1reaction
dceejaycommented, Jan 21, 2019

good info - thanks. (slightly reformatted to add tickboxes, and yes please add other as you find them)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found