Skip to content

UX: create mechanism for themes to provide multiple variants #5534

Description

@knolleary

See #5517 for context

  • A theme plugin should be able to provide multiple theme variants - eg light dark.
  • The editor should provide a way to toggle between available variants - and persist the choice in user settings.

Activity

  1. added this to the 5.0 milestone on Mar 6, 2026
  2. self-assigned this
    on Mar 6, 2026
  3. added theissue type on Mar 6, 2026
  4. knolleary commented on Mar 9, 2026

    @knolleary
    MemberAuthor

    @bonanitech this will be of interest to you. A common pattern is for a theme to have both light and dark equivalents. The idea here is to make it easy for a plugin to bundle both and allow the user to switch between them within the editor.

    Any thoughts/ideas/suggestions on this are welcome.

  5. bonanitech commented on Mar 9, 2026

    @bonanitech
    Contributor

    Thanks for the heads up, Nick.

    How are you planning to implement this? Based on the user's operating system setting for light/dark mode (using prefers-color-scheme), through an option in the settings, or maybe a different approach?

    The first option seems easier to me as it only depends on CSS. I tried implementing this in my plugin some time ago, and it worked well; the challenge was figuring out how to switch the Monaco and Mermaid themes dynamically.

    Most websites use a mix of the first and second options, where users can select a specific theme or have it synced with the OS.

  6. knolleary commented on Mar 9, 2026

    @knolleary
    MemberAuthor

    @bonanitech at this stage, I don't have a concrete plan for it. But this ultimate goal is for the user to be able to pick between light/dark - if the theme plugin provides them.

    I have not yet looked at how a theme would provide both variants, and how we'd apply them without requiring a full reload of the editor - but doing it via a top-level CSS class seems the right sort of approach. I had not yet thought about monaco/mermaid at all; so any thoughts you have there would be welcome.

  7. bonanitech commented on Mar 9, 2026

    @bonanitech
    Contributor

    I have not yet looked at how a theme would provide both variants, and how we'd apply them without requiring a full reload of the editor - but doing it via a top-level CSS class seems the right sort of approach.

    Load Node-RED with the theme below and then switch your OS between light and dark modes. You'll see the NR editor changing its colors immediately, no need to reload.

    :root{--red-ui-primary-background:#f3f3f3;--red-ui-secondary-background:#fff;--red-ui-secondary-background-selected:#efefef;--red-ui-secondary-background-inactive:#f0f0f0;--red-ui-secondary-background-hover:#e6e6e6;--red-ui-secondary-background-disabled:#f9f9f9;--red-ui-tertiary-background:#f7f7f7;--red-ui-shadow:rgba(0, 0, 0, 0.2);--red-ui-primary-text-color:#555;--red-ui-secondary-text-color:#888;--red-ui-secondary-text-color-focus:#666;--red-ui-secondary-text-color-hover:#666;--red-ui-secondary-text-color-active:#666;--red-ui-secondary-text-color-selected:#666;--red-ui-secondary-text-color-inactive:#666;--red-ui-secondary-text-color-disabled:#bbb;--red-ui-secondary-text-color-disabled-active:#999;--red-ui-secondary-text-color-disabled-inactive:#aaa;--red-ui-tertiary-text-color:#aaa;--red-ui-header-text-color:#444;--red-ui-text-color-error:#ad1625;--red-ui-text-color-warning:#cab200;--red-ui-text-color-success:#3a3;--red-ui-text-color-code:#ad1625;--red-ui-text-color-link:#0088cc;--red-ui-primary-border-color:#bbbbbb;--red-ui-secondary-border-color:#dddddd;--red-ui-tertiary-border-color:#ccc;--red-ui-border-color-error:#df2935;--red-ui-border-color-warning:#ffcf70;--red-ui-border-color-success:#4b8400;--red-ui-form-background:#fff;--red-ui-form-placeholder-color:#aaa;--red-ui-form-text-color:#555;--red-ui-form-text-color-disabled:#bbb;--red-ui-form-input-focus-color:rgba(85, 150, 230, 0.8);--red-ui-form-input-border-color:#ccc;--red-ui-form-input-border-selected-color:#aaa;--red-ui-form-input-border-error-color:rgb(214, 97, 95);--red-ui-form-input-background:#fff;--red-ui-form-input-background-disabled:#f9f9f9;--red-ui-form-button-background:#efefef;--red-ui-form-tips-background:#ffe;--red-ui-text-editor-color:#4d4d4c;--red-ui-text-editor-background:#fff;--red-ui-text-editor-color-disabled:#666;--red-ui-text-editor-background-disabled:#f9f9f9;--red-ui-text-editor-gutter-background:#f6f6f6;--red-ui-text-editor-gutter-color:#777;--red-ui-text-editor-gutter-active-line-background:#dcdcdc;--red-ui-text-editor-active-line-background:#efefef;--red-ui-text-editor-selection-background:#d6d6d6;--red-ui-event-log-background:#444;--red-ui-event-log-color:#dd9;--red-ui-event-log-active-line-background:#333;--red-ui-event-log-selection-background:#999;--red-ui-list-item-color:#555;--red-ui-list-item-secondary-color:#888;--red-ui-list-item-background:#fff;--red-ui-list-item-background-disabled:#f0f0f0;--red-ui-list-item-background-hover:#e6e6e6;--red-ui-list-item-background-selected:#ffebc7;--red-ui-list-item-border-selected:#666;--red-ui-tab-text-color-active:#444;--red-ui-tab-text-color-inactive:#666;--red-ui-tab-text-color-disabled-active:#999;--red-ui-tab-text-color-disabled-inactive:#aaa;--red-ui-tab-badge-color:#aaa;--red-ui-tab-background:#fff;--red-ui-tab-background-active:#fff;--red-ui-tab-background-active-alpha:rgba(255, 255, 255, 0.001);--red-ui-tab-background-selected:#efefef;--red-ui-tab-background-selected-alpha:rgba(239, 239, 239, 0.001);--red-ui-tab-background-inactive:#f0f0f0;--red-ui-tab-background-inactive-alpha:rgba(240, 240, 240, 0.001);--red-ui-tab-background-hover:#e6e6e6;--red-ui-tab-background-hover-alpha:rgba(230, 230, 230, 0.001);--red-ui-palette-header-background:#f3f3f3;--red-ui-palette-header-color:#444;--red-ui-palette-content-background:#fff;--red-ui-workspace-button-background:#fff;--red-ui-workspace-button-background-hover:#e6e6e6;--red-ui-workspace-button-background-active:#efefef;--red-ui-workspace-button-color:#888;--red-ui-workspace-button-color-disabled:#bbb;--red-ui-workspace-button-color-focus:#666;--red-ui-workspace-button-color-hover:#666;--red-ui-workspace-button-color-active:#666;--red-ui-workspace-button-color-selected:#666;--red-ui-workspace-button-color-primary:#eee;--red-ui-workspace-button-background-primary:#bb0000;--red-ui-workspace-button-background-primary-hover:#920f0f;--red-ui-workspace-button-color-focus-outline:rgba(85, 150, 230, 0.8);--red-ui-shade-color:rgba(0, 0, 0, 0.05);--red-ui-popover-background:#333;--red-ui-popover-border:#333;--red-ui-popover-color:#eee;--red-ui-popover-button-border-color:#bbb;--red-ui-popover-button-border-color-hover:#666;--red-ui-diff-text-header-color:#888;--red-ui-diff-text-header-background:#ffd;--red-ui-diff-state-color:#555;--red-ui-diff-state-prefix-color:#888;--red-ui-diff-state-added:#009900;--red-ui-diff-state-deleted:#f80000;--red-ui-diff-state-changed:#f89406;--red-ui-diff-state-changed-background:#fff2e1;--red-ui-diff-state-unchanged:#bbb;--red-ui-diff-state-unchanged-background:#fff;--red-ui-diff-state-conflicted:purple;--red-ui-diff-state-moved:#3f81b3;--red-ui-diff-state-conflict:#9b45ce;--red-ui-diff-state-conflict-background:#ffdad4;--red-ui-diff-state-added-background:#e7ffe3;--red-ui-diff-state-added-border:#b8daad;--red-ui-diff-state-added-header-background:#c0f6c0;--red-ui-diff-state-added-header-border:#aaeeaa;--red-ui-diff-state-deleted-background:#ffe1e1;--red-ui-diff-state-deleted-border:#e4bcbc;--red-ui-diff-state-deleted-header-background:#ffcccc;--red-ui-diff-state-deleted-header-border:#eebbbb;--red-ui-diff-merge-header-color:#800080;--red-ui-diff-merge-header-background:#e5f9ff;--red-ui-diff-merge-header-border-color:#b2edff;--red-ui-menuBackground:#fff;--red-ui-menuDivider:#dddddd;--red-ui-menuColor:#555;--red-ui-menuActiveColor:#666;--red-ui-menuActiveBackground:#e6e6e6;--red-ui-menuDisabledColor:#bbb;--red-ui-menuHoverColor:#666;--red-ui-menuHoverBackground:#e6e6e6;--red-ui-menuCaret:#aaa;--red-ui-view-navigator-background:rgba(245, 245, 245, 0.8);--red-ui-view-lasso-stroke:#ff7f0e;--red-ui-view-lasso-fill:rgba(20, 125, 255, 0.1);--red-ui-view-background:#fff;--red-ui-view-grid-color:#eee;--red-ui-node-label-color:#333;--red-ui-node-port-label-color:#888;--red-ui-node-border:#999;--red-ui-node-border-unknown:#f33;--red-ui-node-border-placeholder:#aaa;--red-ui-node-background-placeholder:#eee;--red-ui-node-port-background:#d9d9d9;--red-ui-node-port-background-hover:#eee;--red-ui-node-icon-color:#fff;--red-ui-node-icon-background-color:rgba(0, 0, 0, 0.05);--red-ui-node-icon-background-color-fill:#000;--red-ui-node-icon-background-color-opacity:0.05;--red-ui-node-icon-border-color:#000;--red-ui-node-icon-border-color-opacity:0.1;--red-ui-node-config-background:#f3f3f3;--red-ui-node-config-icon-container-disabled:#aaa;--red-ui-node-link-port-background:#eee;--red-ui-node-status-error-border:rgb(145, 16, 2);--red-ui-node-status-error-background:rgb(255, 102, 0);--red-ui-node-status-changed-border:rgb(28, 102, 140);--red-ui-node-status-changed-background:rgb(0, 188, 255);--red-ui-node-status-colors-red:#c00;--red-ui-node-status-colors-green:#5a8;--red-ui-node-status-colors-yellow:#f9df31;--red-ui-node-status-colors-blue:#53a3f3;--red-ui-node-status-colors-grey:#d3d3d3;--red-ui-node-status-colors-gray:#d3d3d3;--red-ui-node-selected-color:#ff7f0e;--red-ui-port-selected-color:#ff7f0e;--red-ui-link-color:#999;--red-ui-link-link-color:#aaa;--red-ui-link-disabled-color:#ccc;--red-ui-link-link-active-color:#ff7f0e;--red-ui-link-unknown-color:#f00;--red-ui-clipboard-textarea-background:#f3e7e7;--red-ui-deploy-button-color:#eee;--red-ui-deploy-button-color-active:#ccc;--red-ui-deploy-button-color-disabled:#bbb;--red-ui-deploy-button-border-color:#bbbbbb;--red-ui-deploy-button-background:#bb0000;--red-ui-deploy-button-background-hover:#920f0f;--red-ui-deploy-button-background-active:#4c0a17;--red-ui-deploy-button-background-disabled:#ddd;--red-ui-deploy-button-background-disabled-hover:#d3d3d3;--red-ui-header-background:#f3f3f3;--red-ui-header-accent:#f3f3f3;--red-ui-header-button-background:#f3f3f3;--red-ui-header-button-background-hover:#ddd;--red-ui-header-button-background-active:#efefef;--red-ui-header-button-border:#bbbbbb;--red-ui-header-menu-color:#555;--red-ui-header-menu-color-disabled:#bbb;--red-ui-header-menu-heading-color:#555;--red-ui-header-menu-sublabel-color:#666;--red-ui-header-menu-background:#fff;--red-ui-header-menu-item-hover:#e6e6e6;--red-ui-header-menu-item-border-active:#e6e6e6;--red-ui-headerMenuItemDivider:#dddddd;--red-ui-headerMenuCaret:#aaa;--red-ui-vcCommitShaColor:#c38888;--red-ui-dnd-background:rgba(0, 0, 0, 0.3);--red-ui-dnd-color:#fff;--red-ui-notification-border-default:#325c80;--red-ui-notification-border-success:#4b8400;--red-ui-notification-border-warning:#ffcf70;--red-ui-notification-border-error:#df2935;--red-ui-debug-message-background:#fff;--red-ui-debug-message-background-hover:#efefef;--red-ui-debug-message-text-color:#333;--red-ui-debug-message-text-color-meta:#a66;--red-ui-debug-message-text-color-object-key:#792e90;--red-ui-debug-message-text-color-msg-type-other:#2033d6;--red-ui-debug-message-text-color-msg-type-string:#b72828;--red-ui-debug-message-text-color-msg-type-null:#666;--red-ui-debug-message-text-color-msg-type-meta:#666;--red-ui-debug-message-text-color-msg-type-number:#2033d6;--red-ui-debug-message-border:#eee;--red-ui-debug-message-border-hover:#999;--red-ui-debug-message-border-warning:#ffcf70;--red-ui-debug-message-border-error:#df2935;--red-ui-group-default-fill:none;--red-ui-group-default-fill-opacity:1;--red-ui-group-default-stroke:#999;--red-ui-group-default-stroke-opacity:1;--red-ui-group-default-label-color:#a4a4a4;--red-ui-tourGuide-border:#c56c6c;--red-ui-tourGuide-heading-color:#c56c6c;--red-ui-grip-color:#ccc;--red-ui-icons-flow-color:#808080;--red-ui-spinner-color:#999;--red-ui-tab-icon-color:#dedede;--red-ui-user-profile-colors-1:#822e81;--red-ui-user-profile-colors-2:#955e42;--red-ui-user-profile-colors-3:#9c914f;--red-ui-user-profile-colors-4:#748e54;--red-ui-user-profile-colors-5:#06bcc1;--red-ui-user-profile-text-color:#eee}@media (prefers-color-scheme:dark){:root{--red-ui-primary-background:#181818;--red-ui-secondary-background:#1f1f1f;--red-ui-secondary-background-selected:#37373d;--red-ui-secondary-background-inactive:#181818;--red-ui-secondary-background-hover:#2a2d2e;--red-ui-secondary-background-disabled:#181818;--red-ui-tertiary-background:#202020;--red-ui-shadow:rgba(0, 0, 0, 0.2);--red-ui-primary-text-color:#cccccc;--red-ui-secondary-text-color:#cccccc;--red-ui-secondary-text-color-focus:#cccccc;--red-ui-secondary-text-color-hover:#cccccc;--red-ui-secondary-text-color-active:#cccccc;--red-ui-secondary-text-color-selected:#cccccc;--red-ui-secondary-text-color-inactive:#9d9d9d;--red-ui-secondary-text-color-disabled:rgba(204, 204, 204, 0.5019607843);--red-ui-secondary-text-color-disabled-active:rgba(204, 204, 204, 0.5);--red-ui-secondary-text-color-disabled-inactive:rgba(204, 204, 204, 0.4);--red-ui-tertiary-text-color:rgba(204, 204, 204, 0.8);--red-ui-header-text-color:#cccccc;--red-ui-text-color-error:#f85149;--red-ui-text-color-warning:#cca700;--red-ui-text-color-success:#0dbc79;--red-ui-text-color-code:#d0d0d0;--red-ui-text-color-link:#4daafc;--red-ui-primary-border-color:#2b2b2b;--red-ui-secondary-border-color:rgb(36.98, 36.98, 36.98);--red-ui-tertiary-border-color:rgb(39.99, 39.99, 39.99);--red-ui-border-color-error:#df2935;--red-ui-border-color-warning:#ffcf70;--red-ui-border-color-success:#4b8400;--red-ui-form-background:#1f1f1f;--red-ui-form-placeholder-color:#989898;--red-ui-form-text-color:#cccccc;--red-ui-form-text-color-disabled:rgba(204, 204, 204, 0.5019607843);--red-ui-form-input-focus-color:#2488db;--red-ui-form-input-border-color:rgb(39.99, 39.99, 39.99);--red-ui-form-input-border-selected-color:#0078d4;--red-ui-form-input-border-error-color:#be1100;--red-ui-form-input-background:#1f1f1f;--red-ui-form-input-background-disabled:#181818;--red-ui-form-button-background:#37373d;--red-ui-form-tips-background:#181818;--red-ui-text-editor-color:#cccccc;--red-ui-text-editor-background:#1f1f1f;--red-ui-text-editor-color-disabled:#9d9d9d;--red-ui-text-editor-background-disabled:#181818;--red-ui-text-editor-gutter-background:#1f1f1f;--red-ui-text-editor-gutter-color:#6e7681;--red-ui-text-editor-gutter-active-line-background:#1f1f1f;--red-ui-text-editor-active-line-background:#2b2b2b;--red-ui-text-editor-selection-background:rgba(173, 214, 255, 0.1490196078);--red-ui-event-log-background:#1f1f1f;--red-ui-event-log-color:#cccccc;--red-ui-event-log-active-line-background:#181818;--red-ui-event-log-selection-background:#37373d;--red-ui-list-item-color:#cccccc;--red-ui-list-item-secondary-color:#cccccc;--red-ui-list-item-background:#1f1f1f;--red-ui-list-item-background-disabled:#181818;--red-ui-list-item-background-hover:#2a2d2e;--red-ui-list-item-background-selected:#37373d;--red-ui-list-item-border-selected:#cccccc;--red-ui-tab-text-color-active:#cccccc;--red-ui-tab-text-color-inactive:#9d9d9d;--red-ui-tab-text-color-disabled-active:rgba(204, 204, 204, 0.5);--red-ui-tab-text-color-disabled-inactive:rgba(204, 204, 204, 0.4);--red-ui-tab-badge-color:rgba(204, 204, 204, 0.8);--red-ui-tab-background:#1f1f1f;--red-ui-tab-background-active:#1f1f1f;--red-ui-tab-background-active-alpha:rgba(31, 31, 31, 0.001);--red-ui-tab-background-selected:#37373d;--red-ui-tab-background-selected-alpha:rgba(55, 55, 61, 0.001);--red-ui-tab-background-inactive:#181818;--red-ui-tab-background-inactive-alpha:rgba(24, 24, 24, 0.001);--red-ui-tab-background-hover:#2a2d2e;--red-ui-tab-background-hover-alpha:rgba(42, 45, 46, 0.001);--red-ui-palette-header-background:#181818;--red-ui-palette-header-color:#cccccc;--red-ui-palette-content-background:#1f1f1f;--red-ui-workspace-button-background:#1f1f1f;--red-ui-workspace-button-background-hover:#2a2d2e;--red-ui-workspace-button-background-active:#37373d;--red-ui-workspace-button-color:#cccccc;--red-ui-workspace-button-color-disabled:rgba(204, 204, 204, 0.5019607843);--red-ui-workspace-button-color-focus:#cccccc;--red-ui-workspace-button-color-hover:#cccccc;--red-ui-workspace-button-color-active:#cccccc;--red-ui-workspace-button-color-selected:#cccccc;--red-ui-workspace-button-color-primary:#eee;--red-ui-workspace-button-background-primary:#ad1625;--red-ui-workspace-button-background-primary-hover:#6e0a1e;--red-ui-workspace-button-color-focus-outline:#2488db;--red-ui-shade-color:rgba(160, 160, 160, 0.5);--red-ui-popover-background:#2a2d2e;--red-ui-popover-border:#2a2d2e;--red-ui-popover-color:#cccccc;--red-ui-popover-button-border-color:#2b2b2b;--red-ui-popover-button-border-color-hover:#cccccc;--red-ui-diff-text-header-color:#cccccc;--red-ui-diff-text-header-background:#1f1f1f;--red-ui-diff-state-color:#cccccc;--red-ui-diff-state-prefix-color:#cccccc;--red-ui-diff-state-added:#81b88b;--red-ui-diff-state-deleted:#c74e39;--red-ui-diff-state-changed:#e2c08d;--red-ui-diff-state-changed-background:#1f1f1f;--red-ui-diff-state-unchanged:#cccccc;--red-ui-diff-state-unchanged-background:#181818;--red-ui-diff-state-conflicted:purple;--red-ui-diff-state-moved:#3f81b3;--red-ui-diff-state-conflict:#e4676b;--red-ui-diff-state-conflict-background:rgba(255, 234, 0, 0.2784313725);--red-ui-diff-state-added-background:rgba(155, 185, 85, 0.2);--red-ui-diff-state-added-border:rgba(155, 185, 85, 0.1);--red-ui-diff-state-added-header-background:rgba(155, 185, 85, 0.2);--red-ui-diff-state-added-header-border:rgba(155, 185, 85, 0.1);--red-ui-diff-state-deleted-background:rgba(255, 0, 0, 0.2);--red-ui-diff-state-deleted-border:rgba(255, 0, 0, 0.1);--red-ui-diff-state-deleted-header-background:rgba(255, 0, 0, 0.2);--red-ui-diff-state-deleted-header-border:rgba(255, 0, 0, 0.1);--red-ui-diff-merge-header-color:#800080;--red-ui-diff-merge-header-background:#e5f9ff;--red-ui-diff-merge-header-border-color:#b2edff;--red-ui-menuBackground:#181818;--red-ui-menuDivider:rgb(36.98, 36.98, 36.98);--red-ui-menuColor:#cccccc;--red-ui-menuActiveColor:#cccccc;--red-ui-menuActiveBackground:#2a2d2e;--red-ui-menuDisabledColor:rgba(204, 204, 204, 0.5019607843);--red-ui-menuHoverColor:#cccccc;--red-ui-menuHoverBackground:#2a2d2e;--red-ui-menuCaret:rgba(204, 204, 204, 0.8);--red-ui-view-navigator-background:rgba(24, 24, 24, 0.8);--red-ui-view-lasso-stroke:#ff7f0e;--red-ui-view-lasso-fill:rgba(20, 125, 255, 0.1);--red-ui-view-background:#1f1f1f;--red-ui-view-grid-color:rgba(255, 255, 255, 0.0588235294);--red-ui-node-label-color:#333;--red-ui-node-port-label-color:#888;--red-ui-node-border:#999;--red-ui-node-border-unknown:#f33;--red-ui-node-border-placeholder:#aaa;--red-ui-node-background-placeholder:#eee;--red-ui-node-port-background:#d9d9d9;--red-ui-node-port-background-hover:#eee;--red-ui-node-icon-color:#fff;--red-ui-node-icon-background-color:rgba(0, 0, 0, 0.05);--red-ui-node-icon-background-color-fill:#000;--red-ui-node-icon-background-color-opacity:0.05;--red-ui-node-icon-border-color:#000;--red-ui-node-icon-border-color-opacity:0.1;--red-ui-node-config-background:#f3f3f3;--red-ui-node-config-icon-container-disabled:#aaa;--red-ui-node-link-port-background:#eee;--red-ui-node-status-error-border:rgb(145, 16, 2);--red-ui-node-status-error-background:rgb(255, 102, 0);--red-ui-node-status-changed-border:rgb(28, 102, 140);--red-ui-node-status-changed-background:rgb(0, 188, 255);--red-ui-node-status-colors-red:#c00;--red-ui-node-status-colors-green:#5a8;--red-ui-node-status-colors-yellow:#f9df31;--red-ui-node-status-colors-blue:#53a3f3;--red-ui-node-status-colors-grey:#d3d3d3;--red-ui-node-status-colors-gray:#d3d3d3;--red-ui-node-selected-color:#ff7f0e;--red-ui-port-selected-color:#ff7f0e;--red-ui-link-color:#999;--red-ui-link-link-color:#aaa;--red-ui-link-disabled-color:#ccc;--red-ui-link-link-active-color:#ff7f0e;--red-ui-link-unknown-color:#f00;--red-ui-clipboard-textarea-background:#181818;--red-ui-deploy-button-color:#eee;--red-ui-deploy-button-color-active:#ccc;--red-ui-deploy-button-color-disabled:#999;--red-ui-deploy-button-background:#8c101c;--red-ui-deploy-button-background-hover:#6e0a1e;--red-ui-deploy-button-background-active:#4c0a17;--red-ui-deploy-button-background-disabled:#444;--red-ui-deploy-button-background-disabled-hover:#555;--red-ui-header-background:#000;--red-ui-header-accent:#c02020;--red-ui-header-button-background-active:#121212;--red-ui-header-menu-color:#eee;--red-ui-header-menu-color-disabled:#666;--red-ui-header-menu-heading-color:#fff;--red-ui-header-menu-sublabel-color:#aeaeae;--red-ui-header-menu-background:#121212;--red-ui-header-menu-item-hover:#323232;--red-ui-header-menu-item-border-active:#777677;--red-ui-headerMenuItemDivider:#464646;--red-ui-headerMenuCaret:#c7c7c7;--red-ui-vcCommitShaColor:#c38888;--red-ui-dnd-background:rgba(0, 0, 0, 0.3);--red-ui-dnd-color:#fff;--red-ui-notification-border-default:#325c80;--red-ui-notification-border-success:#4b8400;--red-ui-notification-border-warning:#ffcf70;--red-ui-notification-border-error:#df2935;--red-ui-debug-message-background:#1f1f1f;--red-ui-debug-message-background-hover:#2a2d2e;--red-ui-debug-message-text-color:#cccccc;--red-ui-debug-message-text-color-meta:#c586c0;--red-ui-debug-message-text-color-object-key:#9cdcfe;--red-ui-debug-message-text-color-msg-type-other:#4e94ce;--red-ui-debug-message-text-color-msg-type-string:#ce9178;--red-ui-debug-message-text-color-msg-type-null:#cccccc;--red-ui-debug-message-text-color-msg-type-meta:#4a90e2;--red-ui-debug-message-text-color-msg-type-number:#b5cea8;--red-ui-debug-message-border:#181818;--red-ui-debug-message-border-hover:#2a2d2e;--red-ui-debug-message-border-warning:#ffcf70;--red-ui-debug-message-border-error:#df2935;--red-ui-group-default-fill:#181818;--red-ui-group-default-fill-opacity:0.5;--red-ui-group-default-stroke:#2b2b2b;--red-ui-group-default-stroke-opacity:1;--red-ui-group-default-label-color:#cccccc;--red-ui-tourGuide-border:#c56c6c;--red-ui-tourGuide-heading-color:#c56c6c;--red-ui-grip-color:rgba(204, 204, 204, 0.5);--red-ui-icons-flow-color:#cccccc;--red-ui-spinner-color:#cccccc;--red-ui-tab-icon-color:rgba(204, 204, 204, 0.2);--red-ui-user-profile-colors-1:#822e81;--red-ui-user-profile-colors-2:#955e42;--red-ui-user-profile-colors-3:#9c914f;--red-ui-user-profile-colors-4:#748e54;--red-ui-user-profile-colors-5:#06bcc1;accent-color:var(--red-ui-form-text-color);scrollbar-color:var(--red-ui-secondary-text-color-disabled) var(--red-ui-secondary-background);color-scheme:dark}.ui-button .ui-icon,.ui-button:active .ui-icon,.ui-button:focus .ui-icon,.ui-button:hover .ui-icon,.ui-state-active .ui-icon,.ui-state-focus .ui-icon,.ui-state-hover .ui-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAQAAABFnnJAAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRADMOF+tqQAAAAd0SU1FB+kMCwcMFStJN4gAABqGSURBVHja7Z1/bGXHVcc/N8l23U0iO0FK7aA22bCiAQF21i4kCmKfqUqSJmJrF4oQSBu72e62ippC+IO2gvwoqvgnVReqskmKswtFiFC8WRXapKjdt1KrpMLreEOJAojNBqmxhSh5bpCyIUkvf9xfM/fOr3vve37P787Xen733TO/7syZM3PnnDkTrODRZFzU7wJ49BeeARoOzwAyxgkZ73chthKeAUSMsw6sN4kFus0A/e8/44SVY64DE+hYIEm5/8/YRcgMYBaAYfpngq3/6OOHce7j2jC2vJNGrPYEUfNvxCxgSnmIZITIAN0QgBM1UkjiJv2wPOrEhYCADWCDgMCQcp1nHDgE6TpA8ohJP9AhhEL1iIjSCSrFT3qZLn9b3mHNsrumbHvGbYRMApgFoCtMfdA+fES5m5rQnEq9vmkagsSU68mZAUNQeiXQ3ItMfTCr1Kp9x56CuW+ay26WgVnKNjmzrVD+LSCwNJ++aoL0ryrsKWwYe6Y570z6qZ5BTHlomr+KBBhujLM+TM1rxyX9LsCAYWM4pnbu8CuBDYdngIbDM0DD4Rmg4fAM0HB4Bmg4PAM0HN4eIB+33+XfYpSxB3CzCLApY8aN9gDmHOzNU8cewK4Oj8o+VExSzh7ATQNmrkJ9A01orl3TtjW/LfX13Lc+9aGxBijaA0TQr4YnoUz6Nj3dFtvFHsBUOnPu9vhmhHHayfdQQLYHUF3L2HCSAuow9v7pYg9g6n9uZdOzT2i1NiiT07ZAxgCB9KeHnQV0Vewinjdisywz1rWxq5Ytosnf+tSHSF/YbXVw2PfKGWe9snhunDK4++rg/o+MdRS6jVMG+4WgxsMzQMPhGaDh8AzQcHgGaDg8AzQcngEaDm8WnkfYx7WA+nunS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VuGy4gorPawQ/wllfNXz2Z5fLH/Z+HnnVWXpIJ9o9ARdwMUfATjH9/nVHOUgX0mv69L/nVcKZxHew5e3jN7r5+s3vQYiBoBV2mxyY3z3CL/PCSlcXfp3WeHNdD/BX/BpoXm2gt7r5+s3vTK8QUjD4bWBDYdngIbDM0DD4Rmg4fAM0HB4Bmg4RGWQ++Hpg0n3qABZGziSXl1Qhq5L9xg4FIeAek13wZpCvZ4b1E7BQ0KeAWwNeIELRnrinkEHWwPqfHknCCvq+j00yDPACBgbcIQRIz3y0KFHiNlgwnTgC9gNKjxKojgEjFRIRY5tTqFe/7UxkEdJyJNA2/hfl+4xcBAZwCZaB53uUQF+Iajh8AzQcHgGaDg8AzQcngEaDs8ADcf2ZYBxvyDUDcgMUH+dLWSakOmel3ucdSZ6nksDIDPARPzpN2y9O2r+jX4XcxggM8B6/OkvbL3bN38X4SoBQsYLn3IIC39qRM2rZ8Ok+f0coCuQlUHrBKxrztYufsphxilU0vwTRvqGnwN0CzIDmCTARNo0yaecEC7uQSsy0biQvorF5Ob3g0AXMEgSwDd/H+AqAerDfoBDueYf14TzKAVXCbAVMEkXVfP7OUAX0G0J0Cur3UTo5789akJmgI34M3gINN8eNbF9dQEeXcH/A/Qfdjv/1OGyAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI1LTEyLTAxVDIzOjAwOjUyKzAwOjAwe3WKOgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNS0xMi0wMVQyMjo1OTo1NyswMDowMAjEQywAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjUtMTItMTFUMDc6MTI6MjErMDA6MDAFGmpYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==)}}
    light.dark.mov
  8. knolleary commented on Mar 9, 2026

    @knolleary
    MemberAuthor

    @bonanitech to save me picking through it all, can you give a quick explanation how that is working?

  9. dceejay commented on Mar 9, 2026

    @dceejay
    Member

    just ask claude to explain it ;-)

  10. bonanitech commented on Mar 9, 2026

    @bonanitech
    Contributor

    The code includes light (default) and dark variations.

    :root {
    /* Light variation */
    }
    @media (prefers-color-scheme: dark) {
      :root {
        /* Dark variation */
      }
    }

    By default, the light variation is used. If the OS is set to dark mode, @media (prefers-color-scheme: dark) tells the browser to use the dark variation.

  11. bonanitech commented on Mar 23, 2026

    @bonanitech
    Contributor

    This would probably be better.

    :root {
      color-scheme: light dark;
    }
    
    @media (prefers-color-scheme: light) {
      /* Light variation */
    }
    
    @media (prefers-color-scheme: dark) {
      /* Dark variation */
    }

    And a dropbox in the settings with the following options:

    • Auto
      • syncs with the operating system settings
    • Light
      • forces color-scheme: light
    • Dark
      • forces color-scheme: dark
  12. knolleary commented on Apr 28, 2026

    @knolleary
    MemberAuthor

    We need a way for a theme to declare that it provides light/dark schemes within the single theme. This then allows the editor to provide the choice of auto/light/dark. If a theme doesn't declare its schemes, then the editor doesn't show the choice and the user gets the theme as-is.

    With the current work to introduce a dark theme to the core, the editor toggles the nr-theme-dark class on the root html element based on the user selection. A theme that provides both light and dark should scope the dark theme to this class.

    The call to registerPlugin should then include a schemes property:

     RED.plugins.registerPlugin('test-theme-plugin', {
            type: 'node-red-theme',
            schemes: ['light','dark'],
            // scripts: [],
            css: [
                'theme.css',
            ]
            ...
    });
    

    The schemes property, if set, should list the colour schemes the plugin includes. If it lists both light and dark, then the editor will allow the user to select (or auto select). If it just lists one, then the editor will apply that one; meaning if it is dark then nr-theme-dark will be applied.

    If it doesn't include the schemes property, no option will be shown to the user and the css will just be applied as-is - how it works today.

  13. knolleary commented on Apr 28, 2026

    @knolleary
    MemberAuthor

    @bonanitech would appreciate your input on this as its the approach we'll be working on this week

  14. bonanitech commented on Apr 28, 2026

    @bonanitech
    Contributor

    What would be the content of theme.css (with variations) in this case? Something like this?

    :root {
      color-scheme: light dark;
    }
    
    @media (prefers-color-scheme: light) {
    	html {
    		/* Light variation */
    	}
    }
    
    @media (prefers-color-scheme: dark) {
    	html.nr-theme-dark {
    		/* Dark variation */
    	}
    }
  15. knolleary commented on Apr 28, 2026

    @knolleary
    MemberAuthor

    @bonanitech the current approach doesn't require the media selectors - the editor will apply the nr-theme-dark class based on the user's preference. That preference can be to use the browser's preferred scheme, or the user can override with light or dark explicitly.

    html {
       /* light variation  */
    }
    
    html.nr-theme-dark {
     /* dark variation */
    }
    
  16. bonanitech commented on Apr 28, 2026

    @bonanitech
    Contributor

    I wonder if the schemes property is really necessary. A simple check to see if the html.nr-theme-dark selector exists in the CSS would do (I think).

    Unless there are plans to support themes with more than two variations.

  17. knolleary commented on Apr 28, 2026

    @knolleary
    MemberAuthor

    I couldn't think of a clean way to determine if it provides both light and dark. We'd also need to be able to examine just the css from the theme to see if that selector existed as it would exist in the base theme that is already loaded - not so familiar with the available apis for working at this level.

  18. bonanitech commented on Apr 28, 2026

    @bonanitech
    Contributor

    I just had a crazy thought. What if the theme selector worked like GitHub's, where the user decides which theme is used for each color-scheme?

    Image
  19. knolleary commented on Apr 28, 2026

    @knolleary
    MemberAuthor

    Allowing the user to pick between themes (rather than just variants within the theme) is a much more complicated piece of work and not in scope for this iteration.

  20. n-lark commented on Apr 28, 2026

    @n-lark
    Contributor

    Theme Schemes Plugin API

    PR here.

    Lets a theme plugin declare which color schemes it provides so the editor can offer Auto/Light/Dark.

    Plugin Declaration

    RED.plugins.registerPlugin('my-theme', {
        type: 'node-red-theme',
        schemes: ['light', 'dark'],
        css: ['theme.css']
    })

    Valid entries: 'light', 'dark'. Anything else is ignored.

    Editor Behavior

    schemes Selector nr-theme-dark
    absent hidden not managed (theme renders as-is)
    ['light', 'dark'] shown toggled per user choice (auto/light/dark)
    ['dark'] hidden forced on
    ['light'] hidden forced off

    'auto' follows the OS prefers-color-scheme live.

    Limitations

    When the editor manages the scheme, Monaco swaps vs/vs-dark and Mermaid swaps default/dark — per-scheme overrides aren't part of this API. The plugin's monacoOptions / mermaid keys still load once but don't switch with the scheme. A richer per-scheme block (variants) is the natural follow-up if needed.

    Manual Test Plan

    All tests passed!

    Case 1 — no plugin active

    Comment out theme: in settings.js (or set theme: ""). Restart.

    • Settings → View → "Dark theme" dropdown is visible
    • Choose dark → built-in dark applies (nr-theme-dark on <html>)
    • Choose light → nr-theme-dark removed
    • Choose auto with OS in dark mode → dark applies; flips live when OS toggles
    • Regression: with view-dark-theme previously set to dark in localStorage, reload — dropdown still works

    Case 2 — plugin without schemes

    Edit index.js: remove the schemes line. Restart.

    • Dropdown is hidden
    • nr-theme-dark is never present on <html>, regardless of prior view-dark-theme localStorage value
    • Theme CSS renders as-is (header is blue — light rules apply)

    Case 3 — schemes: ['light', 'dark']

    Edit index.js: schemes: ['light', 'dark']. Restart.

    • Dropdown is visible
    • Choose dark → header turns purple, nr-theme-dark present
    • Choose light → header turns blue, nr-theme-dark absent
    • Choose auto with OS in dark → header purple
    • Toggle OS appearance while editor is open → header swaps live without reload
    • Pick dark, reload — still dark on first paint (small FOUC is expected)
    • Open a function node — Monaco body is vs-dark when dark, vs when light
    • Open a comment node with a mermaid block — diagram re-themes when switching

    Case 4 — schemes: ['dark']

    Edit index.js: schemes: ['dark']. Restart.

    • Dropdown is hidden
    • Header is purple (forced dark, nr-theme-dark on)
    • Stays dark even if view-dark-theme localStorage value is 'light'

    Case 5 — schemes: ['light']

    Edit index.js: schemes: ['light']. Restart.

    • Dropdown is hidden
    • Header is blue (forced light, nr-theme-dark absent)
    • Stays light even if view-dark-theme localStorage value is 'dark'
  21. knolleary commented on Apr 29, 2026

    @knolleary
    MemberAuthor

    Closed via #5659

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