Skip to content

Commit c7c1063

Browse files
authoredApr 10, 2024
Merge branch 'node-red:master' into feature/sq_p4nr
2 parents 2299357 + 1dd367c commit c7c1063

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed
 

‎docs/api/ui/themes/index.md

+23-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ The appearance of the editor can be customised using themes. Themes are packaged
1212
and installed as Node-RED plugins, and then selected via the `editorTheme.theme`
1313
property in the settings file.
1414

15-
- [Creating theme CSS](#creating-theme-css)
16-
- [Packaging as a Theme Plugin](#packaging-as-a-theme-plugin)
17-
- [Theming the Monaco editor](#theming-the-monaco-editor)
15+
- [Creating theme CSS](#creating-theme-css)
16+
- [Packaging as a Theme Plugin](#packaging-as-a-theme-plugin)
17+
- [Theming the Monaco editor](#theming-the-monaco-editor)
18+
- [Theming the Mermaid diagrams](#theming-the-mermaid-diagrams)
1819

1920
### Creating theme CSS
2021

@@ -130,7 +131,7 @@ Monaco editor options including what theme it should use.
130131
131132
#### Setting the Monaco theme by name
132133
133-
Monaco comes with a number of built-in themes available. The full list is [here](https://github.com/node-red/node-red/tree/master/packages/node_modules/%40node-red/editor-client/src/vendor/monaco/dist/theme). Additional settings for Monaco options can be found [here](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html).
134+
Monaco comes with a number of built-in themes available. The full list is [here](https://github.com/node-red/node-red/tree/master/packages/node_modules/%40node-red/editor-client/src/vendor/monaco/dist/theme). Additional settings for Monaco options can be found [here](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html).
134135
135136
The name of the theme can be provided in the plugin settings:
136137
@@ -241,3 +242,21 @@ RED.plugins.registerPlugin("my-custom-theme", {
241242
```
242243
243244
The specific details of how to create a Monaco theme is beyond the scope of our documentation.
245+
246+
### Theming the Mermaid diagrams
247+
248+
A theme plugin can also set the theme for the Mermaid diagramming and charting tool.
249+
250+
Mermaid comes with a number of built-in themes available. The full list is [here](https://mermaid.js.org/config/theming.html#available-themes).
251+
252+
The name of the theme can be provided in the plugin settings:
253+
254+
```javascript
255+
RED.plugins.registerPlugin("my-custom-theme", {
256+
type: "node-red-theme",
257+
css: "style.css",
258+
mermaid: {
259+
theme: "dark" //Mermaid theme name
260+
}
261+
})
262+
```

‎docs/user-guide/runtime/configuration.md

+3
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ The theme of the editor can be changed by using the following settings object. A
237237
// The following only apply if the editor is set to "monaco"
238238
theme: "vs", // Select a color theme for the text editor component. Must match the file name of a theme in packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
239239
}
240+
},
241+
mermaid: {
242+
theme: "default" // Select a color theme for the Mermaid diagramming and charting tool. Must match the name of a theme in https://mermaid.js.org/config/theming.html#available-themes
240243
}
241244
},
242245

‎index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="content">
88
<h1>Node-RED</h1>
99
<h2>Low-code programming for event-driven applications</h2>
10-
<p>Latest version: <a href="https://www.npmjs.com/package/node-red"><span class="node-red-latest-version">v3.1.7</span> (npm)</a></p>
10+
<p>Latest version: <a href="https://www.npmjs.com/package/node-red"><span class="node-red-latest-version">v3.1.8</span> (npm)</a></p>
1111
<!-- <img src="images/node-red-title-flow.png" /> -->
1212
</div>
1313
</div>
@@ -120,6 +120,7 @@ <h4>In the cloud</h4>
120120
<div class="content">
121121
<h3>Who's using Node-RED?</h3>
122122
<ul id="user-list">
123+
<li><a href="https://www.echounify.com/"><img src="users/echo-unify-systems.png"/></a></li>
123124
<li><a href="https://www.overview.ai/"><img src="users/overviewai.jpg"/></a></li>
124125
<li><a href="https://www.ubos.tech/"><img src="users/ubos.jpg"/></a></li>
125126
<li><a href="https://www.bitpool.com/"><img src="users/bitpool.png"/></a></li>

‎users/echo-unify-systems.png

6.78 KB
Loading

0 commit comments

Comments
 (0)
Failed to load comments.