Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Replace solarized-dark-grey-nodes.css with a settings.js configuration #2

Open
ristomatti opened this issue Sep 30, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ristomatti
Copy link
Contributor

Node-RED supports setting node colors in settings.js. This removes the need for awkward CSS trickery to change the node colors in CSS. The CSS colors need to be moved to a JS/JSON file which can then be required directly from node_modules in settings.js.

Settings file syntax for reference:

{
  editorTheme: {
    palette: {
      theme: [
        // Override node colours - rules test against category/type by RegExp.
        { category: ".*", type: ".*", color: "#f0f" }
      ]
    }
  }
}
@ristomatti ristomatti added the enhancement New feature or request label Sep 30, 2020
@ristomatti ristomatti self-assigned this Sep 30, 2020
@ctrl50
Copy link

ctrl50 commented Feb 11, 2021

Hi. wondering if there is any documention on this for node-red I dont understand how to convert the css files to work with this. and Regx Im horrible at.. lol

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants