@floegence/floe-webapp-core 0.38.0 → 0.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/editor/CodeEditor.js +61 -59
- package/dist/components/editor/index.d.ts +2 -1
- package/dist/components/editor/monacoTheme.d.ts +17 -0
- package/dist/components/editor/monacoTheme.js +23 -0
- package/dist/context/FloeConfigContext.d.ts +6 -0
- package/dist/context/ThemeContext.d.ts +6 -1
- package/dist/context/ThemeContext.js +81 -50
- package/dist/editor.js +13 -10
- package/dist/floe.css +1 -0
- package/dist/full.js +804 -792
- package/dist/index.js +148 -136
- package/dist/styles/themes/classicSemanticTokens.d.ts +2 -0
- package/dist/styles/themes/classicSemanticTokens.js +142 -0
- package/dist/styles/themes/index.d.ts +36 -0
- package/dist/styles/themes/index.js +36 -25
- package/dist/styles/themes/presets.d.ts +86 -0
- package/dist/styles/themes/presets.js +863 -0
- package/dist/styles.css +1 -1
- package/dist/themes/shell-presets.generated.css +1281 -0
- package/dist/themes.d.ts +2 -0
- package/dist/themes.js +11 -0
- package/package.json +7 -2
|
@@ -0,0 +1,863 @@
|
|
|
1
|
+
import { CLASSIC_LIGHT_SEMANTIC_TOKENS as s, CLASSIC_DARK_SEMANTIC_TOKENS as m } from "./classicSemanticTokens.js";
|
|
2
|
+
const C = [
|
|
3
|
+
"--background",
|
|
4
|
+
"--foreground",
|
|
5
|
+
"--primary",
|
|
6
|
+
"--primary-foreground",
|
|
7
|
+
"--secondary",
|
|
8
|
+
"--secondary-foreground",
|
|
9
|
+
"--muted",
|
|
10
|
+
"--muted-foreground",
|
|
11
|
+
"--accent",
|
|
12
|
+
"--accent-foreground",
|
|
13
|
+
"--border",
|
|
14
|
+
"--input",
|
|
15
|
+
"--ring",
|
|
16
|
+
"--chrome-border",
|
|
17
|
+
"--top-bar-border",
|
|
18
|
+
"--activity-bar-border",
|
|
19
|
+
"--bottom-bar-border",
|
|
20
|
+
"--terminal-panel-border",
|
|
21
|
+
"--card",
|
|
22
|
+
"--card-foreground",
|
|
23
|
+
"--popover",
|
|
24
|
+
"--popover-foreground",
|
|
25
|
+
"--success",
|
|
26
|
+
"--success-foreground",
|
|
27
|
+
"--warning",
|
|
28
|
+
"--warning-foreground",
|
|
29
|
+
"--error",
|
|
30
|
+
"--error-foreground",
|
|
31
|
+
"--info",
|
|
32
|
+
"--info-foreground",
|
|
33
|
+
"--highlight-block-info-accent",
|
|
34
|
+
"--highlight-block-warning-accent",
|
|
35
|
+
"--highlight-block-success-accent",
|
|
36
|
+
"--highlight-block-error-accent",
|
|
37
|
+
"--highlight-block-note-accent",
|
|
38
|
+
"--highlight-block-tip-accent",
|
|
39
|
+
"--sidebar",
|
|
40
|
+
"--sidebar-foreground",
|
|
41
|
+
"--sidebar-primary",
|
|
42
|
+
"--sidebar-primary-foreground",
|
|
43
|
+
"--sidebar-accent",
|
|
44
|
+
"--sidebar-accent-foreground",
|
|
45
|
+
"--sidebar-border",
|
|
46
|
+
"--sidebar-ring",
|
|
47
|
+
"--activity-bar",
|
|
48
|
+
"--activity-bar-foreground",
|
|
49
|
+
"--activity-bar-foreground-active",
|
|
50
|
+
"--activity-bar-badge",
|
|
51
|
+
"--activity-bar-badge-foreground",
|
|
52
|
+
"--terminal-background",
|
|
53
|
+
"--terminal-foreground",
|
|
54
|
+
"--chart-1",
|
|
55
|
+
"--chart-2",
|
|
56
|
+
"--chart-3",
|
|
57
|
+
"--chart-4",
|
|
58
|
+
"--chart-5",
|
|
59
|
+
"--selection-bg",
|
|
60
|
+
"--selection-fg",
|
|
61
|
+
"--selection-on-primary-bg",
|
|
62
|
+
"--selection-on-primary-fg",
|
|
63
|
+
"--selection-code-bg",
|
|
64
|
+
"--selection-code-fg"
|
|
65
|
+
], l = {
|
|
66
|
+
success: "#287A4B",
|
|
67
|
+
successForeground: "#FFFFFF",
|
|
68
|
+
warning: "#835800",
|
|
69
|
+
warningForeground: "#FFFFFF",
|
|
70
|
+
error: "#B42318",
|
|
71
|
+
errorForeground: "#FFFFFF",
|
|
72
|
+
info: "#245B9B",
|
|
73
|
+
infoForeground: "#FFFFFF",
|
|
74
|
+
note: "#6847A0",
|
|
75
|
+
tip: "#1E6F73"
|
|
76
|
+
}, b = {
|
|
77
|
+
success: "#72D39C",
|
|
78
|
+
successForeground: "#07160E",
|
|
79
|
+
warning: "#F0C36A",
|
|
80
|
+
warningForeground: "#1B1405",
|
|
81
|
+
error: "#FF8A82",
|
|
82
|
+
errorForeground: "#210706",
|
|
83
|
+
info: "#79B8FF",
|
|
84
|
+
infoForeground: "#061321",
|
|
85
|
+
note: "#C19BE8",
|
|
86
|
+
tip: "#71C8C0"
|
|
87
|
+
};
|
|
88
|
+
function o(r) {
|
|
89
|
+
const e = r.mode === "light" ? l : b, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
|
|
90
|
+
background: r.background,
|
|
91
|
+
foreground: r.foreground
|
|
92
|
+
}, [t, d, F, c, g] = r.chart, a = r.syntax ?? {
|
|
93
|
+
comment: r.mutedForeground,
|
|
94
|
+
keyword: t,
|
|
95
|
+
string: d,
|
|
96
|
+
number: c,
|
|
97
|
+
type: F,
|
|
98
|
+
function: g,
|
|
99
|
+
constant: c
|
|
100
|
+
}, u = {
|
|
101
|
+
"--background": r.background,
|
|
102
|
+
"--foreground": r.foreground,
|
|
103
|
+
"--primary": r.primary,
|
|
104
|
+
"--primary-foreground": r.primaryForeground,
|
|
105
|
+
"--secondary": r.muted,
|
|
106
|
+
"--secondary-foreground": r.foreground,
|
|
107
|
+
"--muted": r.muted,
|
|
108
|
+
"--muted-foreground": r.mutedForeground,
|
|
109
|
+
"--accent": r.muted,
|
|
110
|
+
"--accent-foreground": r.foreground,
|
|
111
|
+
"--border": r.border,
|
|
112
|
+
"--input": r.input,
|
|
113
|
+
"--ring": r.primary,
|
|
114
|
+
"--chrome-border": r.border,
|
|
115
|
+
"--top-bar-border": r.border,
|
|
116
|
+
"--activity-bar-border": r.border,
|
|
117
|
+
"--bottom-bar-border": r.border,
|
|
118
|
+
"--terminal-panel-border": r.border,
|
|
119
|
+
"--card": r.card,
|
|
120
|
+
"--card-foreground": r.foreground,
|
|
121
|
+
"--popover": r.card,
|
|
122
|
+
"--popover-foreground": r.foreground,
|
|
123
|
+
"--success": e.success,
|
|
124
|
+
"--success-foreground": e.successForeground,
|
|
125
|
+
"--warning": e.warning,
|
|
126
|
+
"--warning-foreground": e.warningForeground,
|
|
127
|
+
"--error": e.error,
|
|
128
|
+
"--error-foreground": e.errorForeground,
|
|
129
|
+
"--info": e.info,
|
|
130
|
+
"--info-foreground": e.infoForeground,
|
|
131
|
+
"--highlight-block-info-accent": e.info,
|
|
132
|
+
"--highlight-block-warning-accent": e.warning,
|
|
133
|
+
"--highlight-block-success-accent": e.success,
|
|
134
|
+
"--highlight-block-error-accent": e.error,
|
|
135
|
+
"--highlight-block-note-accent": e.note,
|
|
136
|
+
"--highlight-block-tip-accent": e.tip,
|
|
137
|
+
"--sidebar": r.sidebar,
|
|
138
|
+
"--sidebar-foreground": r.foreground,
|
|
139
|
+
"--sidebar-primary": r.primary,
|
|
140
|
+
"--sidebar-primary-foreground": r.primaryForeground,
|
|
141
|
+
"--sidebar-accent": r.muted,
|
|
142
|
+
"--sidebar-accent-foreground": r.foreground,
|
|
143
|
+
"--sidebar-border": r.border,
|
|
144
|
+
"--sidebar-ring": r.primary,
|
|
145
|
+
"--activity-bar": r.sidebar,
|
|
146
|
+
"--activity-bar-foreground": r.mutedForeground,
|
|
147
|
+
"--activity-bar-foreground-active": r.foreground,
|
|
148
|
+
"--activity-bar-badge": r.primary,
|
|
149
|
+
"--activity-bar-badge-foreground": r.primaryForeground,
|
|
150
|
+
"--terminal-background": r.terminalBackground,
|
|
151
|
+
"--terminal-foreground": r.terminalForeground,
|
|
152
|
+
"--chart-1": t,
|
|
153
|
+
"--chart-2": d,
|
|
154
|
+
"--chart-3": F,
|
|
155
|
+
"--chart-4": c,
|
|
156
|
+
"--chart-5": g,
|
|
157
|
+
"--selection-bg": r.selectionBackground,
|
|
158
|
+
"--selection-fg": r.selectionForeground,
|
|
159
|
+
"--selection-on-primary-bg": n.background,
|
|
160
|
+
"--selection-on-primary-fg": n.foreground,
|
|
161
|
+
"--selection-code-bg": "#58A6FF",
|
|
162
|
+
"--selection-code-fg": "#08111D"
|
|
163
|
+
};
|
|
164
|
+
return {
|
|
165
|
+
name: r.name,
|
|
166
|
+
displayName: r.displayName,
|
|
167
|
+
description: r.description,
|
|
168
|
+
mode: r.mode,
|
|
169
|
+
preview: {
|
|
170
|
+
background: r.background,
|
|
171
|
+
surface: r.card,
|
|
172
|
+
primary: r.primary,
|
|
173
|
+
sidebar: r.sidebar,
|
|
174
|
+
border: r.border,
|
|
175
|
+
colors: r.chart
|
|
176
|
+
},
|
|
177
|
+
semanticTokens: u,
|
|
178
|
+
monaco: {
|
|
179
|
+
[r.mode]: {
|
|
180
|
+
base: r.mode === "light" ? "vs" : "vs-dark",
|
|
181
|
+
inherit: !0,
|
|
182
|
+
rules: [
|
|
183
|
+
{ token: "comment", foreground: a.comment, fontStyle: "italic" },
|
|
184
|
+
{ token: "comment.doc", foreground: a.comment, fontStyle: "italic" },
|
|
185
|
+
{ token: "keyword", foreground: a.keyword },
|
|
186
|
+
{ token: "keyword.control", foreground: a.keyword },
|
|
187
|
+
{ token: "storage", foreground: a.keyword },
|
|
188
|
+
{ token: "string", foreground: a.string },
|
|
189
|
+
{ token: "string.escape", foreground: a.constant },
|
|
190
|
+
{ token: "number", foreground: a.number },
|
|
191
|
+
{ token: "constant.numeric", foreground: a.number },
|
|
192
|
+
{ token: "type", foreground: a.type },
|
|
193
|
+
{ token: "type.identifier", foreground: a.type },
|
|
194
|
+
{ token: "entity.name.type", foreground: a.type },
|
|
195
|
+
{ token: "function", foreground: a.function },
|
|
196
|
+
{ token: "entity.name.function", foreground: a.function },
|
|
197
|
+
{ token: "support.function", foreground: a.function },
|
|
198
|
+
{ token: "constant.language", foreground: a.constant },
|
|
199
|
+
{ token: "variable.predefined", foreground: a.constant }
|
|
200
|
+
],
|
|
201
|
+
colors: {
|
|
202
|
+
"editor.background": r.background,
|
|
203
|
+
"editor.foreground": r.foreground,
|
|
204
|
+
"editorCursor.foreground": r.primary,
|
|
205
|
+
"editor.selectionBackground": r.selectionBackground,
|
|
206
|
+
"editor.selectionForeground": r.selectionForeground,
|
|
207
|
+
"editor.inactiveSelectionBackground": `${r.selectionBackground}99`,
|
|
208
|
+
"editor.selectionHighlightBackground": `${r.selectionBackground}66`,
|
|
209
|
+
"editor.lineHighlightBackground": r.muted,
|
|
210
|
+
"editor.lineHighlightBorder": r.border,
|
|
211
|
+
"editorLineNumber.foreground": r.mutedForeground,
|
|
212
|
+
"editorLineNumber.activeForeground": r.foreground,
|
|
213
|
+
"editorGutter.background": r.background,
|
|
214
|
+
"editorWhitespace.foreground": r.border,
|
|
215
|
+
"editorIndentGuide.background1": r.border,
|
|
216
|
+
"editorIndentGuide.activeBackground1": r.input,
|
|
217
|
+
"editor.findMatchBackground": r.selectionBackground,
|
|
218
|
+
"editor.findMatchHighlightBackground": `${r.selectionBackground}66`,
|
|
219
|
+
"editorBracketMatch.background": r.muted,
|
|
220
|
+
"editorBracketMatch.border": r.primary,
|
|
221
|
+
"editorWidget.background": r.card,
|
|
222
|
+
"editorWidget.border": r.input,
|
|
223
|
+
"editorSuggestWidget.background": r.card,
|
|
224
|
+
"editorSuggestWidget.border": r.border,
|
|
225
|
+
"editorSuggestWidget.selectedBackground": r.muted,
|
|
226
|
+
"editorHoverWidget.background": r.card,
|
|
227
|
+
"editorHoverWidget.border": r.border,
|
|
228
|
+
"editorError.foreground": e.error,
|
|
229
|
+
"editorWarning.foreground": e.warning,
|
|
230
|
+
"editorInfo.foreground": e.info,
|
|
231
|
+
"scrollbarSlider.background": `${r.input}66`,
|
|
232
|
+
"scrollbarSlider.hoverBackground": `${r.input}99`,
|
|
233
|
+
"scrollbarSlider.activeBackground": `${r.input}CC`
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
tokens: r.mode === "light" ? { light: u } : { dark: u }
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const B = {
|
|
241
|
+
...o({
|
|
242
|
+
name: "classic-light",
|
|
243
|
+
displayName: "Classic Light",
|
|
244
|
+
description: "The original Floe warm-paper light theme.",
|
|
245
|
+
mode: "light",
|
|
246
|
+
background: "#F3F0EC",
|
|
247
|
+
foreground: "#202A37",
|
|
248
|
+
card: "#FFFDFA",
|
|
249
|
+
muted: "#F2F0ED",
|
|
250
|
+
mutedForeground: "#5A687C",
|
|
251
|
+
primary: "#202A37",
|
|
252
|
+
primaryForeground: "#FFFDFA",
|
|
253
|
+
border: "#D7D2CB",
|
|
254
|
+
input: "#CBC4B9",
|
|
255
|
+
sidebar: "#EDEBE8",
|
|
256
|
+
terminalBackground: "#202A37",
|
|
257
|
+
terminalForeground: "#EBEBEB",
|
|
258
|
+
selectionBackground: "#2671D9",
|
|
259
|
+
selectionForeground: "#FFFFFF",
|
|
260
|
+
chart: ["#202A37", "#5A687C", "#2671D9", "#287A4B", "#835800"],
|
|
261
|
+
syntax: {
|
|
262
|
+
comment: "#5A687C",
|
|
263
|
+
keyword: "#005FB8",
|
|
264
|
+
string: "#26736F",
|
|
265
|
+
number: "#8A5A00",
|
|
266
|
+
type: "#245B9B",
|
|
267
|
+
function: "#6847A0",
|
|
268
|
+
constant: "#9C225E"
|
|
269
|
+
}
|
|
270
|
+
}),
|
|
271
|
+
inheritsBaseTokens: !0,
|
|
272
|
+
semanticTokens: s,
|
|
273
|
+
tokens: void 0
|
|
274
|
+
}, p = {
|
|
275
|
+
...o({
|
|
276
|
+
name: "classic-dark",
|
|
277
|
+
displayName: "Classic Dark",
|
|
278
|
+
description: "The original Floe blue-black dark theme.",
|
|
279
|
+
mode: "dark",
|
|
280
|
+
background: "#0E121B",
|
|
281
|
+
foreground: "#F9FAFB",
|
|
282
|
+
card: "#121721",
|
|
283
|
+
muted: "#1B212D",
|
|
284
|
+
mutedForeground: "#8596AD",
|
|
285
|
+
primary: "#F9FAFB",
|
|
286
|
+
primaryForeground: "#121621",
|
|
287
|
+
border: "#252B37",
|
|
288
|
+
input: "#52627A",
|
|
289
|
+
sidebar: "#121721",
|
|
290
|
+
terminalBackground: "#0C1018",
|
|
291
|
+
terminalForeground: "#E8EBEE",
|
|
292
|
+
selectionBackground: "#2671D9",
|
|
293
|
+
selectionForeground: "#FFFFFF",
|
|
294
|
+
chart: ["#F9FAFB", "#8596AD", "#79B8FF", "#72D39C", "#F0C36A"],
|
|
295
|
+
syntax: {
|
|
296
|
+
comment: "#8596AD",
|
|
297
|
+
keyword: "#C19BE8",
|
|
298
|
+
string: "#91C980",
|
|
299
|
+
number: "#F0C36A",
|
|
300
|
+
type: "#79B8FF",
|
|
301
|
+
function: "#72D39C",
|
|
302
|
+
constant: "#FF8A82"
|
|
303
|
+
}
|
|
304
|
+
}),
|
|
305
|
+
inheritsBaseTokens: !0,
|
|
306
|
+
semanticTokens: m,
|
|
307
|
+
tokens: void 0
|
|
308
|
+
}, k = [
|
|
309
|
+
B,
|
|
310
|
+
o({
|
|
311
|
+
name: "paper",
|
|
312
|
+
displayName: "Paper",
|
|
313
|
+
description: "Warm paper and deep ink for focused reading.",
|
|
314
|
+
mode: "light",
|
|
315
|
+
background: "#F5F1E8",
|
|
316
|
+
foreground: "#243447",
|
|
317
|
+
card: "#FFFDF8",
|
|
318
|
+
muted: "#EAE4D8",
|
|
319
|
+
mutedForeground: "#5B6470",
|
|
320
|
+
primary: "#243447",
|
|
321
|
+
primaryForeground: "#FFFDF8",
|
|
322
|
+
border: "#CEC6B8",
|
|
323
|
+
input: "#7D7468",
|
|
324
|
+
sidebar: "#EDE7DC",
|
|
325
|
+
terminalBackground: "#18202B",
|
|
326
|
+
terminalForeground: "#EDF2F7",
|
|
327
|
+
selectionBackground: "#245B8A",
|
|
328
|
+
selectionForeground: "#FFFFFF",
|
|
329
|
+
chart: ["#245B8A", "#26736F", "#567832", "#8A5A00", "#7A4F78"]
|
|
330
|
+
}),
|
|
331
|
+
o({
|
|
332
|
+
name: "mist",
|
|
333
|
+
displayName: "Mist",
|
|
334
|
+
description: "Cool, quiet layers for monitoring and dense data.",
|
|
335
|
+
mode: "light",
|
|
336
|
+
background: "#EEF3F7",
|
|
337
|
+
foreground: "#1F3442",
|
|
338
|
+
card: "#FFFFFF",
|
|
339
|
+
muted: "#E2EAF0",
|
|
340
|
+
mutedForeground: "#536574",
|
|
341
|
+
primary: "#234E63",
|
|
342
|
+
primaryForeground: "#FFFFFF",
|
|
343
|
+
border: "#C5D0D8",
|
|
344
|
+
input: "#768895",
|
|
345
|
+
sidebar: "#E7EDF2",
|
|
346
|
+
terminalBackground: "#111D26",
|
|
347
|
+
terminalForeground: "#ECF4F8",
|
|
348
|
+
selectionBackground: "#245B9B",
|
|
349
|
+
selectionForeground: "#FFFFFF",
|
|
350
|
+
chart: ["#245B9B", "#1E6F73", "#3E6B46", "#8A5A00", "#6847A0"]
|
|
351
|
+
}),
|
|
352
|
+
o({
|
|
353
|
+
name: "meadow",
|
|
354
|
+
displayName: "Meadow",
|
|
355
|
+
description: "Natural greens for collaborative daily work.",
|
|
356
|
+
mode: "light",
|
|
357
|
+
background: "#EEF4EC",
|
|
358
|
+
foreground: "#20372D",
|
|
359
|
+
card: "#FBFDF9",
|
|
360
|
+
muted: "#E2EBDF",
|
|
361
|
+
mutedForeground: "#52635A",
|
|
362
|
+
primary: "#24523D",
|
|
363
|
+
primaryForeground: "#FFFFFF",
|
|
364
|
+
border: "#C3D0BE",
|
|
365
|
+
input: "#7C8C77",
|
|
366
|
+
sidebar: "#E5EDE2",
|
|
367
|
+
terminalBackground: "#10221B",
|
|
368
|
+
terminalForeground: "#EEF6F0",
|
|
369
|
+
selectionBackground: "#26734D",
|
|
370
|
+
selectionForeground: "#FFFFFF",
|
|
371
|
+
chart: ["#26734D", "#245B9B", "#8A5A00", "#A13F17", "#6847A0"]
|
|
372
|
+
}),
|
|
373
|
+
o({
|
|
374
|
+
name: "citrus",
|
|
375
|
+
displayName: "Citrus",
|
|
376
|
+
description: "Warm cream and amber for lively commercial work.",
|
|
377
|
+
mode: "light",
|
|
378
|
+
background: "#FFF5E1",
|
|
379
|
+
foreground: "#3F2D1C",
|
|
380
|
+
card: "#FFFEFA",
|
|
381
|
+
muted: "#F3E7D0",
|
|
382
|
+
mutedForeground: "#675B4B",
|
|
383
|
+
primary: "#874000",
|
|
384
|
+
primaryForeground: "#FFFFFF",
|
|
385
|
+
border: "#DBC9AA",
|
|
386
|
+
input: "#9F8C6C",
|
|
387
|
+
sidebar: "#F7EBD3",
|
|
388
|
+
terminalBackground: "#261A11",
|
|
389
|
+
terminalForeground: "#FFF5E1",
|
|
390
|
+
selectionBackground: "#874000",
|
|
391
|
+
selectionForeground: "#FFFFFF",
|
|
392
|
+
chart: ["#A13F17", "#245B9B", "#26734D", "#6E45A3", "#9C225E"]
|
|
393
|
+
}),
|
|
394
|
+
o({
|
|
395
|
+
name: "lilac",
|
|
396
|
+
displayName: "Lilac",
|
|
397
|
+
description: "Soft violet structure for creative and client work.",
|
|
398
|
+
mode: "light",
|
|
399
|
+
background: "#F5F0FA",
|
|
400
|
+
foreground: "#30253D",
|
|
401
|
+
card: "#FFFDFF",
|
|
402
|
+
muted: "#EAE1F2",
|
|
403
|
+
mutedForeground: "#62566E",
|
|
404
|
+
primary: "#51407E",
|
|
405
|
+
primaryForeground: "#FFFFFF",
|
|
406
|
+
border: "#D4C5DF",
|
|
407
|
+
input: "#9584A2",
|
|
408
|
+
sidebar: "#EEE6F4",
|
|
409
|
+
terminalBackground: "#201827",
|
|
410
|
+
terminalForeground: "#F7F0FB",
|
|
411
|
+
selectionBackground: "#51407E",
|
|
412
|
+
selectionForeground: "#FFFFFF",
|
|
413
|
+
chart: ["#3E3F9F", "#245B9B", "#26734D", "#A13F17", "#9C225E"]
|
|
414
|
+
}),
|
|
415
|
+
o({
|
|
416
|
+
name: "light-plus",
|
|
417
|
+
displayName: "Light+",
|
|
418
|
+
description: "VS Code clarity with crisp blue actions and neutral chrome.",
|
|
419
|
+
mode: "light",
|
|
420
|
+
background: "#FFFFFF",
|
|
421
|
+
foreground: "#1F1F1F",
|
|
422
|
+
card: "#F7F7F7",
|
|
423
|
+
muted: "#EDEDED",
|
|
424
|
+
mutedForeground: "#616161",
|
|
425
|
+
primary: "#005FB8",
|
|
426
|
+
primaryForeground: "#FFFFFF",
|
|
427
|
+
border: "#D4D4D4",
|
|
428
|
+
input: "#767676",
|
|
429
|
+
sidebar: "#F3F3F3",
|
|
430
|
+
terminalBackground: "#181818",
|
|
431
|
+
terminalForeground: "#CCCCCC",
|
|
432
|
+
selectionBackground: "#005FB8",
|
|
433
|
+
selectionForeground: "#FFFFFF",
|
|
434
|
+
chart: ["#005FB8", "#007A69", "#527A00", "#9A5D00", "#7A3E9D"],
|
|
435
|
+
syntax: {
|
|
436
|
+
comment: "#008000",
|
|
437
|
+
keyword: "#0000FF",
|
|
438
|
+
string: "#A31515",
|
|
439
|
+
number: "#098658",
|
|
440
|
+
type: "#267F99",
|
|
441
|
+
function: "#795E26",
|
|
442
|
+
constant: "#811F3F"
|
|
443
|
+
}
|
|
444
|
+
}),
|
|
445
|
+
o({
|
|
446
|
+
name: "quiet-light",
|
|
447
|
+
displayName: "Quiet Light",
|
|
448
|
+
description: "Soft gray surfaces and calm indigo for long coding sessions.",
|
|
449
|
+
mode: "light",
|
|
450
|
+
background: "#F5F5F5",
|
|
451
|
+
foreground: "#333333",
|
|
452
|
+
card: "#FFFFFF",
|
|
453
|
+
muted: "#E8E8E8",
|
|
454
|
+
mutedForeground: "#626262",
|
|
455
|
+
primary: "#4B61B9",
|
|
456
|
+
primaryForeground: "#FFFFFF",
|
|
457
|
+
border: "#D2D2D2",
|
|
458
|
+
input: "#777777",
|
|
459
|
+
sidebar: "#EBEBEB",
|
|
460
|
+
terminalBackground: "#202020",
|
|
461
|
+
terminalForeground: "#DADADA",
|
|
462
|
+
selectionBackground: "#455FA0",
|
|
463
|
+
selectionForeground: "#FFFFFF",
|
|
464
|
+
chart: ["#4B5FBF", "#26736F", "#567832", "#9A5D00", "#8A427A"],
|
|
465
|
+
syntax: {
|
|
466
|
+
comment: "#777777",
|
|
467
|
+
keyword: "#7A3E9D",
|
|
468
|
+
string: "#A31515",
|
|
469
|
+
number: "#098658",
|
|
470
|
+
type: "#267F99",
|
|
471
|
+
function: "#795E26",
|
|
472
|
+
constant: "#4B5FBF"
|
|
473
|
+
}
|
|
474
|
+
}),
|
|
475
|
+
o({
|
|
476
|
+
name: "solarized-light",
|
|
477
|
+
displayName: "Solarized Light",
|
|
478
|
+
description: "Solarized warmth with measured cyan, green, and amber syntax.",
|
|
479
|
+
mode: "light",
|
|
480
|
+
background: "#FDF6E3",
|
|
481
|
+
foreground: "#586E75",
|
|
482
|
+
card: "#FFFDF4",
|
|
483
|
+
muted: "#EEE8D5",
|
|
484
|
+
mutedForeground: "#536970",
|
|
485
|
+
primary: "#075E73",
|
|
486
|
+
primaryForeground: "#FFFFFF",
|
|
487
|
+
border: "#D9D1BA",
|
|
488
|
+
input: "#7B7464",
|
|
489
|
+
sidebar: "#F3ECD8",
|
|
490
|
+
terminalBackground: "#002B36",
|
|
491
|
+
terminalForeground: "#EEE8D5",
|
|
492
|
+
selectionBackground: "#075E73",
|
|
493
|
+
selectionForeground: "#FFFFFF",
|
|
494
|
+
chart: ["#006F8A", "#2C6E49", "#7A6A00", "#B04A00", "#6C4A9E"],
|
|
495
|
+
syntax: {
|
|
496
|
+
comment: "#657B83",
|
|
497
|
+
keyword: "#6C4A9E",
|
|
498
|
+
string: "#2C6E49",
|
|
499
|
+
number: "#B04A00",
|
|
500
|
+
type: "#006F8A",
|
|
501
|
+
function: "#7A6A00",
|
|
502
|
+
constant: "#B04A00"
|
|
503
|
+
}
|
|
504
|
+
}),
|
|
505
|
+
o({
|
|
506
|
+
name: "github-light",
|
|
507
|
+
displayName: "GitHub Light",
|
|
508
|
+
description: "Clean repository neutrals with familiar blue and green accents.",
|
|
509
|
+
mode: "light",
|
|
510
|
+
background: "#F6F8FA",
|
|
511
|
+
foreground: "#24292F",
|
|
512
|
+
card: "#FFFFFF",
|
|
513
|
+
muted: "#EAEEF2",
|
|
514
|
+
mutedForeground: "#57606A",
|
|
515
|
+
primary: "#0969DA",
|
|
516
|
+
primaryForeground: "#FFFFFF",
|
|
517
|
+
border: "#D0D7DE",
|
|
518
|
+
input: "#6E7781",
|
|
519
|
+
sidebar: "#F0F3F6",
|
|
520
|
+
terminalBackground: "#0D1117",
|
|
521
|
+
terminalForeground: "#C9D1D9",
|
|
522
|
+
selectionBackground: "#0969DA",
|
|
523
|
+
selectionForeground: "#FFFFFF",
|
|
524
|
+
chart: ["#0969DA", "#1A7F37", "#9A6700", "#CF222E", "#8250DF"],
|
|
525
|
+
syntax: {
|
|
526
|
+
comment: "#57606A",
|
|
527
|
+
keyword: "#CF222E",
|
|
528
|
+
string: "#0A3069",
|
|
529
|
+
number: "#0550AE",
|
|
530
|
+
type: "#953800",
|
|
531
|
+
function: "#8250DF",
|
|
532
|
+
constant: "#0550AE"
|
|
533
|
+
}
|
|
534
|
+
}),
|
|
535
|
+
o({
|
|
536
|
+
name: "hc-light",
|
|
537
|
+
displayName: "High Contrast Light",
|
|
538
|
+
description: "Maximum edge definition for bright environments and low vision.",
|
|
539
|
+
mode: "light",
|
|
540
|
+
background: "#FFFFFF",
|
|
541
|
+
foreground: "#000000",
|
|
542
|
+
card: "#F2F2F2",
|
|
543
|
+
muted: "#E0E0E0",
|
|
544
|
+
mutedForeground: "#333333",
|
|
545
|
+
primary: "#0000A8",
|
|
546
|
+
primaryForeground: "#FFFFFF",
|
|
547
|
+
border: "#000000",
|
|
548
|
+
input: "#000000",
|
|
549
|
+
sidebar: "#FFFFFF",
|
|
550
|
+
terminalBackground: "#000000",
|
|
551
|
+
terminalForeground: "#FFFFFF",
|
|
552
|
+
selectionBackground: "#0000A8",
|
|
553
|
+
selectionForeground: "#FFFFFF",
|
|
554
|
+
chart: ["#0000A8", "#006B3C", "#745500", "#B00020", "#6A1B9A"],
|
|
555
|
+
syntax: {
|
|
556
|
+
comment: "#005A00",
|
|
557
|
+
keyword: "#0000A8",
|
|
558
|
+
string: "#A00000",
|
|
559
|
+
number: "#006B3C",
|
|
560
|
+
type: "#005B70",
|
|
561
|
+
function: "#6A1B9A",
|
|
562
|
+
constant: "#745500"
|
|
563
|
+
}
|
|
564
|
+
}),
|
|
565
|
+
p,
|
|
566
|
+
o({
|
|
567
|
+
name: "ink",
|
|
568
|
+
displayName: "Ink",
|
|
569
|
+
description: "Blue-black focus with a restrained engineering blue.",
|
|
570
|
+
mode: "dark",
|
|
571
|
+
background: "#0B1420",
|
|
572
|
+
foreground: "#EAF2F7",
|
|
573
|
+
card: "#121F2D",
|
|
574
|
+
muted: "#1A2938",
|
|
575
|
+
mutedForeground: "#AAB8C7",
|
|
576
|
+
primary: "#86A6E7",
|
|
577
|
+
primaryForeground: "#0B1420",
|
|
578
|
+
border: "#2B3D50",
|
|
579
|
+
input: "#58708A",
|
|
580
|
+
sidebar: "#0F1B28",
|
|
581
|
+
terminalBackground: "#070D14",
|
|
582
|
+
terminalForeground: "#DFEAF1",
|
|
583
|
+
selectionBackground: "#395C9F",
|
|
584
|
+
selectionForeground: "#FFFFFF",
|
|
585
|
+
chart: ["#86A6E7", "#62B8C7", "#91C980", "#F1C86D", "#C19BE8"]
|
|
586
|
+
}),
|
|
587
|
+
o({
|
|
588
|
+
name: "slate",
|
|
589
|
+
displayName: "Slate",
|
|
590
|
+
description: "Neutral graphite layers for enterprise operations.",
|
|
591
|
+
mode: "dark",
|
|
592
|
+
background: "#171B22",
|
|
593
|
+
foreground: "#EEF1F5",
|
|
594
|
+
card: "#202832",
|
|
595
|
+
muted: "#29323D",
|
|
596
|
+
mutedForeground: "#AAB3BF",
|
|
597
|
+
primary: "#A8B7C8",
|
|
598
|
+
primaryForeground: "#171B22",
|
|
599
|
+
border: "#38434F",
|
|
600
|
+
input: "#68798C",
|
|
601
|
+
sidebar: "#1C222B",
|
|
602
|
+
terminalBackground: "#0F1217",
|
|
603
|
+
terminalForeground: "#E7EBEF",
|
|
604
|
+
selectionBackground: "#52677E",
|
|
605
|
+
selectionForeground: "#FFFFFF",
|
|
606
|
+
chart: ["#A8B7C8", "#71C8C0", "#A9C77A", "#E0B96D", "#C2A6E7"]
|
|
607
|
+
}),
|
|
608
|
+
o({
|
|
609
|
+
name: "forest",
|
|
610
|
+
displayName: "Forest",
|
|
611
|
+
description: "Deep greens and copper for calm live monitoring.",
|
|
612
|
+
mode: "dark",
|
|
613
|
+
background: "#0B1A17",
|
|
614
|
+
foreground: "#EDF6F1",
|
|
615
|
+
card: "#132621",
|
|
616
|
+
muted: "#1B312B",
|
|
617
|
+
mutedForeground: "#A7BDB3",
|
|
618
|
+
primary: "#71D0B1",
|
|
619
|
+
primaryForeground: "#0B1A17",
|
|
620
|
+
border: "#2A453C",
|
|
621
|
+
input: "#587C6C",
|
|
622
|
+
sidebar: "#10211D",
|
|
623
|
+
terminalBackground: "#06100E",
|
|
624
|
+
terminalForeground: "#E5F1EB",
|
|
625
|
+
selectionBackground: "#2D7D67",
|
|
626
|
+
selectionForeground: "#FFFFFF",
|
|
627
|
+
chart: ["#71D0B1", "#8FCB81", "#E5C07B", "#F08C78", "#C7A6E8"]
|
|
628
|
+
}),
|
|
629
|
+
o({
|
|
630
|
+
name: "ember",
|
|
631
|
+
displayName: "Ember",
|
|
632
|
+
description: "Charcoal warmth for releases and high-attention work.",
|
|
633
|
+
mode: "dark",
|
|
634
|
+
background: "#1D1115",
|
|
635
|
+
foreground: "#FFF1F1",
|
|
636
|
+
card: "#291A20",
|
|
637
|
+
muted: "#352329",
|
|
638
|
+
mutedForeground: "#C4A9B0",
|
|
639
|
+
primary: "#FF9B7A",
|
|
640
|
+
primaryForeground: "#1D1115",
|
|
641
|
+
border: "#4B3038",
|
|
642
|
+
input: "#8C6270",
|
|
643
|
+
sidebar: "#24171B",
|
|
644
|
+
terminalBackground: "#11090B",
|
|
645
|
+
terminalForeground: "#FBEAED",
|
|
646
|
+
selectionBackground: "#A94632",
|
|
647
|
+
selectionForeground: "#FFFFFF",
|
|
648
|
+
chart: ["#FF9B7A", "#7BC8FF", "#8ED081", "#F4CC75", "#D7A4F9"]
|
|
649
|
+
}),
|
|
650
|
+
o({
|
|
651
|
+
name: "ocean",
|
|
652
|
+
displayName: "Ocean",
|
|
653
|
+
description: "High-clarity cyan for streams, terminals, and tools.",
|
|
654
|
+
mode: "dark",
|
|
655
|
+
background: "#071A25",
|
|
656
|
+
foreground: "#E9F7FC",
|
|
657
|
+
card: "#0E2938",
|
|
658
|
+
muted: "#153544",
|
|
659
|
+
mutedForeground: "#A1BECA",
|
|
660
|
+
primary: "#69D4FF",
|
|
661
|
+
primaryForeground: "#071A25",
|
|
662
|
+
border: "#254657",
|
|
663
|
+
input: "#47788E",
|
|
664
|
+
sidebar: "#0A2230",
|
|
665
|
+
terminalBackground: "#030E14",
|
|
666
|
+
terminalForeground: "#E0F3FA",
|
|
667
|
+
selectionBackground: "#176C8E",
|
|
668
|
+
selectionForeground: "#FFFFFF",
|
|
669
|
+
chart: ["#69D4FF", "#83E1C1", "#B6D86C", "#F2C879", "#D2AEFF"]
|
|
670
|
+
}),
|
|
671
|
+
o({
|
|
672
|
+
name: "dark-plus",
|
|
673
|
+
displayName: "Dark+",
|
|
674
|
+
description: "The familiar VS Code dark workbench with balanced syntax color.",
|
|
675
|
+
mode: "dark",
|
|
676
|
+
background: "#1E1E1E",
|
|
677
|
+
foreground: "#D4D4D4",
|
|
678
|
+
card: "#252526",
|
|
679
|
+
muted: "#2D2D30",
|
|
680
|
+
mutedForeground: "#B4B4B4",
|
|
681
|
+
primary: "#3794FF",
|
|
682
|
+
primaryForeground: "#101010",
|
|
683
|
+
border: "#3F3F46",
|
|
684
|
+
input: "#737379",
|
|
685
|
+
sidebar: "#181818",
|
|
686
|
+
terminalBackground: "#181818",
|
|
687
|
+
terminalForeground: "#CCCCCC",
|
|
688
|
+
selectionBackground: "#264F78",
|
|
689
|
+
selectionForeground: "#FFFFFF",
|
|
690
|
+
chart: ["#569CD6", "#4EC9B0", "#B5CEA8", "#DCDCAA", "#C586C0"],
|
|
691
|
+
syntax: {
|
|
692
|
+
comment: "#6A9955",
|
|
693
|
+
keyword: "#C586C0",
|
|
694
|
+
string: "#CE9178",
|
|
695
|
+
number: "#B5CEA8",
|
|
696
|
+
type: "#4EC9B0",
|
|
697
|
+
function: "#DCDCAA",
|
|
698
|
+
constant: "#569CD6"
|
|
699
|
+
}
|
|
700
|
+
}),
|
|
701
|
+
o({
|
|
702
|
+
name: "monokai",
|
|
703
|
+
displayName: "Monokai",
|
|
704
|
+
description: "Warm charcoal with vivid pink, green, cyan, and yellow code.",
|
|
705
|
+
mode: "dark",
|
|
706
|
+
background: "#272822",
|
|
707
|
+
foreground: "#F8F8F2",
|
|
708
|
+
card: "#30312B",
|
|
709
|
+
muted: "#3A3B34",
|
|
710
|
+
mutedForeground: "#C5C8B5",
|
|
711
|
+
primary: "#F92672",
|
|
712
|
+
primaryForeground: "#11120F",
|
|
713
|
+
border: "#494A42",
|
|
714
|
+
input: "#7B7D6E",
|
|
715
|
+
sidebar: "#20211C",
|
|
716
|
+
terminalBackground: "#1D1E19",
|
|
717
|
+
terminalForeground: "#F8F8F2",
|
|
718
|
+
selectionBackground: "#5A594E",
|
|
719
|
+
selectionForeground: "#FFFFFF",
|
|
720
|
+
chart: ["#F92672", "#A6E22E", "#66D9EF", "#E6DB74", "#AE81FF"],
|
|
721
|
+
syntax: {
|
|
722
|
+
comment: "#A6A28C",
|
|
723
|
+
keyword: "#F92672",
|
|
724
|
+
string: "#A6E22E",
|
|
725
|
+
number: "#AE81FF",
|
|
726
|
+
type: "#66D9EF",
|
|
727
|
+
function: "#E6DB74",
|
|
728
|
+
constant: "#AE81FF"
|
|
729
|
+
}
|
|
730
|
+
}),
|
|
731
|
+
o({
|
|
732
|
+
name: "nord",
|
|
733
|
+
displayName: "Nord",
|
|
734
|
+
description: "Arctic blue-gray surfaces with restrained frost accents.",
|
|
735
|
+
mode: "dark",
|
|
736
|
+
background: "#2E3440",
|
|
737
|
+
foreground: "#ECEFF4",
|
|
738
|
+
card: "#3B4252",
|
|
739
|
+
muted: "#434C5E",
|
|
740
|
+
mutedForeground: "#D8DEE9",
|
|
741
|
+
primary: "#88C0D0",
|
|
742
|
+
primaryForeground: "#1B222C",
|
|
743
|
+
border: "#4C566A",
|
|
744
|
+
input: "#8B9AAF",
|
|
745
|
+
sidebar: "#262C36",
|
|
746
|
+
terminalBackground: "#242933",
|
|
747
|
+
terminalForeground: "#D8DEE9",
|
|
748
|
+
selectionBackground: "#4C668A",
|
|
749
|
+
selectionForeground: "#FFFFFF",
|
|
750
|
+
chart: ["#88C0D0", "#A3BE8C", "#EBCB8B", "#D08770", "#B48EAD"],
|
|
751
|
+
syntax: {
|
|
752
|
+
comment: "#A7B0C0",
|
|
753
|
+
keyword: "#B48EAD",
|
|
754
|
+
string: "#A3BE8C",
|
|
755
|
+
number: "#B48EAD",
|
|
756
|
+
type: "#8FBCBB",
|
|
757
|
+
function: "#88C0D0",
|
|
758
|
+
constant: "#D08770"
|
|
759
|
+
}
|
|
760
|
+
}),
|
|
761
|
+
o({
|
|
762
|
+
name: "dracula",
|
|
763
|
+
displayName: "Dracula",
|
|
764
|
+
description: "Deep violet charcoal with bright pink, green, and cyan syntax.",
|
|
765
|
+
mode: "dark",
|
|
766
|
+
background: "#282A36",
|
|
767
|
+
foreground: "#F8F8F2",
|
|
768
|
+
card: "#303341",
|
|
769
|
+
muted: "#3B3F51",
|
|
770
|
+
mutedForeground: "#C9CCD6",
|
|
771
|
+
primary: "#BD93F9",
|
|
772
|
+
primaryForeground: "#1D1E26",
|
|
773
|
+
border: "#44475A",
|
|
774
|
+
input: "#78809C",
|
|
775
|
+
sidebar: "#21222C",
|
|
776
|
+
terminalBackground: "#191A21",
|
|
777
|
+
terminalForeground: "#F8F8F2",
|
|
778
|
+
selectionBackground: "#52566D",
|
|
779
|
+
selectionForeground: "#FFFFFF",
|
|
780
|
+
chart: ["#BD93F9", "#50FA7B", "#8BE9FD", "#F1FA8C", "#FF79C6"],
|
|
781
|
+
syntax: {
|
|
782
|
+
comment: "#A7AAC0",
|
|
783
|
+
keyword: "#FF79C6",
|
|
784
|
+
string: "#F1FA8C",
|
|
785
|
+
number: "#BD93F9",
|
|
786
|
+
type: "#8BE9FD",
|
|
787
|
+
function: "#50FA7B",
|
|
788
|
+
constant: "#BD93F9"
|
|
789
|
+
}
|
|
790
|
+
}),
|
|
791
|
+
o({
|
|
792
|
+
name: "abyss",
|
|
793
|
+
displayName: "Abyss",
|
|
794
|
+
description: "Near-black ocean depth with electric cyan tool highlights.",
|
|
795
|
+
mode: "dark",
|
|
796
|
+
background: "#000C18",
|
|
797
|
+
foreground: "#DDEEFF",
|
|
798
|
+
card: "#051A28",
|
|
799
|
+
muted: "#0B2536",
|
|
800
|
+
mutedForeground: "#A7C4D8",
|
|
801
|
+
primary: "#00A4EF",
|
|
802
|
+
primaryForeground: "#00111D",
|
|
803
|
+
border: "#12374D",
|
|
804
|
+
input: "#39758F",
|
|
805
|
+
sidebar: "#00111D",
|
|
806
|
+
terminalBackground: "#00070D",
|
|
807
|
+
terminalForeground: "#D7E9F5",
|
|
808
|
+
selectionBackground: "#005A8D",
|
|
809
|
+
selectionForeground: "#FFFFFF",
|
|
810
|
+
chart: ["#00A4EF", "#22C7A9", "#A6D957", "#FFCC66", "#C792EA"],
|
|
811
|
+
syntax: {
|
|
812
|
+
comment: "#77A4BC",
|
|
813
|
+
keyword: "#C792EA",
|
|
814
|
+
string: "#A6D957",
|
|
815
|
+
number: "#FFCC66",
|
|
816
|
+
type: "#22C7A9",
|
|
817
|
+
function: "#00A4EF",
|
|
818
|
+
constant: "#FFCC66"
|
|
819
|
+
}
|
|
820
|
+
})
|
|
821
|
+
], D = {
|
|
822
|
+
light: "classic-light",
|
|
823
|
+
dark: "classic-dark"
|
|
824
|
+
};
|
|
825
|
+
function A(r, e) {
|
|
826
|
+
const n = r.mode ?? "both";
|
|
827
|
+
return n === "both" || n === e;
|
|
828
|
+
}
|
|
829
|
+
function E(r, e) {
|
|
830
|
+
return r.filter((n) => A(n, e));
|
|
831
|
+
}
|
|
832
|
+
function y(r) {
|
|
833
|
+
const e = /* @__PURE__ */ new Set();
|
|
834
|
+
for (const n of r) {
|
|
835
|
+
if (e.has(n.name))
|
|
836
|
+
throw new Error(`Duplicate shell theme preset name: ${n.name}`);
|
|
837
|
+
e.add(n.name);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
function i(r, e, n, t) {
|
|
841
|
+
const d = E(r, e);
|
|
842
|
+
return n && d.some((F) => F.name === n) ? n : t && d.some((F) => F.name === t) ? t : d[0]?.name;
|
|
843
|
+
}
|
|
844
|
+
function f(r, e, n = {}) {
|
|
845
|
+
const t = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0, d = t?.version === 1, F = d && typeof t.light == "string" ? t.light : void 0, c = d && typeof t.dark == "string" ? t.dark : void 0;
|
|
846
|
+
return {
|
|
847
|
+
version: 1,
|
|
848
|
+
light: i(e, "light", F, n.light),
|
|
849
|
+
dark: i(e, "dark", c, n.dark)
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
y(k);
|
|
853
|
+
export {
|
|
854
|
+
D as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
855
|
+
C as REQUIRED_SHELL_THEME_TOKENS,
|
|
856
|
+
y as assertUniqueThemePresetNames,
|
|
857
|
+
k as builtInShellThemePresets,
|
|
858
|
+
o as createShellThemePreset,
|
|
859
|
+
E as getShellThemePresetsForMode,
|
|
860
|
+
f as normalizeShellThemeSelection,
|
|
861
|
+
A as presetSupportsMode,
|
|
862
|
+
i as resolveShellThemePresetName
|
|
863
|
+
};
|