Skip to content

Instantly share code, notes, and snippets.

@mckellip
Last active September 24, 2020 18:40
Show Gist options
  • Select an option

  • Save mckellip/2cce86377e1aaf6615a35b52d7dcf91b to your computer and use it in GitHub Desktop.

Select an option

Save mckellip/2cce86377e1aaf6615a35b52d7dcf91b to your computer and use it in GitHub Desktop.

Unraid: Node-RED Midnight-red theme

Reference

node-red-contrib-themes/midnight-red

Credit to @Paraphraser

Assumptions

  1. Unraid is up and running with docker
  2. Node-Red docker installed and working

Changes to Make

ssh into unraid server

Open a shell into the nodered container and install the midnight-red theme package:

$ docker exec -it NodeRed-Official-Docker bash
# cd /data
# npm install @node-red-contrib-themes/midnight-red /data
# exit
$

Go to the Node-Red applications directory in Unraid:

$ cd /mnt/user/appdata/nodered/

Open settings.js in text editor:

$ vi settings.js 

Search for this (it is at the end of the file):

    // Customising the editor
    editorTheme: {
        projects: {
            // To enable the Projects feature, set this value to true
            enabled: false
        }
    }

Add the "page" section of json as shown below:

    // Customising the editor
    editorTheme: {
        projects: {
            // To enable the Projects feature, set this value to true
            enabled: false
        },
        page: {
            css: "/data/node_modules/@node-red-contrib-themes/midnight-red/theme.css"
        }

    }

Save your changes

Restart Node-Red in the Unraid UI and you should have midnight-red theme up and running

  • Note: Docker updates made should keep the theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment