Skip to content

UX: Create default dark theme #5517

Closed
2 of 2 issues completed
Closed

Description

@knolleary

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.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added this to the 5.0 milestone on Mar 5, 2026
  2. added theissue type on Mar 5, 2026
  3. knolleary commented on Mar 6, 2026

    @knolleary
    MemberAuthor

    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

  4. self-assigned this
    on Apr 7, 2026
  5. n-lark commented on Apr 9, 2026

    @n-lark
    Contributor

    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.

    Image

    🎮 Synthwave

    A minimal pure-black theme with pops of crimson red that echo the deploy button.

    Image

    🌊 Abyss

    A cold deep-water theme anchored to navy and dark teal.

    Image

    🌌 Galaxy

    A deep space dark theme. Rich indigo-black backgrounds with cool violet undertones.

    Image

    🐚 Under the Sea

    A deep ocean theme. Dark teal-black canvas with coral as the primary accent and aqua bioluminescence as the secondary.

    Image
  6. n-lark commented on Apr 13, 2026

    @n-lark
    Contributor

    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.

    Image

    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.
  7. linked a pull request that will close this issue[5517] UX: Create default dark theme #5625on Apr 13, 2026
  8. n-lark commented on Apr 29, 2026

    @n-lark
    Contributor

    This is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions