Hi @knolleary Continuing the discussion from Can you style the Node Red editor? :
I have looked at the link you provided Configuration : Node-RED and I am unfortunately no wiser.
I am editing two very similar but different Node Red installations and would like to change the background colour so as to be able to differentiate between them.
Could you please tell me where and what keys to use?
Many Thanks.
Paul.
Hi @FatPilot
I assume you mean the background of the main workspace where flows are created?
To do that you should:
create a file called style.css
(or whatever you want it to be called).
in that file, add the custom CSS to modify the workspace colour - replace red
with whatever colour you want. red
is probably a bad choice....red-ui-workspace-chart-background {
fill: red;
}
edit your settings file, find the editorTheme
section that should already be there and add a page
section under it:editorTheme: {
page: {
css: "/absolute/path/to/custom/css/file"
},
}
Make sure you change the /absolute/path/to/custom/css/file
to be the absolute path to the file you created just now with the custom style in.
restart Node-RED.
There are other options to customising individual instances without changing the colour. For example, you could change the title in the header with:
editorTheme: {
header: {
title: "Node-RED On Machine A"
}
}
2 Likes
Thank you @knolleary exactly what I required.
After I've implemented the solution I'll mark it as such.
Again thank you for your time.
Paul.
system
Closed
3 March 2021 17:15
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.