@tanstack/devtools-ui 0.5.3 → 0.7.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.
Files changed (63) hide show
  1. package/dist/assets/BricolageGrotesque-Bold-BIJrwikb.ttf +0 -0
  2. package/dist/assets/Inter-latin-BwkfbSeq.woff2 +0 -0
  3. package/dist/esm/assets/fonts/BricolageGrotesque-Bold.js +6 -0
  4. package/dist/esm/assets/fonts/BricolageGrotesque-Bold.js.map +1 -0
  5. package/dist/esm/assets/fonts/Inter-latin.js +6 -0
  6. package/dist/esm/assets/fonts/Inter-latin.js.map +1 -0
  7. package/dist/esm/components/button.js +3 -3
  8. package/dist/esm/components/button.js.map +1 -1
  9. package/dist/esm/components/checkbox.js +16 -10
  10. package/dist/esm/components/checkbox.js.map +1 -1
  11. package/dist/esm/components/header.js +4 -4
  12. package/dist/esm/components/header.js.map +1 -1
  13. package/dist/esm/components/icons.d.ts +1 -1
  14. package/dist/esm/components/icons.js +4 -8
  15. package/dist/esm/components/icons.js.map +1 -1
  16. package/dist/esm/components/input.js +16 -9
  17. package/dist/esm/components/input.js.map +1 -1
  18. package/dist/esm/components/logo.js +3 -3
  19. package/dist/esm/components/logo.js.map +1 -1
  20. package/dist/esm/components/main-panel.js +3 -3
  21. package/dist/esm/components/main-panel.js.map +1 -1
  22. package/dist/esm/components/section.js +6 -6
  23. package/dist/esm/components/section.js.map +1 -1
  24. package/dist/esm/components/select.js +24 -13
  25. package/dist/esm/components/select.js.map +1 -1
  26. package/dist/esm/components/tag.js +3 -3
  27. package/dist/esm/components/tag.js.map +1 -1
  28. package/dist/esm/components/theme.d.ts +1 -1
  29. package/dist/esm/components/theme.js +15 -5
  30. package/dist/esm/components/theme.js.map +1 -1
  31. package/dist/esm/components/tree.js +114 -62
  32. package/dist/esm/components/tree.js.map +1 -1
  33. package/dist/esm/index.d.ts +1 -1
  34. package/dist/esm/index.js +2 -2
  35. package/dist/esm/internal.d.ts +2 -0
  36. package/dist/esm/internal.js +2 -0
  37. package/dist/esm/styles/semantic-theme.d.ts +420 -0
  38. package/dist/esm/styles/semantic-theme.js +283 -0
  39. package/dist/esm/styles/semantic-theme.js.map +1 -0
  40. package/dist/esm/styles/use-styles.d.ts +3 -1
  41. package/dist/esm/styles/use-styles.js +304 -372
  42. package/dist/esm/styles/use-styles.js.map +1 -1
  43. package/package.json +15 -3
  44. package/src/assets/fonts/OFL-Bricolage-Grotesque.txt +93 -0
  45. package/src/assets/fonts/OFL-Inter.txt +92 -0
  46. package/src/components/button.tsx +3 -3
  47. package/src/components/checkbox.tsx +9 -5
  48. package/src/components/header.tsx +10 -4
  49. package/src/components/icons.tsx +5 -5
  50. package/src/components/input.tsx +14 -5
  51. package/src/components/logo.tsx +3 -2
  52. package/src/components/main-panel.tsx +3 -2
  53. package/src/components/section.tsx +15 -7
  54. package/src/components/select.tsx +29 -10
  55. package/src/components/tag.tsx +7 -3
  56. package/src/components/theme.tsx +18 -5
  57. package/src/components/tree.tsx +96 -29
  58. package/src/index.ts +1 -1
  59. package/src/internal.ts +11 -0
  60. package/src/styles/semantic-theme.ts +345 -0
  61. package/src/styles/use-styles.ts +318 -310
  62. package/dist/esm/styles/tokens.js +0 -301
  63. package/dist/esm/styles/tokens.js.map +0 -1
@@ -0,0 +1,420 @@
1
+ import { TanStackDevtoolsTheme } from '../components/theme.js';
2
+ export declare const DEVTOOLS_FONT_STYLE_ID = "tanstack-devtools-fonts";
3
+ export declare const DEVTOOLS_FORCED_COLORS_STYLE_ID = "tanstack-devtools-forced-colors";
4
+ export declare const forcedColorsCss = "\n@media (forced-colors: active) {\n [data-tsd-surface] { forced-color-adjust: auto; background: Canvas; color: CanvasText; }\n [data-tsd-control] { forced-color-adjust: auto; background: ButtonFace; color: ButtonText; border-color: ButtonText; }\n [data-tsd-selected=\"true\"] { background: Highlight; color: HighlightText; border-color: HighlightText; }\n [data-tsd-separator] { border-color: CanvasText; }\n [data-tsd-separator=\"resize\"] { border: 1px solid CanvasText; }\n [data-tsd-control]:focus-visible { outline: 2px solid ButtonText; outline-offset: 2px; }\n}";
5
+ export declare const devtoolsFontCss: string;
6
+ export declare function ensureDevtoolsFonts(targetDocument: Document): void;
7
+ export declare function ensureDevtoolsStyles(targetDocument: Document): void;
8
+ export type StatusRole = 'success' | 'warning' | 'error' | 'info' | 'neutral';
9
+ type DeepReadonly<T> = T extends (...args: Array<never>) => unknown ? T : T extends object ? {
10
+ readonly [Key in keyof T]: DeepReadonly<T[Key]>;
11
+ } : T;
12
+ export type SemanticTheme = DeepReadonly<{
13
+ font: {
14
+ display: string;
15
+ body: string;
16
+ mono: string;
17
+ };
18
+ space: {
19
+ 1: '4px';
20
+ 2: '8px';
21
+ 3: '12px';
22
+ 4: '16px';
23
+ };
24
+ gap: {
25
+ tight: '4px';
26
+ control: '8px';
27
+ section: '12px';
28
+ sectionLarge: '16px';
29
+ };
30
+ padding: {
31
+ controlBlock: '6px';
32
+ controlInline: '8px';
33
+ };
34
+ type: {
35
+ bodyXs: {
36
+ size: '12px';
37
+ lineHeight: '17px';
38
+ weight: 400;
39
+ };
40
+ bodySm: {
41
+ size: '14px';
42
+ lineHeight: '20px';
43
+ weight: 400;
44
+ };
45
+ bodyMd: {
46
+ size: '16px';
47
+ lineHeight: '24px';
48
+ weight: 300;
49
+ };
50
+ labelSm: {
51
+ size: '12px';
52
+ lineHeight: '14px';
53
+ weight: 500;
54
+ tracking: '0.5px';
55
+ };
56
+ headingCompact: {
57
+ size: '14px';
58
+ lineHeight: '18px';
59
+ weight: 700;
60
+ };
61
+ headingPane: {
62
+ size: '16px';
63
+ lineHeight: '21px';
64
+ weight: 700;
65
+ };
66
+ };
67
+ radius: {
68
+ control: '4px';
69
+ group: '6px';
70
+ overlay: '8px';
71
+ };
72
+ shadow: {
73
+ xs: string;
74
+ sm: string;
75
+ overlay: string;
76
+ };
77
+ motion: {
78
+ strip: '120ms';
79
+ graceMs: 400;
80
+ };
81
+ color: {
82
+ surface: {
83
+ app: string;
84
+ workspace: string;
85
+ subtle: string;
86
+ elevated: string;
87
+ brand: string;
88
+ };
89
+ text: {
90
+ primary: string;
91
+ secondary: string;
92
+ muted: string;
93
+ mutedOnBrand: string;
94
+ inverse: string;
95
+ link: string;
96
+ };
97
+ border: {
98
+ decorative: string;
99
+ control: string;
100
+ focus: string;
101
+ };
102
+ state: {
103
+ hover: string;
104
+ pressed: string;
105
+ selectionFill: string;
106
+ selectionText: string;
107
+ };
108
+ status: Record<StatusRole, {
109
+ subtleFill: string;
110
+ border: string;
111
+ text: string;
112
+ solidFill: string;
113
+ onFill: string;
114
+ }>;
115
+ syntax: {
116
+ keyword: string;
117
+ string: string;
118
+ number: string;
119
+ comment: string;
120
+ property: string;
121
+ punctuation: string;
122
+ selectionFill: string;
123
+ selectionText: string;
124
+ };
125
+ };
126
+ }>;
127
+ export declare const semanticThemes: Readonly<{
128
+ readonly light: {
129
+ readonly color: {
130
+ readonly surface: {
131
+ readonly app: "#ffffff";
132
+ readonly workspace: "#ffffff";
133
+ readonly subtle: "#fafafa";
134
+ readonly elevated: "#ffffff";
135
+ readonly brand: "#eeebd4";
136
+ };
137
+ readonly text: {
138
+ readonly primary: "#111111";
139
+ readonly secondary: "#3e3529";
140
+ readonly muted: "#756c5b";
141
+ readonly mutedOnBrand: "#3e3529";
142
+ readonly inverse: "#ffffff";
143
+ readonly link: "#003e53";
144
+ };
145
+ readonly border: {
146
+ readonly decorative: "#eeebd4";
147
+ readonly control: "#756c5b";
148
+ readonly focus: "#003e53";
149
+ };
150
+ readonly state: {
151
+ readonly hover: "#1111110f";
152
+ readonly pressed: "#1111111f";
153
+ readonly selectionFill: "#3e3529";
154
+ readonly selectionText: "#ffffff";
155
+ };
156
+ readonly status: {
157
+ readonly success: {
158
+ readonly subtleFill: "#d8f0da";
159
+ readonly border: "#1d4226";
160
+ readonly text: "#1d4226";
161
+ readonly solidFill: "#1d4226";
162
+ readonly onFill: "#ffffff";
163
+ };
164
+ readonly warning: {
165
+ readonly subtleFill: "#fef6cc";
166
+ readonly border: "#624a00";
167
+ readonly text: "#624a00";
168
+ readonly solidFill: "#624a00";
169
+ readonly onFill: "#ffffff";
170
+ };
171
+ readonly error: {
172
+ readonly subtleFill: "#f9d8c4";
173
+ readonly border: "#5f1a06";
174
+ readonly text: "#5f1a06";
175
+ readonly solidFill: "#5f1a06";
176
+ readonly onFill: "#ffffff";
177
+ };
178
+ readonly info: {
179
+ readonly subtleFill: "#d8f0f3";
180
+ readonly border: "#003e53";
181
+ readonly text: "#003e53";
182
+ readonly solidFill: "#003e53";
183
+ readonly onFill: "#ffffff";
184
+ };
185
+ readonly neutral: {
186
+ readonly subtleFill: "#eeebd4";
187
+ readonly border: "#756c5b";
188
+ readonly text: "#3e3529";
189
+ readonly solidFill: "#3e3529";
190
+ readonly onFill: "#ffffff";
191
+ };
192
+ };
193
+ readonly syntax: {
194
+ readonly keyword: "#5f1a06";
195
+ readonly string: "#1d4226";
196
+ readonly number: "#541f5d";
197
+ readonly comment: "#756c5b";
198
+ readonly property: "#003e53";
199
+ readonly punctuation: "#3e3529";
200
+ readonly selectionFill: "#d8f0f3";
201
+ readonly selectionText: "#003e53";
202
+ };
203
+ };
204
+ readonly font: {
205
+ display: string;
206
+ body: string;
207
+ mono: string;
208
+ };
209
+ readonly space: {
210
+ 1: "4px";
211
+ 2: "8px";
212
+ 3: "12px";
213
+ 4: "16px";
214
+ };
215
+ readonly gap: {
216
+ tight: "4px";
217
+ control: "8px";
218
+ section: "12px";
219
+ sectionLarge: "16px";
220
+ };
221
+ readonly padding: {
222
+ controlBlock: "6px";
223
+ controlInline: "8px";
224
+ };
225
+ readonly type: {
226
+ bodyXs: {
227
+ size: "12px";
228
+ lineHeight: "17px";
229
+ weight: 400;
230
+ };
231
+ bodySm: {
232
+ size: "14px";
233
+ lineHeight: "20px";
234
+ weight: 400;
235
+ };
236
+ bodyMd: {
237
+ size: "16px";
238
+ lineHeight: "24px";
239
+ weight: 300;
240
+ };
241
+ labelSm: {
242
+ size: "12px";
243
+ lineHeight: "14px";
244
+ weight: 500;
245
+ tracking: "0.5px";
246
+ };
247
+ headingCompact: {
248
+ size: "14px";
249
+ lineHeight: "18px";
250
+ weight: 700;
251
+ };
252
+ headingPane: {
253
+ size: "16px";
254
+ lineHeight: "21px";
255
+ weight: 700;
256
+ };
257
+ };
258
+ readonly radius: {
259
+ control: "4px";
260
+ group: "6px";
261
+ overlay: "8px";
262
+ };
263
+ readonly shadow: {
264
+ xs: string;
265
+ sm: string;
266
+ overlay: string;
267
+ };
268
+ readonly motion: {
269
+ strip: "120ms";
270
+ graceMs: 400;
271
+ };
272
+ };
273
+ readonly dark: {
274
+ readonly color: {
275
+ readonly surface: {
276
+ readonly app: "#111111";
277
+ readonly workspace: "#1f1f1f";
278
+ readonly subtle: "#1b1b1b";
279
+ readonly elevated: "#2b2b2b";
280
+ readonly brand: "#111111";
281
+ };
282
+ readonly text: {
283
+ readonly primary: "#ffffff";
284
+ readonly secondary: "#aea691";
285
+ readonly muted: "#aea691";
286
+ readonly mutedOnBrand: "#aea691";
287
+ readonly inverse: "#111111";
288
+ readonly link: "#9cd5e2";
289
+ };
290
+ readonly border: {
291
+ readonly decorative: "#2d2d2d";
292
+ readonly control: "#aea691";
293
+ readonly focus: "#61adbf";
294
+ };
295
+ readonly state: {
296
+ readonly hover: "#ffffff14";
297
+ readonly pressed: "#ffffff1f";
298
+ readonly selectionFill: "#c5c3bf";
299
+ readonly selectionText: "#111111";
300
+ };
301
+ readonly status: {
302
+ readonly success: {
303
+ readonly subtleFill: "#1d4226";
304
+ readonly border: "#69bc75";
305
+ readonly text: "#a2e1a9";
306
+ readonly solidFill: "#69bc75";
307
+ readonly onFill: "#111111";
308
+ };
309
+ readonly warning: {
310
+ readonly subtleFill: "#624a00";
311
+ readonly border: "#f4d648";
312
+ readonly text: "#fae884";
313
+ readonly solidFill: "#f4d648";
314
+ readonly onFill: "#111111";
315
+ };
316
+ readonly error: {
317
+ readonly subtleFill: "#5f1a06";
318
+ readonly border: "#e06e49";
319
+ readonly text: "#edaa8d";
320
+ readonly solidFill: "#e06e49";
321
+ readonly onFill: "#111111";
322
+ };
323
+ readonly info: {
324
+ readonly subtleFill: "#003e53";
325
+ readonly border: "#61adbf";
326
+ readonly text: "#9cd5e2";
327
+ readonly solidFill: "#61adbf";
328
+ readonly onFill: "#111111";
329
+ };
330
+ readonly neutral: {
331
+ readonly subtleFill: "#2b2b2b";
332
+ readonly border: "#aea691";
333
+ readonly text: "#c5c3bf";
334
+ readonly solidFill: "#c5c3bf";
335
+ readonly onFill: "#111111";
336
+ };
337
+ };
338
+ readonly syntax: {
339
+ readonly keyword: "#e06e49";
340
+ readonly string: "#69bc75";
341
+ readonly number: "#c56dcf";
342
+ readonly comment: "#aea691";
343
+ readonly property: "#61adbf";
344
+ readonly punctuation: "#c5c3bf";
345
+ readonly selectionFill: "#003e53";
346
+ readonly selectionText: "#ffffff";
347
+ };
348
+ };
349
+ readonly font: {
350
+ display: string;
351
+ body: string;
352
+ mono: string;
353
+ };
354
+ readonly space: {
355
+ 1: "4px";
356
+ 2: "8px";
357
+ 3: "12px";
358
+ 4: "16px";
359
+ };
360
+ readonly gap: {
361
+ tight: "4px";
362
+ control: "8px";
363
+ section: "12px";
364
+ sectionLarge: "16px";
365
+ };
366
+ readonly padding: {
367
+ controlBlock: "6px";
368
+ controlInline: "8px";
369
+ };
370
+ readonly type: {
371
+ bodyXs: {
372
+ size: "12px";
373
+ lineHeight: "17px";
374
+ weight: 400;
375
+ };
376
+ bodySm: {
377
+ size: "14px";
378
+ lineHeight: "20px";
379
+ weight: 400;
380
+ };
381
+ bodyMd: {
382
+ size: "16px";
383
+ lineHeight: "24px";
384
+ weight: 300;
385
+ };
386
+ labelSm: {
387
+ size: "12px";
388
+ lineHeight: "14px";
389
+ weight: 500;
390
+ tracking: "0.5px";
391
+ };
392
+ headingCompact: {
393
+ size: "14px";
394
+ lineHeight: "18px";
395
+ weight: 700;
396
+ };
397
+ headingPane: {
398
+ size: "16px";
399
+ lineHeight: "21px";
400
+ weight: 700;
401
+ };
402
+ };
403
+ readonly radius: {
404
+ control: "4px";
405
+ group: "6px";
406
+ overlay: "8px";
407
+ };
408
+ readonly shadow: {
409
+ xs: string;
410
+ sm: string;
411
+ overlay: string;
412
+ };
413
+ readonly motion: {
414
+ strip: "120ms";
415
+ graceMs: 400;
416
+ };
417
+ };
418
+ }>;
419
+ export declare function resolveSemanticTheme(theme: TanStackDevtoolsTheme): SemanticTheme;
420
+ export {};
@@ -0,0 +1,283 @@
1
+ import BricolageGrotesque_Bold_default from "../assets/fonts/BricolageGrotesque-Bold.js";
2
+ import Inter_latin_default from "../assets/fonts/Inter-latin.js";
3
+ //#region src/styles/semantic-theme.ts
4
+ var DEVTOOLS_FONT_STYLE_ID = "tanstack-devtools-fonts";
5
+ var DEVTOOLS_FORCED_COLORS_STYLE_ID = "tanstack-devtools-forced-colors";
6
+ var forcedColorsCss = `
7
+ @media (forced-colors: active) {
8
+ [data-tsd-surface] { forced-color-adjust: auto; background: Canvas; color: CanvasText; }
9
+ [data-tsd-control] { forced-color-adjust: auto; background: ButtonFace; color: ButtonText; border-color: ButtonText; }
10
+ [data-tsd-selected="true"] { background: Highlight; color: HighlightText; border-color: HighlightText; }
11
+ [data-tsd-separator] { border-color: CanvasText; }
12
+ [data-tsd-separator="resize"] { border: 1px solid CanvasText; }
13
+ [data-tsd-control]:focus-visible { outline: 2px solid ButtonText; outline-offset: 2px; }
14
+ }`;
15
+ var devtoolsFontCss = `
16
+ @font-face {
17
+ font-family: 'Bricolage Grotesque';
18
+ src: url('${BricolageGrotesque_Bold_default}') format('truetype');
19
+ font-style: normal;
20
+ font-weight: 700;
21
+ font-display: swap;
22
+ }
23
+ @font-face {
24
+ font-family: 'Inter';
25
+ src: url('${Inter_latin_default}') format('woff2');
26
+ font-style: normal;
27
+ font-weight: 100 900;
28
+ font-display: swap;
29
+ }`;
30
+ function ensureDevtoolsFonts(targetDocument) {
31
+ if (targetDocument.getElementById("tanstack-devtools-fonts")) return;
32
+ const style = targetDocument.createElement("style");
33
+ style.id = DEVTOOLS_FONT_STYLE_ID;
34
+ style.textContent = devtoolsFontCss;
35
+ targetDocument.head.append(style);
36
+ }
37
+ function ensureDevtoolsStyles(targetDocument) {
38
+ ensureDevtoolsFonts(targetDocument);
39
+ if (targetDocument.getElementById("tanstack-devtools-forced-colors")) return;
40
+ const style = targetDocument.createElement("style");
41
+ style.id = DEVTOOLS_FORCED_COLORS_STYLE_ID;
42
+ style.textContent = forcedColorsCss;
43
+ targetDocument.head.append(style);
44
+ }
45
+ function deepFreeze(value) {
46
+ for (const nestedValue of Object.values(value)) if (nestedValue !== null && typeof nestedValue === "object") deepFreeze(nestedValue);
47
+ return Object.freeze(value);
48
+ }
49
+ var commonTheme = {
50
+ font: {
51
+ display: "'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif",
52
+ body: "'Inter', ui-sans-serif, system-ui, sans-serif",
53
+ mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"
54
+ },
55
+ space: {
56
+ 1: "4px",
57
+ 2: "8px",
58
+ 3: "12px",
59
+ 4: "16px"
60
+ },
61
+ gap: {
62
+ tight: "4px",
63
+ control: "8px",
64
+ section: "12px",
65
+ sectionLarge: "16px"
66
+ },
67
+ padding: {
68
+ controlBlock: "6px",
69
+ controlInline: "8px"
70
+ },
71
+ type: {
72
+ bodyXs: {
73
+ size: "12px",
74
+ lineHeight: "17px",
75
+ weight: 400
76
+ },
77
+ bodySm: {
78
+ size: "14px",
79
+ lineHeight: "20px",
80
+ weight: 400
81
+ },
82
+ bodyMd: {
83
+ size: "16px",
84
+ lineHeight: "24px",
85
+ weight: 300
86
+ },
87
+ labelSm: {
88
+ size: "12px",
89
+ lineHeight: "14px",
90
+ weight: 500,
91
+ tracking: "0.5px"
92
+ },
93
+ headingCompact: {
94
+ size: "14px",
95
+ lineHeight: "18px",
96
+ weight: 700
97
+ },
98
+ headingPane: {
99
+ size: "16px",
100
+ lineHeight: "21px",
101
+ weight: 700
102
+ }
103
+ },
104
+ radius: {
105
+ control: "4px",
106
+ group: "6px",
107
+ overlay: "8px"
108
+ },
109
+ shadow: {
110
+ xs: "0 1px 2px rgba(0,0,0,0.03)",
111
+ sm: "0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03)",
112
+ overlay: "0 25px 50px -12px rgba(0,0,0,0.20)"
113
+ },
114
+ motion: {
115
+ strip: "120ms",
116
+ graceMs: 400
117
+ }
118
+ };
119
+ var semanticThemes = deepFreeze({
120
+ light: {
121
+ ...commonTheme,
122
+ color: {
123
+ surface: {
124
+ app: "#ffffff",
125
+ workspace: "#ffffff",
126
+ subtle: "#fafafa",
127
+ elevated: "#ffffff",
128
+ brand: "#eeebd4"
129
+ },
130
+ text: {
131
+ primary: "#111111",
132
+ secondary: "#3e3529",
133
+ muted: "#756c5b",
134
+ mutedOnBrand: "#3e3529",
135
+ inverse: "#ffffff",
136
+ link: "#003e53"
137
+ },
138
+ border: {
139
+ decorative: "#eeebd4",
140
+ control: "#756c5b",
141
+ focus: "#003e53"
142
+ },
143
+ state: {
144
+ hover: "#1111110f",
145
+ pressed: "#1111111f",
146
+ selectionFill: "#3e3529",
147
+ selectionText: "#ffffff"
148
+ },
149
+ status: {
150
+ success: {
151
+ subtleFill: "#d8f0da",
152
+ border: "#1d4226",
153
+ text: "#1d4226",
154
+ solidFill: "#1d4226",
155
+ onFill: "#ffffff"
156
+ },
157
+ warning: {
158
+ subtleFill: "#fef6cc",
159
+ border: "#624a00",
160
+ text: "#624a00",
161
+ solidFill: "#624a00",
162
+ onFill: "#ffffff"
163
+ },
164
+ error: {
165
+ subtleFill: "#f9d8c4",
166
+ border: "#5f1a06",
167
+ text: "#5f1a06",
168
+ solidFill: "#5f1a06",
169
+ onFill: "#ffffff"
170
+ },
171
+ info: {
172
+ subtleFill: "#d8f0f3",
173
+ border: "#003e53",
174
+ text: "#003e53",
175
+ solidFill: "#003e53",
176
+ onFill: "#ffffff"
177
+ },
178
+ neutral: {
179
+ subtleFill: "#eeebd4",
180
+ border: "#756c5b",
181
+ text: "#3e3529",
182
+ solidFill: "#3e3529",
183
+ onFill: "#ffffff"
184
+ }
185
+ },
186
+ syntax: {
187
+ keyword: "#5f1a06",
188
+ string: "#1d4226",
189
+ number: "#541f5d",
190
+ comment: "#756c5b",
191
+ property: "#003e53",
192
+ punctuation: "#3e3529",
193
+ selectionFill: "#d8f0f3",
194
+ selectionText: "#003e53"
195
+ }
196
+ }
197
+ },
198
+ dark: {
199
+ ...commonTheme,
200
+ color: {
201
+ surface: {
202
+ app: "#111111",
203
+ workspace: "#1f1f1f",
204
+ subtle: "#1b1b1b",
205
+ elevated: "#2b2b2b",
206
+ brand: "#111111"
207
+ },
208
+ text: {
209
+ primary: "#ffffff",
210
+ secondary: "#aea691",
211
+ muted: "#aea691",
212
+ mutedOnBrand: "#aea691",
213
+ inverse: "#111111",
214
+ link: "#9cd5e2"
215
+ },
216
+ border: {
217
+ decorative: "#2d2d2d",
218
+ control: "#aea691",
219
+ focus: "#61adbf"
220
+ },
221
+ state: {
222
+ hover: "#ffffff14",
223
+ pressed: "#ffffff1f",
224
+ selectionFill: "#c5c3bf",
225
+ selectionText: "#111111"
226
+ },
227
+ status: {
228
+ success: {
229
+ subtleFill: "#1d4226",
230
+ border: "#69bc75",
231
+ text: "#a2e1a9",
232
+ solidFill: "#69bc75",
233
+ onFill: "#111111"
234
+ },
235
+ warning: {
236
+ subtleFill: "#624a00",
237
+ border: "#f4d648",
238
+ text: "#fae884",
239
+ solidFill: "#f4d648",
240
+ onFill: "#111111"
241
+ },
242
+ error: {
243
+ subtleFill: "#5f1a06",
244
+ border: "#e06e49",
245
+ text: "#edaa8d",
246
+ solidFill: "#e06e49",
247
+ onFill: "#111111"
248
+ },
249
+ info: {
250
+ subtleFill: "#003e53",
251
+ border: "#61adbf",
252
+ text: "#9cd5e2",
253
+ solidFill: "#61adbf",
254
+ onFill: "#111111"
255
+ },
256
+ neutral: {
257
+ subtleFill: "#2b2b2b",
258
+ border: "#aea691",
259
+ text: "#c5c3bf",
260
+ solidFill: "#c5c3bf",
261
+ onFill: "#111111"
262
+ }
263
+ },
264
+ syntax: {
265
+ keyword: "#e06e49",
266
+ string: "#69bc75",
267
+ number: "#c56dcf",
268
+ comment: "#aea691",
269
+ property: "#61adbf",
270
+ punctuation: "#c5c3bf",
271
+ selectionFill: "#003e53",
272
+ selectionText: "#ffffff"
273
+ }
274
+ }
275
+ }
276
+ });
277
+ function resolveSemanticTheme(theme) {
278
+ return semanticThemes[theme];
279
+ }
280
+ //#endregion
281
+ export { DEVTOOLS_FONT_STYLE_ID, DEVTOOLS_FORCED_COLORS_STYLE_ID, devtoolsFontCss, ensureDevtoolsFonts, ensureDevtoolsStyles, forcedColorsCss, resolveSemanticTheme, semanticThemes };
282
+
283
+ //# sourceMappingURL=semantic-theme.js.map