node-red / node-red/node-red

Theme: Allow theme plugin to define `monacoOptions` in themes with variations

Open
#5,771 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
23.7k
Forks
3.9k
Avg merge
12h 23m
Merged PRs (30d)
22

Description

From Slack

I hope it's not too late for this feature request.

#5659 introduced the mechanism for themes to provide multiple variants. Unfortunately, it has some 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.

Excerpt from https://github.com/node-red/node-red/issues/5534#issuecomment-4337956721

It would be great if theme plugins also had an option to define monacoOptions per color scheme.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing issue #5659 and the referenced discussion in issue #5534 to understand the existing theme-variant mechanism. Trace how theme plugins currently provide monacoOptions and how color schemes are applied. Done means theme plugins can define distinct Monaco options for each color scheme without breaking existing theme definitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.