You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently dark themes are popular. I've never understood it myself, but anyway.
The goal of this task is to provide a built-in dark theme that compliments the default light theme.
Currently the editor theme is set via the settings file. For Reasons, it isn't an easy task to allow the user to switch themes in the editor currently. This is because themes can include custom scripts etc that cannot be unapplied.
However, I think we have a different scenario here. What if a theme plugin could provide multiple variants of the theme - limited to well-scoped CSS. The editor can them provide an option in user settings to pick between the variants.
Need to clarify how the css will get switched out; is applying a class name to the parent object appropriate? Possibly not as some elements get added to the document root.
This delivers a built-in dark theme with a 3-way user selector (Auto / Light / Dark). Auto syncs with the operating system's color scheme preference. The runtime switching infrastructure — class toggling, OS sync, editor theming — lays the groundwork for the plugin variant API described in #5534.
What changed
dark-theme.scss — ~300 CSS custom property overrides scoped under html.nr-theme-dark. Class on, dark. Class off, light. No server-side changes needed.
3-way selector (Auto / Light / Dark) in user settings. Auto syncs with the OS via matchMedia. Stored in localStorage (not server-side) because theme preference is a display-level choice that should follow the device, not the server. Defaults to Light.
Monaco, Mermaid, and Ace follow the theme on page load, user switch, and OS change. Ace token colors are overridden via CSS specificity in the SCSS.
Custom theme plugins unaffected — when a plugin is installed, applyThemeClass bails, the dropdown is hidden, and Monaco/Mermaid fall back to the plugin's own config.
Activity
knolleary commentedon Mar 6, 2026
Have created a sub task to define how plugins can provide theme variants.
We also need to do the accessibility work in #5532 before generating the dark theme
n-lark commentedon Apr 9, 2026
Initial dark theme proposals
Here are some initial ideas for dark themes in node red - any feedback is appreciated!
All themes have been checked for WCAG AA compliance (4.5:1 for text, 3:1 for non-text UI elements including wires, borders, and ports).
🌑 Midnight
A clean, neutral dark theme with no strong hue. Simple dark greys with white text.
🎮 Synthwave
A minimal pure-black theme with pops of crimson red that echo the deploy button.
🌊 Abyss
A cold deep-water theme anchored to navy and dark teal.
🌌 Galaxy
A deep space dark theme. Rich indigo-black backgrounds with cool violet undertones.
🐚 Under the Sea
A deep ocean theme. Dark teal-black canvas with coral as the primary accent and aqua bioluminescence as the secondary.
n-lark commentedon Apr 13, 2026
Built-in Dark Theme
This delivers a built-in dark theme with a 3-way user selector (Auto / Light / Dark). Auto syncs with the operating system's color scheme preference. The runtime switching infrastructure — class toggling, OS sync, editor theming — lays the groundwork for the plugin variant API described in #5534.
What changed
dark-theme.scss— ~300 CSS custom property overrides scoped underhtml.nr-theme-dark. Class on, dark. Class off, light. No server-side changes needed.matchMedia. Stored inlocalStorage(not server-side) because theme preference is a display-level choice that should follow the device, not the server. Defaults to Light.applyThemeClassbails, the dropdown is hidden, and Monaco/Mermaid fall back to the plugin's own config.n-lark commentedon Apr 29, 2026
This is done.