Hello all,
I have seen a few posts regarding dynamically changing the dashboard "theme" (colors). I thought it was worth an updated post as I haven't found a post discussing this dated less than a year ago. And there have been several changes to both Node-RED and the dashboard since then.
Is there a way to change the colors of the dashboard dynamically? Such as switching between a light and dark theme? I'm not comfortable enough at this point to use the ui-builder
node, but I realize this could be a solution for me in the future. So I'm looking at alternative options.
I see this snippet of the official node-red-dashboard (node)
page:
I realize this is to make it easier to override the css with custom css. But is there a way to use these in a
ui-template
node to change the colors? Then force a refresh using the ui-control
node?
If this isn't possible, is there a way to change the theme from the themes setup in the "theme" menu of the editor? For example, you can set up your light, dark, and custom themes and then switch between them?
Or would switching to angular theme help with this at all? I'm assuming the reasons why this is difficult would be the same with any of the ideas I mentioned, but just thought I'd throw out some options. I would appreciate any ideas or guidance on this topic.