@monotykamary/localterm-server 2.44.1 → 2.46.0
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/completion/resolver.d.ts +2 -0
- package/dist/completion/resolver.d.ts.map +1 -1
- package/dist/completion/resolver.js.map +1 -1
- package/dist/completion/spec.d.ts +1 -1
- package/dist/completion/spec.d.ts.map +1 -1
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -3
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/schemas.d.ts +204 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +95 -1
- package/dist/schemas.js.map +1 -1
- package/dist/terminal-themes.d.ts +40 -0
- package/dist/terminal-themes.d.ts.map +1 -0
- package/dist/terminal-themes.js +606 -0
- package/dist/terminal-themes.js.map +1 -0
- package/dist/theme-parser.d.ts +8 -0
- package/dist/theme-parser.d.ts.map +1 -0
- package/dist/theme-parser.js +274 -0
- package/dist/theme-parser.js.map +1 -0
- package/dist/theme-store.d.ts +24 -0
- package/dist/theme-store.d.ts.map +1 -0
- package/dist/theme-store.js +131 -0
- package/dist/theme-store.js.map +1 -0
- package/dist/types.d.ts +7 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface ThemeColors {
|
|
2
|
+
background?: string;
|
|
3
|
+
foreground?: string;
|
|
4
|
+
cursor?: string;
|
|
5
|
+
cursorAccent?: string;
|
|
6
|
+
selectionBackground?: string;
|
|
7
|
+
selectionForeground?: string;
|
|
8
|
+
selectionInactiveBackground?: string;
|
|
9
|
+
black?: string;
|
|
10
|
+
red?: string;
|
|
11
|
+
green?: string;
|
|
12
|
+
yellow?: string;
|
|
13
|
+
blue?: string;
|
|
14
|
+
magenta?: string;
|
|
15
|
+
cyan?: string;
|
|
16
|
+
white?: string;
|
|
17
|
+
brightBlack?: string;
|
|
18
|
+
brightRed?: string;
|
|
19
|
+
brightGreen?: string;
|
|
20
|
+
brightYellow?: string;
|
|
21
|
+
brightBlue?: string;
|
|
22
|
+
brightMagenta?: string;
|
|
23
|
+
brightCyan?: string;
|
|
24
|
+
brightWhite?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface TerminalTheme {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
source: string;
|
|
30
|
+
colors: ThemeColors;
|
|
31
|
+
}
|
|
32
|
+
export declare const TERMINAL_THEMES: TerminalTheme[];
|
|
33
|
+
export declare const DEFAULT_TERMINAL_THEME_ID: string;
|
|
34
|
+
export declare const LIGHT_DEFAULT_TERMINAL_THEME_ID: string;
|
|
35
|
+
export declare const AUTO_THEME_ID = "auto";
|
|
36
|
+
export declare const resolveAutoTheme: (prefersDark: boolean) => TerminalTheme;
|
|
37
|
+
export declare const BUILTIN_THEME_IDS: readonly string[];
|
|
38
|
+
export declare const isBuiltinThemeId: (id: string) => boolean;
|
|
39
|
+
export declare const findTerminalThemeById: (id: string | null | undefined, customThemes?: readonly TerminalTheme[]) => TerminalTheme;
|
|
40
|
+
//# sourceMappingURL=terminal-themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-themes.d.ts","sourceRoot":"","sources":["../src/terminal-themes.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CA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AAO,KAC1C,aAOF,CAAC"}
|
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
// The built-in terminal theme catalog, shared by the daemon (storage +
|
|
2
|
+
// completion + the `localterm theme` CLI) and the browser terminal app. Lives
|
|
3
|
+
// in the server package so every surface reads one source of truth — the
|
|
4
|
+
// browser's `apps/terminal/src/lib/terminal-themes.ts` re-exports this.
|
|
5
|
+
const VESPER = {
|
|
6
|
+
id: "vesper",
|
|
7
|
+
name: "Vesper",
|
|
8
|
+
source: "raunofreiberg/vesper",
|
|
9
|
+
colors: {
|
|
10
|
+
background: "#101010",
|
|
11
|
+
foreground: "#ffffff",
|
|
12
|
+
cursor: "#ffc799",
|
|
13
|
+
cursorAccent: "#101010",
|
|
14
|
+
selectionBackground: "#2a2a2a",
|
|
15
|
+
selectionForeground: "#ffffff",
|
|
16
|
+
black: "#101010",
|
|
17
|
+
red: "#ff8080",
|
|
18
|
+
green: "#99ffe4",
|
|
19
|
+
yellow: "#ffc799",
|
|
20
|
+
blue: "#a0a0a0",
|
|
21
|
+
magenta: "#ffc799",
|
|
22
|
+
cyan: "#99ffe4",
|
|
23
|
+
white: "#ffffff",
|
|
24
|
+
brightBlack: "#505050",
|
|
25
|
+
brightRed: "#ff9999",
|
|
26
|
+
brightGreen: "#b3ffe4",
|
|
27
|
+
brightYellow: "#ffd1a8",
|
|
28
|
+
brightBlue: "#b0b0b0",
|
|
29
|
+
brightMagenta: "#ffc799",
|
|
30
|
+
brightCyan: "#66ddcc",
|
|
31
|
+
brightWhite: "#ffffff",
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
const DRACULA = {
|
|
35
|
+
id: "dracula",
|
|
36
|
+
name: "Dracula",
|
|
37
|
+
source: "dracula/visual-studio-code",
|
|
38
|
+
colors: {
|
|
39
|
+
background: "#282a36",
|
|
40
|
+
foreground: "#f8f8f2",
|
|
41
|
+
cursor: "#f8f8f2",
|
|
42
|
+
cursorAccent: "#282a36",
|
|
43
|
+
selectionBackground: "#44475a",
|
|
44
|
+
selectionForeground: "#f8f8f2",
|
|
45
|
+
black: "#21222c",
|
|
46
|
+
red: "#ff5555",
|
|
47
|
+
green: "#50fa7b",
|
|
48
|
+
yellow: "#f1fa8c",
|
|
49
|
+
blue: "#bd93f9",
|
|
50
|
+
magenta: "#ff79c6",
|
|
51
|
+
cyan: "#8be9fd",
|
|
52
|
+
white: "#f8f8f2",
|
|
53
|
+
brightBlack: "#6272a4",
|
|
54
|
+
brightRed: "#ff6e6e",
|
|
55
|
+
brightGreen: "#69ff94",
|
|
56
|
+
brightYellow: "#ffffa5",
|
|
57
|
+
brightBlue: "#d6acff",
|
|
58
|
+
brightMagenta: "#ff92df",
|
|
59
|
+
brightCyan: "#a4ffff",
|
|
60
|
+
brightWhite: "#ffffff",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const ONE_DARK_PRO = {
|
|
64
|
+
id: "one-dark-pro",
|
|
65
|
+
name: "One Dark Pro",
|
|
66
|
+
source: "Binaryify/OneDark-Pro",
|
|
67
|
+
colors: {
|
|
68
|
+
background: "#282c34",
|
|
69
|
+
foreground: "#abb2bf",
|
|
70
|
+
cursor: "#abb2bf",
|
|
71
|
+
cursorAccent: "#282c34",
|
|
72
|
+
selectionBackground: "#3e4452",
|
|
73
|
+
selectionForeground: "#abb2bf",
|
|
74
|
+
black: "#3f4451",
|
|
75
|
+
red: "#e05561",
|
|
76
|
+
green: "#8cc265",
|
|
77
|
+
yellow: "#d18f52",
|
|
78
|
+
blue: "#4aa5f0",
|
|
79
|
+
magenta: "#c162de",
|
|
80
|
+
cyan: "#42b3c2",
|
|
81
|
+
white: "#d7dae0",
|
|
82
|
+
brightBlack: "#4f5666",
|
|
83
|
+
brightRed: "#ff616e",
|
|
84
|
+
brightGreen: "#a5e075",
|
|
85
|
+
brightYellow: "#f0a45d",
|
|
86
|
+
brightBlue: "#4dc4ff",
|
|
87
|
+
brightMagenta: "#de73ff",
|
|
88
|
+
brightCyan: "#4cd1e0",
|
|
89
|
+
brightWhite: "#e6e6e6",
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
const MONOKAI = {
|
|
93
|
+
id: "monokai",
|
|
94
|
+
name: "Monokai",
|
|
95
|
+
source: "vscode/extensions/theme-monokai",
|
|
96
|
+
colors: {
|
|
97
|
+
background: "#272822",
|
|
98
|
+
foreground: "#f8f8f2",
|
|
99
|
+
cursor: "#f8f8f0",
|
|
100
|
+
cursorAccent: "#272822",
|
|
101
|
+
selectionBackground: "#878b91",
|
|
102
|
+
selectionForeground: "#f8f8f2",
|
|
103
|
+
black: "#333333",
|
|
104
|
+
red: "#c4265e",
|
|
105
|
+
green: "#86b42b",
|
|
106
|
+
yellow: "#b3b42b",
|
|
107
|
+
blue: "#6a7ec8",
|
|
108
|
+
magenta: "#8c6bc8",
|
|
109
|
+
cyan: "#56adbc",
|
|
110
|
+
white: "#e3e3dd",
|
|
111
|
+
brightBlack: "#666666",
|
|
112
|
+
brightRed: "#f92672",
|
|
113
|
+
brightGreen: "#a6e22e",
|
|
114
|
+
brightYellow: "#e2e22e",
|
|
115
|
+
brightBlue: "#819aff",
|
|
116
|
+
brightMagenta: "#ae81ff",
|
|
117
|
+
brightCyan: "#66d9ef",
|
|
118
|
+
brightWhite: "#f8f8f2",
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
const TOKYO_NIGHT = {
|
|
122
|
+
id: "tokyo-night",
|
|
123
|
+
name: "Tokyo Night",
|
|
124
|
+
source: "enkia/tokyo-night-vscode-theme",
|
|
125
|
+
colors: {
|
|
126
|
+
background: "#1a1b26",
|
|
127
|
+
foreground: "#a9b1d6",
|
|
128
|
+
cursor: "#c0caf5",
|
|
129
|
+
cursorAccent: "#1a1b26",
|
|
130
|
+
selectionBackground: "#515c7e",
|
|
131
|
+
selectionForeground: "#c0caf5",
|
|
132
|
+
black: "#363b54",
|
|
133
|
+
red: "#f7768e",
|
|
134
|
+
green: "#73daca",
|
|
135
|
+
yellow: "#e0af68",
|
|
136
|
+
blue: "#7aa2f7",
|
|
137
|
+
magenta: "#bb9af7",
|
|
138
|
+
cyan: "#7dcfff",
|
|
139
|
+
white: "#787c99",
|
|
140
|
+
brightBlack: "#363b54",
|
|
141
|
+
brightRed: "#f7768e",
|
|
142
|
+
brightGreen: "#73daca",
|
|
143
|
+
brightYellow: "#e0af68",
|
|
144
|
+
brightBlue: "#7aa2f7",
|
|
145
|
+
brightMagenta: "#bb9af7",
|
|
146
|
+
brightCyan: "#7dcfff",
|
|
147
|
+
brightWhite: "#acb0d0",
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
const TOKYO_NIGHT_STORM = {
|
|
151
|
+
id: "tokyo-night-storm",
|
|
152
|
+
name: "Tokyo Night Storm",
|
|
153
|
+
source: "enkia/tokyo-night-vscode-theme",
|
|
154
|
+
colors: {
|
|
155
|
+
background: "#24283b",
|
|
156
|
+
foreground: "#a9b1d6",
|
|
157
|
+
cursor: "#c0caf5",
|
|
158
|
+
cursorAccent: "#24283b",
|
|
159
|
+
selectionBackground: "#6f7bb6",
|
|
160
|
+
selectionForeground: "#c0caf5",
|
|
161
|
+
black: "#414868",
|
|
162
|
+
red: "#f7768e",
|
|
163
|
+
green: "#73daca",
|
|
164
|
+
yellow: "#e0af68",
|
|
165
|
+
blue: "#7aa2f7",
|
|
166
|
+
magenta: "#bb9af7",
|
|
167
|
+
cyan: "#7dcfff",
|
|
168
|
+
white: "#8089b3",
|
|
169
|
+
brightBlack: "#414868",
|
|
170
|
+
brightRed: "#f7768e",
|
|
171
|
+
brightGreen: "#73daca",
|
|
172
|
+
brightYellow: "#e0af68",
|
|
173
|
+
brightBlue: "#7aa2f7",
|
|
174
|
+
brightMagenta: "#bb9af7",
|
|
175
|
+
brightCyan: "#7dcfff",
|
|
176
|
+
brightWhite: "#a9b1d6",
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
const CATPPUCCIN_MOCHA = {
|
|
180
|
+
id: "catppuccin-mocha",
|
|
181
|
+
name: "Catppuccin Mocha",
|
|
182
|
+
source: "catppuccin/wezterm + style-guide",
|
|
183
|
+
colors: {
|
|
184
|
+
background: "#1e1e2e",
|
|
185
|
+
foreground: "#cdd6f4",
|
|
186
|
+
cursor: "#f5e0dc",
|
|
187
|
+
cursorAccent: "#11111b",
|
|
188
|
+
selectionBackground: "#585b70",
|
|
189
|
+
selectionForeground: "#cdd6f4",
|
|
190
|
+
black: "#45475a",
|
|
191
|
+
red: "#f38ba8",
|
|
192
|
+
green: "#a6e3a1",
|
|
193
|
+
yellow: "#f9e2af",
|
|
194
|
+
blue: "#89b4fa",
|
|
195
|
+
magenta: "#f5c2e7",
|
|
196
|
+
cyan: "#94e2d5",
|
|
197
|
+
white: "#bac2de",
|
|
198
|
+
brightBlack: "#585b70",
|
|
199
|
+
brightRed: "#f38ba8",
|
|
200
|
+
brightGreen: "#a6e3a1",
|
|
201
|
+
brightYellow: "#f9e2af",
|
|
202
|
+
brightBlue: "#89b4fa",
|
|
203
|
+
brightMagenta: "#f5c2e7",
|
|
204
|
+
brightCyan: "#94e2d5",
|
|
205
|
+
brightWhite: "#a6adc8",
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
const CATPPUCCIN_MACCHIATO = {
|
|
209
|
+
id: "catppuccin-macchiato",
|
|
210
|
+
name: "Catppuccin Macchiato",
|
|
211
|
+
source: "catppuccin/wezterm + style-guide",
|
|
212
|
+
colors: {
|
|
213
|
+
background: "#24273a",
|
|
214
|
+
foreground: "#cad3f5",
|
|
215
|
+
cursor: "#f4dbd6",
|
|
216
|
+
cursorAccent: "#181926",
|
|
217
|
+
selectionBackground: "#5b6078",
|
|
218
|
+
selectionForeground: "#cad3f5",
|
|
219
|
+
black: "#494d64",
|
|
220
|
+
red: "#ed8796",
|
|
221
|
+
green: "#a6da95",
|
|
222
|
+
yellow: "#eed49f",
|
|
223
|
+
blue: "#8aadf4",
|
|
224
|
+
magenta: "#f5bde6",
|
|
225
|
+
cyan: "#8bd5ca",
|
|
226
|
+
white: "#b8c0e0",
|
|
227
|
+
brightBlack: "#5b6078",
|
|
228
|
+
brightRed: "#ed8796",
|
|
229
|
+
brightGreen: "#a6da95",
|
|
230
|
+
brightYellow: "#eed49f",
|
|
231
|
+
brightBlue: "#8aadf4",
|
|
232
|
+
brightMagenta: "#f5bde6",
|
|
233
|
+
brightCyan: "#8bd5ca",
|
|
234
|
+
brightWhite: "#a5adcb",
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
const CATPPUCCIN_FRAPPE = {
|
|
238
|
+
id: "catppuccin-frappe",
|
|
239
|
+
name: "Catppuccin Frappé",
|
|
240
|
+
source: "catppuccin/wezterm + style-guide",
|
|
241
|
+
colors: {
|
|
242
|
+
background: "#303446",
|
|
243
|
+
foreground: "#c6d0f5",
|
|
244
|
+
cursor: "#f2d5cf",
|
|
245
|
+
cursorAccent: "#232634",
|
|
246
|
+
selectionBackground: "#626880",
|
|
247
|
+
selectionForeground: "#c6d0f5",
|
|
248
|
+
black: "#51576d",
|
|
249
|
+
red: "#e78284",
|
|
250
|
+
green: "#a6d189",
|
|
251
|
+
yellow: "#e5c890",
|
|
252
|
+
blue: "#8caaee",
|
|
253
|
+
magenta: "#f4b8e4",
|
|
254
|
+
cyan: "#81c8be",
|
|
255
|
+
white: "#b5bfe2",
|
|
256
|
+
brightBlack: "#626880",
|
|
257
|
+
brightRed: "#e78284",
|
|
258
|
+
brightGreen: "#a6d189",
|
|
259
|
+
brightYellow: "#e5c890",
|
|
260
|
+
brightBlue: "#8caaee",
|
|
261
|
+
brightMagenta: "#f4b8e4",
|
|
262
|
+
brightCyan: "#81c8be",
|
|
263
|
+
brightWhite: "#a5adce",
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
const NORD = {
|
|
267
|
+
id: "nord",
|
|
268
|
+
name: "Nord",
|
|
269
|
+
source: "arcticicestudio/nord-visual-studio-code",
|
|
270
|
+
colors: {
|
|
271
|
+
background: "#2e3440",
|
|
272
|
+
foreground: "#d8dee9",
|
|
273
|
+
cursor: "#d8dee9",
|
|
274
|
+
cursorAccent: "#2e3440",
|
|
275
|
+
selectionBackground: "#434c5e",
|
|
276
|
+
selectionForeground: "#eceff4",
|
|
277
|
+
black: "#3b4252",
|
|
278
|
+
red: "#bf616a",
|
|
279
|
+
green: "#a3be8c",
|
|
280
|
+
yellow: "#ebcb8b",
|
|
281
|
+
blue: "#81a1c1",
|
|
282
|
+
magenta: "#b48ead",
|
|
283
|
+
cyan: "#88c0d0",
|
|
284
|
+
white: "#e5e9f0",
|
|
285
|
+
brightBlack: "#4c566a",
|
|
286
|
+
brightRed: "#bf616a",
|
|
287
|
+
brightGreen: "#a3be8c",
|
|
288
|
+
brightYellow: "#ebcb8b",
|
|
289
|
+
brightBlue: "#81a1c1",
|
|
290
|
+
brightMagenta: "#b48ead",
|
|
291
|
+
brightCyan: "#8fbcbb",
|
|
292
|
+
brightWhite: "#eceff4",
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
const GRUVBOX_DARK_MEDIUM = {
|
|
296
|
+
id: "gruvbox-dark",
|
|
297
|
+
name: "Gruvbox Dark (Medium)",
|
|
298
|
+
source: "jdinhify/vscode-theme-gruvbox",
|
|
299
|
+
colors: {
|
|
300
|
+
background: "#282828",
|
|
301
|
+
foreground: "#ebdbb2",
|
|
302
|
+
cursor: "#ebdbb2",
|
|
303
|
+
cursorAccent: "#282828",
|
|
304
|
+
selectionBackground: "#504945",
|
|
305
|
+
selectionForeground: "#ebdbb2",
|
|
306
|
+
black: "#3c3836",
|
|
307
|
+
red: "#cc241d",
|
|
308
|
+
green: "#98971a",
|
|
309
|
+
yellow: "#d79921",
|
|
310
|
+
blue: "#458588",
|
|
311
|
+
magenta: "#b16286",
|
|
312
|
+
cyan: "#689d6a",
|
|
313
|
+
white: "#a89984",
|
|
314
|
+
brightBlack: "#928374",
|
|
315
|
+
brightRed: "#fb4934",
|
|
316
|
+
brightGreen: "#b8bb26",
|
|
317
|
+
brightYellow: "#fabd2f",
|
|
318
|
+
brightBlue: "#83a598",
|
|
319
|
+
brightMagenta: "#d3869b",
|
|
320
|
+
brightCyan: "#8ec07c",
|
|
321
|
+
brightWhite: "#ebdbb2",
|
|
322
|
+
},
|
|
323
|
+
};
|
|
324
|
+
const NIGHT_OWL = {
|
|
325
|
+
id: "night-owl",
|
|
326
|
+
name: "Night Owl",
|
|
327
|
+
source: "sdras/night-owl-vscode-theme",
|
|
328
|
+
colors: {
|
|
329
|
+
background: "#011627",
|
|
330
|
+
foreground: "#d6deeb",
|
|
331
|
+
cursor: "#80a4c2",
|
|
332
|
+
cursorAccent: "#011627",
|
|
333
|
+
selectionBackground: "#1b90dd",
|
|
334
|
+
selectionForeground: "#d6deeb",
|
|
335
|
+
black: "#011627",
|
|
336
|
+
red: "#ef5350",
|
|
337
|
+
green: "#22da6e",
|
|
338
|
+
yellow: "#c5e478",
|
|
339
|
+
blue: "#82aaff",
|
|
340
|
+
magenta: "#c792ea",
|
|
341
|
+
cyan: "#21c7a8",
|
|
342
|
+
white: "#ffffff",
|
|
343
|
+
brightBlack: "#575656",
|
|
344
|
+
brightRed: "#ef5350",
|
|
345
|
+
brightGreen: "#22da6e",
|
|
346
|
+
brightYellow: "#ffeb95",
|
|
347
|
+
brightBlue: "#82aaff",
|
|
348
|
+
brightMagenta: "#c792ea",
|
|
349
|
+
brightCyan: "#7fdbca",
|
|
350
|
+
brightWhite: "#ffffff",
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
const GITHUB_DARK = {
|
|
354
|
+
id: "github-dark",
|
|
355
|
+
name: "GitHub Dark Default",
|
|
356
|
+
source: "primer/github-vscode-theme + @primer/primitives",
|
|
357
|
+
colors: {
|
|
358
|
+
background: "#0d1117",
|
|
359
|
+
foreground: "#e6edf3",
|
|
360
|
+
cursor: "#e6edf3",
|
|
361
|
+
cursorAccent: "#0d1117",
|
|
362
|
+
selectionBackground: "#264f78",
|
|
363
|
+
selectionForeground: "#e6edf3",
|
|
364
|
+
black: "#484f58",
|
|
365
|
+
red: "#ff7b72",
|
|
366
|
+
green: "#3fb950",
|
|
367
|
+
yellow: "#d29922",
|
|
368
|
+
blue: "#58a6ff",
|
|
369
|
+
magenta: "#bc8cff",
|
|
370
|
+
cyan: "#39c5cf",
|
|
371
|
+
white: "#b1bac4",
|
|
372
|
+
brightBlack: "#6e7681",
|
|
373
|
+
brightRed: "#ffa198",
|
|
374
|
+
brightGreen: "#56d364",
|
|
375
|
+
brightYellow: "#e3b341",
|
|
376
|
+
brightBlue: "#79c0ff",
|
|
377
|
+
brightMagenta: "#d2a8ff",
|
|
378
|
+
brightCyan: "#56d4dd",
|
|
379
|
+
brightWhite: "#ffffff",
|
|
380
|
+
},
|
|
381
|
+
};
|
|
382
|
+
const SOLARIZED_DARK = {
|
|
383
|
+
id: "solarized-dark",
|
|
384
|
+
name: "Solarized Dark",
|
|
385
|
+
source: "vscode/extensions/theme-solarized-dark",
|
|
386
|
+
colors: {
|
|
387
|
+
background: "#002b36",
|
|
388
|
+
foreground: "#839496",
|
|
389
|
+
cursor: "#d30102",
|
|
390
|
+
cursorAccent: "#002b36",
|
|
391
|
+
selectionBackground: "#274642",
|
|
392
|
+
selectionForeground: "#93a1a1",
|
|
393
|
+
black: "#073642",
|
|
394
|
+
red: "#dc322f",
|
|
395
|
+
green: "#859900",
|
|
396
|
+
yellow: "#b58900",
|
|
397
|
+
blue: "#268bd2",
|
|
398
|
+
magenta: "#d33682",
|
|
399
|
+
cyan: "#2aa198",
|
|
400
|
+
white: "#eee8d5",
|
|
401
|
+
brightBlack: "#002b36",
|
|
402
|
+
brightRed: "#cb4b16",
|
|
403
|
+
brightGreen: "#586e75",
|
|
404
|
+
brightYellow: "#657b83",
|
|
405
|
+
brightBlue: "#839496",
|
|
406
|
+
brightMagenta: "#6c71c4",
|
|
407
|
+
brightCyan: "#93a1a1",
|
|
408
|
+
brightWhite: "#fdf6e3",
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
const AYU_MIRAGE = {
|
|
412
|
+
id: "ayu-mirage",
|
|
413
|
+
name: "Ayu Mirage",
|
|
414
|
+
source: "ayu-theme/vscode-ayu",
|
|
415
|
+
colors: {
|
|
416
|
+
background: "#1f2430",
|
|
417
|
+
foreground: "#cccac2",
|
|
418
|
+
cursor: "#ffcc66",
|
|
419
|
+
cursorAccent: "#1f2430",
|
|
420
|
+
selectionBackground: "#34455a",
|
|
421
|
+
selectionForeground: "#cccac2",
|
|
422
|
+
black: "#171b24",
|
|
423
|
+
red: "#f28273",
|
|
424
|
+
green: "#87d96c",
|
|
425
|
+
yellow: "#fcca60",
|
|
426
|
+
blue: "#6acdff",
|
|
427
|
+
magenta: "#ddbbff",
|
|
428
|
+
cyan: "#93e2c8",
|
|
429
|
+
white: "#c7c7c7",
|
|
430
|
+
brightBlack: "#686868",
|
|
431
|
+
brightRed: "#f28779",
|
|
432
|
+
brightGreen: "#d5ff80",
|
|
433
|
+
brightYellow: "#ffcd66",
|
|
434
|
+
brightBlue: "#73d0ff",
|
|
435
|
+
brightMagenta: "#dfbfff",
|
|
436
|
+
brightCyan: "#95e6cb",
|
|
437
|
+
brightWhite: "#ffffff",
|
|
438
|
+
},
|
|
439
|
+
};
|
|
440
|
+
const SYNTHWAVE_84 = {
|
|
441
|
+
id: "synthwave-84",
|
|
442
|
+
name: "SynthWave '84",
|
|
443
|
+
source: "robb0wen/synthwave-vscode",
|
|
444
|
+
colors: {
|
|
445
|
+
background: "#262335",
|
|
446
|
+
foreground: "#ffffff",
|
|
447
|
+
cursor: "#03edf9",
|
|
448
|
+
cursorAccent: "#262335",
|
|
449
|
+
selectionBackground: "#463465",
|
|
450
|
+
selectionForeground: "#ffffff",
|
|
451
|
+
black: "#2a2139",
|
|
452
|
+
red: "#fe4450",
|
|
453
|
+
green: "#72f1b8",
|
|
454
|
+
yellow: "#f3e70f",
|
|
455
|
+
blue: "#03edf9",
|
|
456
|
+
magenta: "#ff7edb",
|
|
457
|
+
cyan: "#03edf9",
|
|
458
|
+
white: "#ffffff",
|
|
459
|
+
brightBlack: "#495495",
|
|
460
|
+
brightRed: "#fe4450",
|
|
461
|
+
brightGreen: "#72f1b8",
|
|
462
|
+
brightYellow: "#fede5d",
|
|
463
|
+
brightBlue: "#03edf9",
|
|
464
|
+
brightMagenta: "#ff7edb",
|
|
465
|
+
brightCyan: "#03edf9",
|
|
466
|
+
brightWhite: "#ffffff",
|
|
467
|
+
},
|
|
468
|
+
};
|
|
469
|
+
const GITHUB_LIGHT = {
|
|
470
|
+
id: "github-light",
|
|
471
|
+
name: "GitHub Light Default",
|
|
472
|
+
source: "primer/github-vscode-theme + @primer/primitives",
|
|
473
|
+
colors: {
|
|
474
|
+
background: "#ffffff",
|
|
475
|
+
foreground: "#1f2328",
|
|
476
|
+
cursor: "#044cbd",
|
|
477
|
+
cursorAccent: "#ffffff",
|
|
478
|
+
selectionBackground: "#0576cb",
|
|
479
|
+
selectionForeground: "#ffffff",
|
|
480
|
+
black: "#24292f",
|
|
481
|
+
red: "#cf222e",
|
|
482
|
+
green: "#116329",
|
|
483
|
+
yellow: "#4d2d00",
|
|
484
|
+
blue: "#0969da",
|
|
485
|
+
magenta: "#8250df",
|
|
486
|
+
cyan: "#1b7c83",
|
|
487
|
+
white: "#6e7781",
|
|
488
|
+
brightBlack: "#57606a",
|
|
489
|
+
brightRed: "#a40e26",
|
|
490
|
+
brightGreen: "#1a7f37",
|
|
491
|
+
brightYellow: "#633c01",
|
|
492
|
+
brightBlue: "#218bff",
|
|
493
|
+
brightMagenta: "#a475f9",
|
|
494
|
+
brightCyan: "#3192aa",
|
|
495
|
+
brightWhite: "#8c959f",
|
|
496
|
+
},
|
|
497
|
+
};
|
|
498
|
+
const SOLARIZED_LIGHT = {
|
|
499
|
+
id: "solarized-light",
|
|
500
|
+
name: "Solarized Light",
|
|
501
|
+
source: "vscode/extensions/theme-solarized-light",
|
|
502
|
+
colors: {
|
|
503
|
+
background: "#fdf6e3",
|
|
504
|
+
foreground: "#657b83",
|
|
505
|
+
cursor: "#657b83",
|
|
506
|
+
cursorAccent: "#fdf6e3",
|
|
507
|
+
selectionBackground: "#eee8d5",
|
|
508
|
+
selectionForeground: "#657b83",
|
|
509
|
+
black: "#073642",
|
|
510
|
+
red: "#dc322f",
|
|
511
|
+
green: "#859900",
|
|
512
|
+
yellow: "#b58900",
|
|
513
|
+
blue: "#268bd2",
|
|
514
|
+
magenta: "#d33682",
|
|
515
|
+
cyan: "#2aa198",
|
|
516
|
+
white: "#eee8d5",
|
|
517
|
+
brightBlack: "#002b36",
|
|
518
|
+
brightRed: "#cb4b16",
|
|
519
|
+
brightGreen: "#586e75",
|
|
520
|
+
brightYellow: "#657b83",
|
|
521
|
+
brightBlue: "#839496",
|
|
522
|
+
brightMagenta: "#6c71c4",
|
|
523
|
+
brightCyan: "#93a1a1",
|
|
524
|
+
brightWhite: "#fdf6e3",
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
const CATPPUCCIN_LATTE = {
|
|
528
|
+
id: "catppuccin-latte",
|
|
529
|
+
name: "Catppuccin Latte",
|
|
530
|
+
source: "catppuccin/wezterm + style-guide",
|
|
531
|
+
colors: {
|
|
532
|
+
background: "#eff1f5",
|
|
533
|
+
foreground: "#4c4f69",
|
|
534
|
+
cursor: "#dc8a78",
|
|
535
|
+
cursorAccent: "#eff1f5",
|
|
536
|
+
selectionBackground: "#acbdcf",
|
|
537
|
+
selectionForeground: "#4c4f69",
|
|
538
|
+
black: "#5c5f77",
|
|
539
|
+
red: "#d20f39",
|
|
540
|
+
green: "#40a02b",
|
|
541
|
+
yellow: "#df8e1d",
|
|
542
|
+
blue: "#1e66f5",
|
|
543
|
+
magenta: "#ea76cb",
|
|
544
|
+
cyan: "#209fb5",
|
|
545
|
+
white: "#bcc0cc",
|
|
546
|
+
brightBlack: "#6c6f85",
|
|
547
|
+
brightRed: "#d20f39",
|
|
548
|
+
brightGreen: "#40a02b",
|
|
549
|
+
brightYellow: "#df8e1d",
|
|
550
|
+
brightBlue: "#1e66f5",
|
|
551
|
+
brightMagenta: "#ea76cb",
|
|
552
|
+
brightCyan: "#209fb5",
|
|
553
|
+
brightWhite: "#6c6f85",
|
|
554
|
+
},
|
|
555
|
+
};
|
|
556
|
+
export const TERMINAL_THEMES = [
|
|
557
|
+
VESPER,
|
|
558
|
+
AYU_MIRAGE,
|
|
559
|
+
CATPPUCCIN_FRAPPE,
|
|
560
|
+
CATPPUCCIN_MACCHIATO,
|
|
561
|
+
CATPPUCCIN_MOCHA,
|
|
562
|
+
DRACULA,
|
|
563
|
+
GITHUB_DARK,
|
|
564
|
+
GRUVBOX_DARK_MEDIUM,
|
|
565
|
+
MONOKAI,
|
|
566
|
+
NIGHT_OWL,
|
|
567
|
+
NORD,
|
|
568
|
+
ONE_DARK_PRO,
|
|
569
|
+
SOLARIZED_DARK,
|
|
570
|
+
SYNTHWAVE_84,
|
|
571
|
+
TOKYO_NIGHT,
|
|
572
|
+
TOKYO_NIGHT_STORM,
|
|
573
|
+
GITHUB_LIGHT,
|
|
574
|
+
SOLARIZED_LIGHT,
|
|
575
|
+
CATPPUCCIN_LATTE,
|
|
576
|
+
];
|
|
577
|
+
export const DEFAULT_TERMINAL_THEME_ID = VESPER.id;
|
|
578
|
+
// The light theme the "Auto (system)" entry resolves to when the desktop is in
|
|
579
|
+
// a light color-scheme. The dark default is VESPER (DEFAULT_TERMINAL_THEME_ID).
|
|
580
|
+
export const LIGHT_DEFAULT_TERMINAL_THEME_ID = GITHUB_LIGHT.id;
|
|
581
|
+
// A pseudo-theme id: not a real TerminalTheme (no colors) — the caller resolves
|
|
582
|
+
// it to the dark or light default from the host's prefers-color-scheme so a
|
|
583
|
+
// Linux desktop's GTK color-scheme setting drives the terminal appearance.
|
|
584
|
+
export const AUTO_THEME_ID = "auto";
|
|
585
|
+
export const resolveAutoTheme = (prefersDark) => prefersDark ? VESPER : GITHUB_LIGHT;
|
|
586
|
+
// The set of ids a user can select as the active theme: the built-ins plus the
|
|
587
|
+
// "auto" pseudo-id. Custom (imported) themes are added by the caller. Used by
|
|
588
|
+
// the daemon to validate PUT /api/themes/active and to complete `theme set`.
|
|
589
|
+
export const BUILTIN_THEME_IDS = [
|
|
590
|
+
AUTO_THEME_ID,
|
|
591
|
+
...TERMINAL_THEMES.map((theme) => theme.id),
|
|
592
|
+
];
|
|
593
|
+
export const isBuiltinThemeId = (id) => id === AUTO_THEME_ID || TERMINAL_THEMES.some((theme) => theme.id === id);
|
|
594
|
+
// Resolve a theme id against the built-ins plus any user-imported custom
|
|
595
|
+
// themes (kept in ~/.localterm/themes.json by the daemon). The auto id is
|
|
596
|
+
// handled by the caller (resolveAutoTheme) since it needs the live
|
|
597
|
+
// prefers-color-scheme; passing it here falls back to the default, which the
|
|
598
|
+
// caller never does.
|
|
599
|
+
export const findTerminalThemeById = (id, customThemes = []) => {
|
|
600
|
+
if (!id)
|
|
601
|
+
return VESPER;
|
|
602
|
+
return (TERMINAL_THEMES.find((theme) => theme.id === id) ??
|
|
603
|
+
customThemes.find((theme) => theme.id === id) ??
|
|
604
|
+
VESPER);
|
|
605
|
+
};
|
|
606
|
+
//# sourceMappingURL=terminal-themes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-themes.js","sourceRoot":"","sources":["../src/terminal-themes.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,8EAA8E;AAC9E,yEAAyE;AACzE,wEAAwE;AAyCxE,MAAM,MAAM,GAAkB;IAC5B,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,sBAAsB;IAC9B,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;QACvB,mBAAmB,EAAE,SAAS;QAC9B,mBAAmB,EAAE,SAAS;QAC9B,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QACjB,IAA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AAyC,EAAE,EAC5B,EAAE;IACjB,IAAI,CAAC,EAAE;QAAE,OAAO,MAAM,CAAC;IACvB,OAAO,CACL,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;QAChD,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;QAC7C,MAAM,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TerminalTheme } from "./terminal-themes.js";
|
|
2
|
+
export type ImportedThemeResult = {
|
|
3
|
+
theme: TerminalTheme;
|
|
4
|
+
} | {
|
|
5
|
+
error: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const parseImportedTheme: (text: string, filename: string | undefined) => ImportedThemeResult;
|
|
8
|
+
//# sourceMappingURL=theme-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-parser.d.ts","sourceRoot":"","sources":["../src/theme-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,sBAAsB,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AA8R/E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,UAAU,MAAM,GAAG,SAAS,KAC3B,mBASF,CAAC"}
|