Skip to content

Commit fa52c74

Browse files
committed
Standardize theme plugin name
Let's use the same name throughout the whole document. This may also prevent some copy-and-paste accidents.
1 parent f9ec4f5 commit fa52c74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/api/ui/themes/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Monaco comes with a number of built-in themes available. The full list is [here]
135135
The name of the theme can be provided in the plugin settings:
136136
137137
```javascript
138-
RED.plugins.registerPlugin("midnight-red", {
138+
RED.plugins.registerPlugin("my-custom-theme", {
139139
type: "node-red-theme",
140140
css: "style.css",
141141
monacoOptions: {
@@ -154,7 +154,7 @@ Rather than specifying a built-in theme by name, the `monacoOptions.theme` setti
154154
be used to provide a custom Monaco theme object:
155155
156156
```javascript
157-
RED.plugins.registerPlugin("midnight-red", {
157+
RED.plugins.registerPlugin("my-custom-theme", {
158158
monacoOptions: {
159159
theme: {
160160
"base": "vs-dark",
@@ -198,14 +198,14 @@ Rather than hardcode the theme settings, you can store the Monaco theme JSON in
198198
separate file and use `require` to import it:
199199
200200
```javascript
201-
RED.plugins.registerPlugin("midnight-red", {
201+
RED.plugins.registerPlugin("my-custom-theme", {
202202
monacoOptions: {
203-
theme: require("midnight-red-monaco-theme.json"),
203+
theme: require("my-custom-theme-monaco-theme.json"),
204204
}
205205
})
206206
```
207207
208-
`midnight-red-monaco-theme.json` file example:
208+
`my-custom-theme-monaco-theme.json` file example:
209209
```json
210210
{
211211
"base": "vs-dark",

0 commit comments

Comments
 (0)