@coze-editor/vscode-themes 0.1.0-alpha.4f717a

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 coze-dev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,326 @@
1
+ // src/themes/dark.ts
2
+ import { tags as t } from "@lezer/highlight";
3
+ import { EditorView } from "@codemirror/view";
4
+ var config = {
5
+ name: "basicDark",
6
+ dark: true,
7
+ background: "#24292e",
8
+ foreground: "#d1d5da",
9
+ selection: "#3392FF44",
10
+ cursor: "#c8e1ff",
11
+ dropdownBackground: "#24292e",
12
+ dropdownBorder: "#1b1f23",
13
+ activeLine: "#4d566022",
14
+ matchingBracket: "#888892",
15
+ keyword: "#9197F1",
16
+ storage: "#f97583",
17
+ variable: "#ffab70",
18
+ variableName: "#D9DCFA",
19
+ parameter: "#e1e4e8",
20
+ function: "#FFCA66",
21
+ string: "#FF9878",
22
+ constant: "#79b8ff",
23
+ type: "#79b8ff",
24
+ class: "#b392f0",
25
+ number: "#2EC7D9",
26
+ comment: "#568B2A",
27
+ heading: "#79b8ff",
28
+ invalid: "#f97583",
29
+ regexp: "#9ecbff",
30
+ propertyName: "#9197F1",
31
+ separator: "#888892",
32
+ gutters: "#888892",
33
+ moduleKeyword: "#CC4FD4"
34
+ };
35
+ var darkTheme = () => EditorView.theme(
36
+ {
37
+ "&": {
38
+ color: config.foreground,
39
+ backgroundColor: config.background
40
+ },
41
+ ".cm-content": { caretColor: config.cursor },
42
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: config.cursor },
43
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: config.selection },
44
+ ".cm-panels": {
45
+ backgroundColor: config.dropdownBackground,
46
+ color: config.foreground
47
+ },
48
+ ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
49
+ ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
50
+ ".cm-searchMatch": {
51
+ backgroundColor: config.dropdownBackground,
52
+ outline: `1px solid ${config.dropdownBorder}`
53
+ },
54
+ ".cm-searchMatch.cm-searchMatch-selected": {
55
+ backgroundColor: config.selection
56
+ },
57
+ ".cm-activeLine": { backgroundColor: config.activeLine },
58
+ ".cm-selectionMatch": { backgroundColor: config.selection },
59
+ "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
60
+ backgroundColor: config.matchingBracket,
61
+ outline: "none"
62
+ },
63
+ ".cm-gutters": {
64
+ backgroundColor: config.background,
65
+ color: config.gutters,
66
+ border: "none"
67
+ },
68
+ ".cm-activeLineGutter": { backgroundColor: config.background },
69
+ ".cm-foldPlaceholder": {
70
+ backgroundColor: "transparent",
71
+ border: "none",
72
+ color: config.foreground
73
+ },
74
+ ".cm-tooltip": {
75
+ backgroundColor: config.dropdownBackground,
76
+ color: config.foreground,
77
+ border: "none",
78
+ boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25)!important",
79
+ maxWidth: "400px"
80
+ },
81
+ ".cm-tooltip .cm-tooltip-arrow:before": {
82
+ borderTopColor: "transparent",
83
+ borderBottomColor: "transparent"
84
+ },
85
+ ".cm-tooltip .cm-tooltip-arrow:after": {
86
+ borderTopColor: config.foreground,
87
+ borderBottomColor: config.foreground
88
+ },
89
+ ".cm-tooltip-autocomplete": {
90
+ "& > ul > li[aria-selected]": {
91
+ background: config.selection,
92
+ color: config.foreground
93
+ }
94
+ },
95
+ ".cm-tooltip code[class*=language-]": {
96
+ whiteSpace: "pre-wrap",
97
+ wordBreak: "break-word",
98
+ color: "rgba(249, 249, 249, 1)"
99
+ },
100
+ "& .cm-scroller": {
101
+ border: "1px solid transparent"
102
+ },
103
+ "& .cm-hover-tooltip-content": {
104
+ fontSize: "12px",
105
+ padding: "0 10px",
106
+ width: "400px",
107
+ overflow: "auto",
108
+ "max-height": "calc(100% - 20px)"
109
+ },
110
+ "& .cm-hover-tooltip-content h1": {
111
+ fontSize: "14px"
112
+ },
113
+ "& .cm-tooltip-autocomplete.cm-tooltip": {
114
+ padding: "5px",
115
+ borderRadius: "5px"
116
+ },
117
+ "& .cm-tooltip.cm-tooltip-autocomplete > ul > li": {
118
+ borderRadius: "3px",
119
+ lineHeight: 1.6
120
+ }
121
+ },
122
+ { dark: config.dark }
123
+ );
124
+ var darkSyntaxTheme = [
125
+ { tag: t.keyword, color: config.keyword },
126
+ { tag: t.variableName, color: config.variableName },
127
+ {
128
+ tag: [t.name, t.deleted, t.character, t.macroName],
129
+ color: config.variable
130
+ },
131
+ { tag: [t.propertyName], color: config.propertyName },
132
+ {
133
+ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],
134
+ color: config.string
135
+ },
136
+ {
137
+ tag: [t.function(t.variableName), t.function(t.propertyName), t.labelName],
138
+ color: config.function
139
+ },
140
+ {
141
+ tag: [t.moduleKeyword, t.controlKeyword],
142
+ color: config.moduleKeyword
143
+ },
144
+ {
145
+ tag: [t.color, t.constant(t.name), t.standard(t.name)],
146
+ color: config.constant
147
+ },
148
+ { tag: t.definition(t.name), color: config.variable },
149
+ { tag: [t.className], color: config.class },
150
+ {
151
+ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
152
+ color: config.number
153
+ },
154
+ { tag: [t.typeName], color: config.type, fontStyle: config.type },
155
+ { tag: [t.operatorKeyword], color: config.keyword },
156
+ { tag: [t.url, t.escape, t.regexp, t.link], color: config.regexp },
157
+ { tag: [t.meta, t.comment], color: config.comment },
158
+ { tag: t.strong, fontWeight: "bold" },
159
+ { tag: t.emphasis, fontStyle: "italic" },
160
+ { tag: t.link, textDecoration: "underline" },
161
+ { tag: t.heading, fontWeight: "bold", color: config.heading },
162
+ { tag: [t.atom, t.bool, t.special(t.variableName)], color: config.variable },
163
+ { tag: t.invalid, color: config.invalid },
164
+ { tag: t.strikethrough, textDecoration: "line-through" },
165
+ { tag: t.separator, color: config.separator }
166
+ ];
167
+
168
+ // src/themes/light.ts
169
+ import { tags as t2 } from "@lezer/highlight";
170
+ import { EditorView as EditorView2 } from "@codemirror/view";
171
+ var config2 = {
172
+ name: "basicLight",
173
+ dark: false,
174
+ background: "#f4f5f5",
175
+ foreground: "#444d56",
176
+ selection: "#0366d625",
177
+ cursor: "#044289",
178
+ dropdownBackground: "#fff",
179
+ dropdownBorder: "#e1e4e8",
180
+ activeLine: "#c6c6c622",
181
+ matchingBracket: "#34d05840",
182
+ keyword: "#d73a49",
183
+ storage: "#d73a49",
184
+ variable: "#e36209",
185
+ parameter: "#24292e",
186
+ function: "#005cc5",
187
+ string: "#032f62",
188
+ constant: "#005cc5",
189
+ type: "#005cc5",
190
+ class: "#6f42c1",
191
+ number: "#005cc5",
192
+ comment: "#6a737d",
193
+ heading: "#005cc5",
194
+ invalid: "#cb2431",
195
+ regexp: "#032f62"
196
+ };
197
+ var lightTheme = () => EditorView2.theme(
198
+ {
199
+ "&": {
200
+ color: config2.foreground,
201
+ backgroundColor: config2.background
202
+ },
203
+ ".cm-content": { caretColor: config2.cursor },
204
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: config2.cursor },
205
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: config2.selection },
206
+ ".cm-panels": {
207
+ backgroundColor: config2.dropdownBackground,
208
+ color: config2.foreground
209
+ },
210
+ ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
211
+ ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
212
+ ".cm-searchMatch": {
213
+ backgroundColor: config2.dropdownBackground,
214
+ outline: `1px solid ${config2.dropdownBorder}`
215
+ },
216
+ ".cm-searchMatch.cm-searchMatch-selected": {
217
+ backgroundColor: config2.selection
218
+ },
219
+ ".cm-activeLine": { backgroundColor: config2.activeLine },
220
+ ".cm-selectionMatch": { backgroundColor: config2.selection },
221
+ "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
222
+ backgroundColor: config2.matchingBracket,
223
+ outline: "none"
224
+ },
225
+ ".cm-gutters": {
226
+ backgroundColor: config2.background,
227
+ color: config2.foreground,
228
+ border: "none"
229
+ },
230
+ ".cm-activeLineGutter": { backgroundColor: config2.background },
231
+ ".cm-foldPlaceholder": {
232
+ backgroundColor: "transparent",
233
+ border: "none",
234
+ color: config2.foreground
235
+ },
236
+ ".cm-tooltip": {
237
+ backgroundColor: config2.dropdownBackground,
238
+ color: config2.foreground,
239
+ border: "none",
240
+ boxShadow: "0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1)!important",
241
+ maxWidth: "400px"
242
+ },
243
+ ".cm-tooltip .cm-tooltip-arrow:before": {
244
+ borderTopColor: "transparent",
245
+ borderBottomColor: "transparent"
246
+ },
247
+ ".cm-tooltip .cm-tooltip-arrow:after": {
248
+ borderTopColor: config2.foreground,
249
+ borderBottomColor: config2.foreground
250
+ },
251
+ ".cm-tooltip-autocomplete": {
252
+ "& > ul > li[aria-selected]": {
253
+ background: config2.selection,
254
+ color: config2.foreground
255
+ }
256
+ },
257
+ ".cm-tooltip code[class*=language-]": {
258
+ whiteSpace: "pre-wrap",
259
+ wordBreak: "break-word",
260
+ color: "rgba(28, 31, 35, 1)"
261
+ },
262
+ "& .cm-scroller": {
263
+ border: "1px solid transparent"
264
+ },
265
+ "& .cm-hover-tooltip-content": {
266
+ fontSize: "12px",
267
+ padding: "0 10px",
268
+ width: "400px",
269
+ overflow: "auto",
270
+ "max-height": "calc(100% - 20px)"
271
+ },
272
+ "& .cm-hover-tooltip-content h1": {
273
+ fontSize: "14px"
274
+ },
275
+ "& .cm-tooltip-autocomplete.cm-tooltip": {
276
+ padding: "5px",
277
+ borderRadius: "5px"
278
+ },
279
+ "& .cm-tooltip.cm-tooltip-autocomplete > ul > li": {
280
+ borderRadius: "3px",
281
+ lineHeight: 1.6
282
+ }
283
+ },
284
+ { dark: config2.dark }
285
+ );
286
+ var lightSyntaxTheme = [
287
+ { tag: t2.keyword, color: config2.keyword },
288
+ {
289
+ tag: [t2.name, t2.deleted, t2.character, t2.macroName],
290
+ color: config2.variable
291
+ },
292
+ { tag: [t2.propertyName], color: config2.function },
293
+ {
294
+ tag: [t2.processingInstruction, t2.string, t2.inserted, t2.special(t2.string)],
295
+ color: config2.string
296
+ },
297
+ { tag: [t2.function(t2.variableName), t2.labelName], color: config2.function },
298
+ {
299
+ tag: [t2.color, t2.constant(t2.name), t2.standard(t2.name)],
300
+ color: config2.constant
301
+ },
302
+ { tag: [t2.definition(t2.name), t2.separator], color: config2.variable },
303
+ { tag: [t2.className], color: config2.class },
304
+ {
305
+ tag: [t2.number, t2.changed, t2.annotation, t2.modifier, t2.self, t2.namespace],
306
+ color: config2.number
307
+ },
308
+ { tag: [t2.typeName], color: config2.type, fontStyle: config2.type },
309
+ { tag: [t2.operator, t2.operatorKeyword], color: config2.keyword },
310
+ { tag: [t2.url, t2.escape, t2.regexp, t2.link], color: config2.regexp },
311
+ { tag: [t2.meta, t2.comment], color: config2.comment },
312
+ { tag: t2.strong, fontWeight: "bold" },
313
+ { tag: t2.emphasis, fontStyle: "italic" },
314
+ { tag: t2.link, textDecoration: "underline" },
315
+ { tag: t2.heading, fontWeight: "bold", color: config2.heading },
316
+ { tag: [t2.atom, t2.bool, t2.special(t2.variableName)], color: config2.variable },
317
+ { tag: t2.invalid, color: config2.invalid },
318
+ { tag: t2.strikethrough, textDecoration: "line-through" }
319
+ ];
320
+ export {
321
+ darkSyntaxTheme,
322
+ darkTheme,
323
+ lightSyntaxTheme,
324
+ lightTheme
325
+ };
326
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/themes/dark.ts","../../src/themes/light.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nimport { tags as t } from '@lezer/highlight';\nimport { EditorView } from '@codemirror/view';\n\nexport const config = {\n name: 'basicDark',\n dark: true,\n background: '#24292e',\n foreground: '#d1d5da',\n selection: '#3392FF44',\n cursor: '#c8e1ff',\n dropdownBackground: '#24292e',\n dropdownBorder: '#1b1f23',\n activeLine: '#4d566022',\n matchingBracket: '#888892',\n keyword: '#9197F1',\n storage: '#f97583',\n variable: '#ffab70',\n variableName: '#D9DCFA',\n parameter: '#e1e4e8',\n function: '#FFCA66',\n string: '#FF9878',\n constant: '#79b8ff',\n type: '#79b8ff',\n class: '#b392f0',\n number: '#2EC7D9',\n comment: '#568B2A',\n heading: '#79b8ff',\n invalid: '#f97583',\n regexp: '#9ecbff',\n propertyName: '#9197F1',\n separator: '#888892',\n gutters: '#888892',\n moduleKeyword: '#CC4FD4',\n};\n\nexport const darkTheme = () =>\n EditorView.theme(\n {\n '&': {\n color: config.foreground,\n backgroundColor: config.background,\n },\n\n '.cm-content': { caretColor: config.cursor },\n\n '.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor },\n '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection':\n { backgroundColor: config.selection },\n\n '.cm-panels': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n },\n '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },\n '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },\n\n '.cm-searchMatch': {\n backgroundColor: config.dropdownBackground,\n outline: `1px solid ${config.dropdownBorder}`,\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: config.selection,\n },\n\n '.cm-activeLine': { backgroundColor: config.activeLine },\n '.cm-selectionMatch': { backgroundColor: config.selection },\n\n '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: config.matchingBracket,\n outline: 'none',\n },\n\n '.cm-gutters': {\n backgroundColor: config.background,\n color: config.gutters,\n border: 'none',\n },\n '.cm-activeLineGutter': { backgroundColor: config.background },\n\n '.cm-foldPlaceholder': {\n backgroundColor: 'transparent',\n border: 'none',\n color: config.foreground,\n },\n '.cm-tooltip': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n border: 'none',\n boxShadow:\n 'inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25)!important',\n maxWidth: '400px',\n },\n '.cm-tooltip .cm-tooltip-arrow:before': {\n borderTopColor: 'transparent',\n borderBottomColor: 'transparent',\n },\n '.cm-tooltip .cm-tooltip-arrow:after': {\n borderTopColor: config.foreground,\n borderBottomColor: config.foreground,\n },\n '.cm-tooltip-autocomplete': {\n '& > ul > li[aria-selected]': {\n background: config.selection,\n color: config.foreground,\n },\n },\n '.cm-tooltip code[class*=language-]': {\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word',\n color: 'rgba(249, 249, 249, 1)',\n },\n '& .cm-scroller': {\n border: '1px solid transparent',\n },\n '& .cm-hover-tooltip-content': {\n fontSize: '12px',\n padding: '0 10px',\n width: '400px',\n overflow: 'auto',\n 'max-height': 'calc(100% - 20px)',\n },\n '& .cm-hover-tooltip-content h1': {\n fontSize: '14px',\n },\n '& .cm-tooltip-autocomplete.cm-tooltip': {\n padding: '5px',\n borderRadius: '5px',\n },\n '& .cm-tooltip.cm-tooltip-autocomplete > ul > li': {\n borderRadius: '3px',\n lineHeight: 1.6,\n },\n },\n { dark: config.dark },\n );\n\nexport const darkSyntaxTheme = [\n { tag: t.keyword, color: config.keyword },\n { tag: t.variableName, color: config.variableName },\n {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable,\n },\n { tag: [t.propertyName], color: config.propertyName },\n {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string,\n },\n {\n tag: [t.function(t.variableName), t.function(t.propertyName), t.labelName],\n color: config.function,\n },\n {\n tag: [t.moduleKeyword, t.controlKeyword],\n color: config.moduleKeyword,\n },\n {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant,\n },\n { tag: t.definition(t.name), color: config.variable },\n { tag: [t.className], color: config.class },\n {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number,\n },\n { tag: [t.typeName], color: config.type, fontStyle: config.type },\n { tag: [t.operatorKeyword], color: config.keyword },\n { tag: [t.url, t.escape, t.regexp, t.link], color: config.regexp },\n { tag: [t.meta, t.comment], color: config.comment },\n { tag: t.strong, fontWeight: 'bold' },\n { tag: t.emphasis, fontStyle: 'italic' },\n { tag: t.link, textDecoration: 'underline' },\n { tag: t.heading, fontWeight: 'bold', color: config.heading },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: config.variable },\n { tag: t.invalid, color: config.invalid },\n { tag: t.strikethrough, textDecoration: 'line-through' },\n { tag: t.separator, color: config.separator },\n];\n","// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nimport { tags as t } from '@lezer/highlight';\nimport { EditorView } from '@codemirror/view';\n\nexport const config = {\n name: 'basicLight',\n dark: false,\n background: '#f4f5f5',\n foreground: '#444d56',\n selection: '#0366d625',\n cursor: '#044289',\n dropdownBackground: '#fff',\n dropdownBorder: '#e1e4e8',\n activeLine: '#c6c6c622',\n matchingBracket: '#34d05840',\n keyword: '#d73a49',\n storage: '#d73a49',\n variable: '#e36209',\n parameter: '#24292e',\n function: '#005cc5',\n string: '#032f62',\n constant: '#005cc5',\n type: '#005cc5',\n class: '#6f42c1',\n number: '#005cc5',\n comment: '#6a737d',\n heading: '#005cc5',\n invalid: '#cb2431',\n regexp: '#032f62',\n};\n\nexport const lightTheme = () =>\n EditorView.theme(\n {\n '&': {\n color: config.foreground,\n backgroundColor: config.background,\n },\n\n '.cm-content': { caretColor: config.cursor },\n\n '.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor },\n '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection':\n { backgroundColor: config.selection },\n\n '.cm-panels': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n },\n '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },\n '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },\n\n '.cm-searchMatch': {\n backgroundColor: config.dropdownBackground,\n outline: `1px solid ${config.dropdownBorder}`,\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: config.selection,\n },\n\n '.cm-activeLine': { backgroundColor: config.activeLine },\n '.cm-selectionMatch': { backgroundColor: config.selection },\n\n '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: config.matchingBracket,\n outline: 'none',\n },\n\n '.cm-gutters': {\n backgroundColor: config.background,\n color: config.foreground,\n border: 'none',\n },\n '.cm-activeLineGutter': { backgroundColor: config.background },\n\n '.cm-foldPlaceholder': {\n backgroundColor: 'transparent',\n border: 'none',\n color: config.foreground,\n },\n '.cm-tooltip': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n border: 'none',\n boxShadow:\n '0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1)!important',\n maxWidth: '400px',\n },\n '.cm-tooltip .cm-tooltip-arrow:before': {\n borderTopColor: 'transparent',\n borderBottomColor: 'transparent',\n },\n '.cm-tooltip .cm-tooltip-arrow:after': {\n borderTopColor: config.foreground,\n borderBottomColor: config.foreground,\n },\n '.cm-tooltip-autocomplete': {\n '& > ul > li[aria-selected]': {\n background: config.selection,\n color: config.foreground,\n },\n },\n\n '.cm-tooltip code[class*=language-]': {\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word',\n color: 'rgba(28, 31, 35, 1)',\n },\n '& .cm-scroller': {\n border: '1px solid transparent',\n },\n '& .cm-hover-tooltip-content': {\n fontSize: '12px',\n padding: '0 10px',\n width: '400px',\n overflow: 'auto',\n 'max-height': 'calc(100% - 20px)',\n },\n '& .cm-hover-tooltip-content h1': {\n fontSize: '14px',\n },\n '& .cm-tooltip-autocomplete.cm-tooltip': {\n padding: '5px',\n borderRadius: '5px',\n },\n '& .cm-tooltip.cm-tooltip-autocomplete > ul > li': {\n borderRadius: '3px',\n lineHeight: 1.6,\n },\n },\n { dark: config.dark },\n );\n\nexport const lightSyntaxTheme = [\n { tag: t.keyword, color: config.keyword },\n {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable,\n },\n { tag: [t.propertyName], color: config.function },\n {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string,\n },\n { tag: [t.function(t.variableName), t.labelName], color: config.function },\n {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant,\n },\n { tag: [t.definition(t.name), t.separator], color: config.variable },\n { tag: [t.className], color: config.class },\n {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number,\n },\n { tag: [t.typeName], color: config.type, fontStyle: config.type },\n { tag: [t.operator, t.operatorKeyword], color: config.keyword },\n { tag: [t.url, t.escape, t.regexp, t.link], color: config.regexp },\n { tag: [t.meta, t.comment], color: config.comment },\n { tag: t.strong, fontWeight: 'bold' },\n { tag: t.emphasis, fontStyle: 'italic' },\n { tag: t.link, textDecoration: 'underline' },\n { tag: t.heading, fontWeight: 'bold', color: config.heading },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: config.variable },\n { tag: t.invalid, color: config.invalid },\n { tag: t.strikethrough, textDecoration: 'line-through' },\n];\n"],"mappings":";AAGA,SAAS,QAAQ,SAAS;AAC1B,SAAS,kBAAkB;AAEpB,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,eAAe;AACjB;AAEO,IAAM,YAAY,MACvB,WAAW;AAAA,EACT;AAAA,IACE,KAAK;AAAA,MACH,OAAO,OAAO;AAAA,MACd,iBAAiB,OAAO;AAAA,IAC1B;AAAA,IAEA,eAAe,EAAE,YAAY,OAAO,OAAO;AAAA,IAE3C,8BAA8B,EAAE,iBAAiB,OAAO,OAAO;AAAA,IAC/D,8HACE,EAAE,iBAAiB,OAAO,UAAU;AAAA,IAEtC,cAAc;AAAA,MACZ,iBAAiB,OAAO;AAAA,MACxB,OAAO,OAAO;AAAA,IAChB;AAAA,IACA,4BAA4B,EAAE,c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,OAAOE,QAAO,QAAQ;AAAA,EAC5D,EAAE,KAAK,CAACF,GAAE,MAAMA,GAAE,MAAMA,GAAE,QAAQA,GAAE,YAAY,CAAC,GAAG,OAAOE,QAAO,SAAS;AAAA,EAC3E,EAAE,KAAKF,GAAE,SAAS,OAAOE,QAAO,QAAQ;AAAA,EACxC,EAAE,KAAKF,GAAE,eAAe,gBAAgB,eAAe;AACzD;","names":["t","EditorView","config"]}
@@ -0,0 +1,94 @@
1
+ import * as _lezer_highlight from '@lezer/highlight';
2
+ import * as _codemirror_state from '@codemirror/state';
3
+
4
+ declare const darkTheme: () => _codemirror_state.Extension;
5
+ declare const darkSyntaxTheme: ({
6
+ tag: _lezer_highlight.Tag;
7
+ color: string;
8
+ fontStyle?: undefined;
9
+ fontWeight?: undefined;
10
+ textDecoration?: undefined;
11
+ } | {
12
+ tag: _lezer_highlight.Tag[];
13
+ color: string;
14
+ fontStyle?: undefined;
15
+ fontWeight?: undefined;
16
+ textDecoration?: undefined;
17
+ } | {
18
+ tag: _lezer_highlight.Tag[];
19
+ color: string;
20
+ fontStyle: string;
21
+ fontWeight?: undefined;
22
+ textDecoration?: undefined;
23
+ } | {
24
+ tag: _lezer_highlight.Tag;
25
+ fontWeight: string;
26
+ color?: undefined;
27
+ fontStyle?: undefined;
28
+ textDecoration?: undefined;
29
+ } | {
30
+ tag: _lezer_highlight.Tag;
31
+ fontStyle: string;
32
+ color?: undefined;
33
+ fontWeight?: undefined;
34
+ textDecoration?: undefined;
35
+ } | {
36
+ tag: _lezer_highlight.Tag;
37
+ textDecoration: string;
38
+ color?: undefined;
39
+ fontStyle?: undefined;
40
+ fontWeight?: undefined;
41
+ } | {
42
+ tag: _lezer_highlight.Tag;
43
+ fontWeight: string;
44
+ color: string;
45
+ fontStyle?: undefined;
46
+ textDecoration?: undefined;
47
+ })[];
48
+
49
+ declare const lightTheme: () => _codemirror_state.Extension;
50
+ declare const lightSyntaxTheme: ({
51
+ tag: _lezer_highlight.Tag;
52
+ color: string;
53
+ fontStyle?: undefined;
54
+ fontWeight?: undefined;
55
+ textDecoration?: undefined;
56
+ } | {
57
+ tag: _lezer_highlight.Tag[];
58
+ color: string;
59
+ fontStyle?: undefined;
60
+ fontWeight?: undefined;
61
+ textDecoration?: undefined;
62
+ } | {
63
+ tag: _lezer_highlight.Tag[];
64
+ color: string;
65
+ fontStyle: string;
66
+ fontWeight?: undefined;
67
+ textDecoration?: undefined;
68
+ } | {
69
+ tag: _lezer_highlight.Tag;
70
+ fontWeight: string;
71
+ color?: undefined;
72
+ fontStyle?: undefined;
73
+ textDecoration?: undefined;
74
+ } | {
75
+ tag: _lezer_highlight.Tag;
76
+ fontStyle: string;
77
+ color?: undefined;
78
+ fontWeight?: undefined;
79
+ textDecoration?: undefined;
80
+ } | {
81
+ tag: _lezer_highlight.Tag;
82
+ textDecoration: string;
83
+ color?: undefined;
84
+ fontStyle?: undefined;
85
+ fontWeight?: undefined;
86
+ } | {
87
+ tag: _lezer_highlight.Tag;
88
+ fontWeight: string;
89
+ color: string;
90
+ fontStyle?: undefined;
91
+ textDecoration?: undefined;
92
+ })[];
93
+
94
+ export { darkSyntaxTheme, darkTheme, lightSyntaxTheme, lightTheme };
@@ -0,0 +1,94 @@
1
+ import * as _lezer_highlight from '@lezer/highlight';
2
+ import * as _codemirror_state from '@codemirror/state';
3
+
4
+ declare const darkTheme: () => _codemirror_state.Extension;
5
+ declare const darkSyntaxTheme: ({
6
+ tag: _lezer_highlight.Tag;
7
+ color: string;
8
+ fontStyle?: undefined;
9
+ fontWeight?: undefined;
10
+ textDecoration?: undefined;
11
+ } | {
12
+ tag: _lezer_highlight.Tag[];
13
+ color: string;
14
+ fontStyle?: undefined;
15
+ fontWeight?: undefined;
16
+ textDecoration?: undefined;
17
+ } | {
18
+ tag: _lezer_highlight.Tag[];
19
+ color: string;
20
+ fontStyle: string;
21
+ fontWeight?: undefined;
22
+ textDecoration?: undefined;
23
+ } | {
24
+ tag: _lezer_highlight.Tag;
25
+ fontWeight: string;
26
+ color?: undefined;
27
+ fontStyle?: undefined;
28
+ textDecoration?: undefined;
29
+ } | {
30
+ tag: _lezer_highlight.Tag;
31
+ fontStyle: string;
32
+ color?: undefined;
33
+ fontWeight?: undefined;
34
+ textDecoration?: undefined;
35
+ } | {
36
+ tag: _lezer_highlight.Tag;
37
+ textDecoration: string;
38
+ color?: undefined;
39
+ fontStyle?: undefined;
40
+ fontWeight?: undefined;
41
+ } | {
42
+ tag: _lezer_highlight.Tag;
43
+ fontWeight: string;
44
+ color: string;
45
+ fontStyle?: undefined;
46
+ textDecoration?: undefined;
47
+ })[];
48
+
49
+ declare const lightTheme: () => _codemirror_state.Extension;
50
+ declare const lightSyntaxTheme: ({
51
+ tag: _lezer_highlight.Tag;
52
+ color: string;
53
+ fontStyle?: undefined;
54
+ fontWeight?: undefined;
55
+ textDecoration?: undefined;
56
+ } | {
57
+ tag: _lezer_highlight.Tag[];
58
+ color: string;
59
+ fontStyle?: undefined;
60
+ fontWeight?: undefined;
61
+ textDecoration?: undefined;
62
+ } | {
63
+ tag: _lezer_highlight.Tag[];
64
+ color: string;
65
+ fontStyle: string;
66
+ fontWeight?: undefined;
67
+ textDecoration?: undefined;
68
+ } | {
69
+ tag: _lezer_highlight.Tag;
70
+ fontWeight: string;
71
+ color?: undefined;
72
+ fontStyle?: undefined;
73
+ textDecoration?: undefined;
74
+ } | {
75
+ tag: _lezer_highlight.Tag;
76
+ fontStyle: string;
77
+ color?: undefined;
78
+ fontWeight?: undefined;
79
+ textDecoration?: undefined;
80
+ } | {
81
+ tag: _lezer_highlight.Tag;
82
+ textDecoration: string;
83
+ color?: undefined;
84
+ fontStyle?: undefined;
85
+ fontWeight?: undefined;
86
+ } | {
87
+ tag: _lezer_highlight.Tag;
88
+ fontWeight: string;
89
+ color: string;
90
+ fontStyle?: undefined;
91
+ textDecoration?: undefined;
92
+ })[];
93
+
94
+ export { darkSyntaxTheme, darkTheme, lightSyntaxTheme, lightTheme };
package/dist/index.js ADDED
@@ -0,0 +1,355 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ darkSyntaxTheme: () => darkSyntaxTheme,
23
+ darkTheme: () => darkTheme,
24
+ lightSyntaxTheme: () => lightSyntaxTheme,
25
+ lightTheme: () => lightTheme
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/themes/dark.ts
30
+ var import_highlight = require("@lezer/highlight");
31
+ var import_view = require("@codemirror/view");
32
+ var config = {
33
+ name: "basicDark",
34
+ dark: true,
35
+ background: "#24292e",
36
+ foreground: "#d1d5da",
37
+ selection: "#3392FF44",
38
+ cursor: "#c8e1ff",
39
+ dropdownBackground: "#24292e",
40
+ dropdownBorder: "#1b1f23",
41
+ activeLine: "#4d566022",
42
+ matchingBracket: "#888892",
43
+ keyword: "#9197F1",
44
+ storage: "#f97583",
45
+ variable: "#ffab70",
46
+ variableName: "#D9DCFA",
47
+ parameter: "#e1e4e8",
48
+ function: "#FFCA66",
49
+ string: "#FF9878",
50
+ constant: "#79b8ff",
51
+ type: "#79b8ff",
52
+ class: "#b392f0",
53
+ number: "#2EC7D9",
54
+ comment: "#568B2A",
55
+ heading: "#79b8ff",
56
+ invalid: "#f97583",
57
+ regexp: "#9ecbff",
58
+ propertyName: "#9197F1",
59
+ separator: "#888892",
60
+ gutters: "#888892",
61
+ moduleKeyword: "#CC4FD4"
62
+ };
63
+ var darkTheme = () => import_view.EditorView.theme(
64
+ {
65
+ "&": {
66
+ color: config.foreground,
67
+ backgroundColor: config.background
68
+ },
69
+ ".cm-content": { caretColor: config.cursor },
70
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: config.cursor },
71
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: config.selection },
72
+ ".cm-panels": {
73
+ backgroundColor: config.dropdownBackground,
74
+ color: config.foreground
75
+ },
76
+ ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
77
+ ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
78
+ ".cm-searchMatch": {
79
+ backgroundColor: config.dropdownBackground,
80
+ outline: `1px solid ${config.dropdownBorder}`
81
+ },
82
+ ".cm-searchMatch.cm-searchMatch-selected": {
83
+ backgroundColor: config.selection
84
+ },
85
+ ".cm-activeLine": { backgroundColor: config.activeLine },
86
+ ".cm-selectionMatch": { backgroundColor: config.selection },
87
+ "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
88
+ backgroundColor: config.matchingBracket,
89
+ outline: "none"
90
+ },
91
+ ".cm-gutters": {
92
+ backgroundColor: config.background,
93
+ color: config.gutters,
94
+ border: "none"
95
+ },
96
+ ".cm-activeLineGutter": { backgroundColor: config.background },
97
+ ".cm-foldPlaceholder": {
98
+ backgroundColor: "transparent",
99
+ border: "none",
100
+ color: config.foreground
101
+ },
102
+ ".cm-tooltip": {
103
+ backgroundColor: config.dropdownBackground,
104
+ color: config.foreground,
105
+ border: "none",
106
+ boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25)!important",
107
+ maxWidth: "400px"
108
+ },
109
+ ".cm-tooltip .cm-tooltip-arrow:before": {
110
+ borderTopColor: "transparent",
111
+ borderBottomColor: "transparent"
112
+ },
113
+ ".cm-tooltip .cm-tooltip-arrow:after": {
114
+ borderTopColor: config.foreground,
115
+ borderBottomColor: config.foreground
116
+ },
117
+ ".cm-tooltip-autocomplete": {
118
+ "& > ul > li[aria-selected]": {
119
+ background: config.selection,
120
+ color: config.foreground
121
+ }
122
+ },
123
+ ".cm-tooltip code[class*=language-]": {
124
+ whiteSpace: "pre-wrap",
125
+ wordBreak: "break-word",
126
+ color: "rgba(249, 249, 249, 1)"
127
+ },
128
+ "& .cm-scroller": {
129
+ border: "1px solid transparent"
130
+ },
131
+ "& .cm-hover-tooltip-content": {
132
+ fontSize: "12px",
133
+ padding: "0 10px",
134
+ width: "400px",
135
+ overflow: "auto",
136
+ "max-height": "calc(100% - 20px)"
137
+ },
138
+ "& .cm-hover-tooltip-content h1": {
139
+ fontSize: "14px"
140
+ },
141
+ "& .cm-tooltip-autocomplete.cm-tooltip": {
142
+ padding: "5px",
143
+ borderRadius: "5px"
144
+ },
145
+ "& .cm-tooltip.cm-tooltip-autocomplete > ul > li": {
146
+ borderRadius: "3px",
147
+ lineHeight: 1.6
148
+ }
149
+ },
150
+ { dark: config.dark }
151
+ );
152
+ var darkSyntaxTheme = [
153
+ { tag: import_highlight.tags.keyword, color: config.keyword },
154
+ { tag: import_highlight.tags.variableName, color: config.variableName },
155
+ {
156
+ tag: [import_highlight.tags.name, import_highlight.tags.deleted, import_highlight.tags.character, import_highlight.tags.macroName],
157
+ color: config.variable
158
+ },
159
+ { tag: [import_highlight.tags.propertyName], color: config.propertyName },
160
+ {
161
+ tag: [import_highlight.tags.processingInstruction, import_highlight.tags.string, import_highlight.tags.inserted, import_highlight.tags.special(import_highlight.tags.string)],
162
+ color: config.string
163
+ },
164
+ {
165
+ tag: [import_highlight.tags.function(import_highlight.tags.variableName), import_highlight.tags.function(import_highlight.tags.propertyName), import_highlight.tags.labelName],
166
+ color: config.function
167
+ },
168
+ {
169
+ tag: [import_highlight.tags.moduleKeyword, import_highlight.tags.controlKeyword],
170
+ color: config.moduleKeyword
171
+ },
172
+ {
173
+ tag: [import_highlight.tags.color, import_highlight.tags.constant(import_highlight.tags.name), import_highlight.tags.standard(import_highlight.tags.name)],
174
+ color: config.constant
175
+ },
176
+ { tag: import_highlight.tags.definition(import_highlight.tags.name), color: config.variable },
177
+ { tag: [import_highlight.tags.className], color: config.class },
178
+ {
179
+ tag: [import_highlight.tags.number, import_highlight.tags.changed, import_highlight.tags.annotation, import_highlight.tags.modifier, import_highlight.tags.self, import_highlight.tags.namespace],
180
+ color: config.number
181
+ },
182
+ { tag: [import_highlight.tags.typeName], color: config.type, fontStyle: config.type },
183
+ { tag: [import_highlight.tags.operatorKeyword], color: config.keyword },
184
+ { tag: [import_highlight.tags.url, import_highlight.tags.escape, import_highlight.tags.regexp, import_highlight.tags.link], color: config.regexp },
185
+ { tag: [import_highlight.tags.meta, import_highlight.tags.comment], color: config.comment },
186
+ { tag: import_highlight.tags.strong, fontWeight: "bold" },
187
+ { tag: import_highlight.tags.emphasis, fontStyle: "italic" },
188
+ { tag: import_highlight.tags.link, textDecoration: "underline" },
189
+ { tag: import_highlight.tags.heading, fontWeight: "bold", color: config.heading },
190
+ { tag: [import_highlight.tags.atom, import_highlight.tags.bool, import_highlight.tags.special(import_highlight.tags.variableName)], color: config.variable },
191
+ { tag: import_highlight.tags.invalid, color: config.invalid },
192
+ { tag: import_highlight.tags.strikethrough, textDecoration: "line-through" },
193
+ { tag: import_highlight.tags.separator, color: config.separator }
194
+ ];
195
+
196
+ // src/themes/light.ts
197
+ var import_highlight2 = require("@lezer/highlight");
198
+ var import_view2 = require("@codemirror/view");
199
+ var config2 = {
200
+ name: "basicLight",
201
+ dark: false,
202
+ background: "#f4f5f5",
203
+ foreground: "#444d56",
204
+ selection: "#0366d625",
205
+ cursor: "#044289",
206
+ dropdownBackground: "#fff",
207
+ dropdownBorder: "#e1e4e8",
208
+ activeLine: "#c6c6c622",
209
+ matchingBracket: "#34d05840",
210
+ keyword: "#d73a49",
211
+ storage: "#d73a49",
212
+ variable: "#e36209",
213
+ parameter: "#24292e",
214
+ function: "#005cc5",
215
+ string: "#032f62",
216
+ constant: "#005cc5",
217
+ type: "#005cc5",
218
+ class: "#6f42c1",
219
+ number: "#005cc5",
220
+ comment: "#6a737d",
221
+ heading: "#005cc5",
222
+ invalid: "#cb2431",
223
+ regexp: "#032f62"
224
+ };
225
+ var lightTheme = () => import_view2.EditorView.theme(
226
+ {
227
+ "&": {
228
+ color: config2.foreground,
229
+ backgroundColor: config2.background
230
+ },
231
+ ".cm-content": { caretColor: config2.cursor },
232
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: config2.cursor },
233
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: config2.selection },
234
+ ".cm-panels": {
235
+ backgroundColor: config2.dropdownBackground,
236
+ color: config2.foreground
237
+ },
238
+ ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
239
+ ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
240
+ ".cm-searchMatch": {
241
+ backgroundColor: config2.dropdownBackground,
242
+ outline: `1px solid ${config2.dropdownBorder}`
243
+ },
244
+ ".cm-searchMatch.cm-searchMatch-selected": {
245
+ backgroundColor: config2.selection
246
+ },
247
+ ".cm-activeLine": { backgroundColor: config2.activeLine },
248
+ ".cm-selectionMatch": { backgroundColor: config2.selection },
249
+ "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
250
+ backgroundColor: config2.matchingBracket,
251
+ outline: "none"
252
+ },
253
+ ".cm-gutters": {
254
+ backgroundColor: config2.background,
255
+ color: config2.foreground,
256
+ border: "none"
257
+ },
258
+ ".cm-activeLineGutter": { backgroundColor: config2.background },
259
+ ".cm-foldPlaceholder": {
260
+ backgroundColor: "transparent",
261
+ border: "none",
262
+ color: config2.foreground
263
+ },
264
+ ".cm-tooltip": {
265
+ backgroundColor: config2.dropdownBackground,
266
+ color: config2.foreground,
267
+ border: "none",
268
+ boxShadow: "0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1)!important",
269
+ maxWidth: "400px"
270
+ },
271
+ ".cm-tooltip .cm-tooltip-arrow:before": {
272
+ borderTopColor: "transparent",
273
+ borderBottomColor: "transparent"
274
+ },
275
+ ".cm-tooltip .cm-tooltip-arrow:after": {
276
+ borderTopColor: config2.foreground,
277
+ borderBottomColor: config2.foreground
278
+ },
279
+ ".cm-tooltip-autocomplete": {
280
+ "& > ul > li[aria-selected]": {
281
+ background: config2.selection,
282
+ color: config2.foreground
283
+ }
284
+ },
285
+ ".cm-tooltip code[class*=language-]": {
286
+ whiteSpace: "pre-wrap",
287
+ wordBreak: "break-word",
288
+ color: "rgba(28, 31, 35, 1)"
289
+ },
290
+ "& .cm-scroller": {
291
+ border: "1px solid transparent"
292
+ },
293
+ "& .cm-hover-tooltip-content": {
294
+ fontSize: "12px",
295
+ padding: "0 10px",
296
+ width: "400px",
297
+ overflow: "auto",
298
+ "max-height": "calc(100% - 20px)"
299
+ },
300
+ "& .cm-hover-tooltip-content h1": {
301
+ fontSize: "14px"
302
+ },
303
+ "& .cm-tooltip-autocomplete.cm-tooltip": {
304
+ padding: "5px",
305
+ borderRadius: "5px"
306
+ },
307
+ "& .cm-tooltip.cm-tooltip-autocomplete > ul > li": {
308
+ borderRadius: "3px",
309
+ lineHeight: 1.6
310
+ }
311
+ },
312
+ { dark: config2.dark }
313
+ );
314
+ var lightSyntaxTheme = [
315
+ { tag: import_highlight2.tags.keyword, color: config2.keyword },
316
+ {
317
+ tag: [import_highlight2.tags.name, import_highlight2.tags.deleted, import_highlight2.tags.character, import_highlight2.tags.macroName],
318
+ color: config2.variable
319
+ },
320
+ { tag: [import_highlight2.tags.propertyName], color: config2.function },
321
+ {
322
+ tag: [import_highlight2.tags.processingInstruction, import_highlight2.tags.string, import_highlight2.tags.inserted, import_highlight2.tags.special(import_highlight2.tags.string)],
323
+ color: config2.string
324
+ },
325
+ { tag: [import_highlight2.tags.function(import_highlight2.tags.variableName), import_highlight2.tags.labelName], color: config2.function },
326
+ {
327
+ tag: [import_highlight2.tags.color, import_highlight2.tags.constant(import_highlight2.tags.name), import_highlight2.tags.standard(import_highlight2.tags.name)],
328
+ color: config2.constant
329
+ },
330
+ { tag: [import_highlight2.tags.definition(import_highlight2.tags.name), import_highlight2.tags.separator], color: config2.variable },
331
+ { tag: [import_highlight2.tags.className], color: config2.class },
332
+ {
333
+ tag: [import_highlight2.tags.number, import_highlight2.tags.changed, import_highlight2.tags.annotation, import_highlight2.tags.modifier, import_highlight2.tags.self, import_highlight2.tags.namespace],
334
+ color: config2.number
335
+ },
336
+ { tag: [import_highlight2.tags.typeName], color: config2.type, fontStyle: config2.type },
337
+ { tag: [import_highlight2.tags.operator, import_highlight2.tags.operatorKeyword], color: config2.keyword },
338
+ { tag: [import_highlight2.tags.url, import_highlight2.tags.escape, import_highlight2.tags.regexp, import_highlight2.tags.link], color: config2.regexp },
339
+ { tag: [import_highlight2.tags.meta, import_highlight2.tags.comment], color: config2.comment },
340
+ { tag: import_highlight2.tags.strong, fontWeight: "bold" },
341
+ { tag: import_highlight2.tags.emphasis, fontStyle: "italic" },
342
+ { tag: import_highlight2.tags.link, textDecoration: "underline" },
343
+ { tag: import_highlight2.tags.heading, fontWeight: "bold", color: config2.heading },
344
+ { tag: [import_highlight2.tags.atom, import_highlight2.tags.bool, import_highlight2.tags.special(import_highlight2.tags.variableName)], color: config2.variable },
345
+ { tag: import_highlight2.tags.invalid, color: config2.invalid },
346
+ { tag: import_highlight2.tags.strikethrough, textDecoration: "line-through" }
347
+ ];
348
+ // Annotate the CommonJS export names for ESM import in node:
349
+ 0 && (module.exports = {
350
+ darkSyntaxTheme,
351
+ darkTheme,
352
+ lightSyntaxTheme,
353
+ lightTheme
354
+ });
355
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/themes/dark.ts","../src/themes/light.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport {\n darkTheme,\n darkSyntaxTheme,\n lightTheme,\n lightSyntaxTheme,\n} from './themes';\n","// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nimport { tags as t } from '@lezer/highlight';\nimport { EditorView } from '@codemirror/view';\n\nexport const config = {\n name: 'basicDark',\n dark: true,\n background: '#24292e',\n foreground: '#d1d5da',\n selection: '#3392FF44',\n cursor: '#c8e1ff',\n dropdownBackground: '#24292e',\n dropdownBorder: '#1b1f23',\n activeLine: '#4d566022',\n matchingBracket: '#888892',\n keyword: '#9197F1',\n storage: '#f97583',\n variable: '#ffab70',\n variableName: '#D9DCFA',\n parameter: '#e1e4e8',\n function: '#FFCA66',\n string: '#FF9878',\n constant: '#79b8ff',\n type: '#79b8ff',\n class: '#b392f0',\n number: '#2EC7D9',\n comment: '#568B2A',\n heading: '#79b8ff',\n invalid: '#f97583',\n regexp: '#9ecbff',\n propertyName: '#9197F1',\n separator: '#888892',\n gutters: '#888892',\n moduleKeyword: '#CC4FD4',\n};\n\nexport const darkTheme = () =>\n EditorView.theme(\n {\n '&': {\n color: config.foreground,\n backgroundColor: config.background,\n },\n\n '.cm-content': { caretColor: config.cursor },\n\n '.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor },\n '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection':\n { backgroundColor: config.selection },\n\n '.cm-panels': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n },\n '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },\n '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },\n\n '.cm-searchMatch': {\n backgroundColor: config.dropdownBackground,\n outline: `1px solid ${config.dropdownBorder}`,\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: config.selection,\n },\n\n '.cm-activeLine': { backgroundColor: config.activeLine },\n '.cm-selectionMatch': { backgroundColor: config.selection },\n\n '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: config.matchingBracket,\n outline: 'none',\n },\n\n '.cm-gutters': {\n backgroundColor: config.background,\n color: config.gutters,\n border: 'none',\n },\n '.cm-activeLineGutter': { backgroundColor: config.background },\n\n '.cm-foldPlaceholder': {\n backgroundColor: 'transparent',\n border: 'none',\n color: config.foreground,\n },\n '.cm-tooltip': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n border: 'none',\n boxShadow:\n 'inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25)!important',\n maxWidth: '400px',\n },\n '.cm-tooltip .cm-tooltip-arrow:before': {\n borderTopColor: 'transparent',\n borderBottomColor: 'transparent',\n },\n '.cm-tooltip .cm-tooltip-arrow:after': {\n borderTopColor: config.foreground,\n borderBottomColor: config.foreground,\n },\n '.cm-tooltip-autocomplete': {\n '& > ul > li[aria-selected]': {\n background: config.selection,\n color: config.foreground,\n },\n },\n '.cm-tooltip code[class*=language-]': {\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word',\n color: 'rgba(249, 249, 249, 1)',\n },\n '& .cm-scroller': {\n border: '1px solid transparent',\n },\n '& .cm-hover-tooltip-content': {\n fontSize: '12px',\n padding: '0 10px',\n width: '400px',\n overflow: 'auto',\n 'max-height': 'calc(100% - 20px)',\n },\n '& .cm-hover-tooltip-content h1': {\n fontSize: '14px',\n },\n '& .cm-tooltip-autocomplete.cm-tooltip': {\n padding: '5px',\n borderRadius: '5px',\n },\n '& .cm-tooltip.cm-tooltip-autocomplete > ul > li': {\n borderRadius: '3px',\n lineHeight: 1.6,\n },\n },\n { dark: config.dark },\n );\n\nexport const darkSyntaxTheme = [\n { tag: t.keyword, color: config.keyword },\n { tag: t.variableName, color: config.variableName },\n {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable,\n },\n { tag: [t.propertyName], color: config.propertyName },\n {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string,\n },\n {\n tag: [t.function(t.variableName), t.function(t.propertyName), t.labelName],\n color: config.function,\n },\n {\n tag: [t.moduleKeyword, t.controlKeyword],\n color: config.moduleKeyword,\n },\n {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant,\n },\n { tag: t.definition(t.name), color: config.variable },\n { tag: [t.className], color: config.class },\n {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number,\n },\n { tag: [t.typeName], color: config.type, fontStyle: config.type },\n { tag: [t.operatorKeyword], color: config.keyword },\n { tag: [t.url, t.escape, t.regexp, t.link], color: config.regexp },\n { tag: [t.meta, t.comment], color: config.comment },\n { tag: t.strong, fontWeight: 'bold' },\n { tag: t.emphasis, fontStyle: 'italic' },\n { tag: t.link, textDecoration: 'underline' },\n { tag: t.heading, fontWeight: 'bold', color: config.heading },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: config.variable },\n { tag: t.invalid, color: config.invalid },\n { tag: t.strikethrough, textDecoration: 'line-through' },\n { tag: t.separator, color: config.separator },\n];\n","// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nimport { tags as t } from '@lezer/highlight';\nimport { EditorView } from '@codemirror/view';\n\nexport const config = {\n name: 'basicLight',\n dark: false,\n background: '#f4f5f5',\n foreground: '#444d56',\n selection: '#0366d625',\n cursor: '#044289',\n dropdownBackground: '#fff',\n dropdownBorder: '#e1e4e8',\n activeLine: '#c6c6c622',\n matchingBracket: '#34d05840',\n keyword: '#d73a49',\n storage: '#d73a49',\n variable: '#e36209',\n parameter: '#24292e',\n function: '#005cc5',\n string: '#032f62',\n constant: '#005cc5',\n type: '#005cc5',\n class: '#6f42c1',\n number: '#005cc5',\n comment: '#6a737d',\n heading: '#005cc5',\n invalid: '#cb2431',\n regexp: '#032f62',\n};\n\nexport const lightTheme = () =>\n EditorView.theme(\n {\n '&': {\n color: config.foreground,\n backgroundColor: config.background,\n },\n\n '.cm-content': { caretColor: config.cursor },\n\n '.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor },\n '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection':\n { backgroundColor: config.selection },\n\n '.cm-panels': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n },\n '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },\n '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },\n\n '.cm-searchMatch': {\n backgroundColor: config.dropdownBackground,\n outline: `1px solid ${config.dropdownBorder}`,\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: config.selection,\n },\n\n '.cm-activeLine': { backgroundColor: config.activeLine },\n '.cm-selectionMatch': { backgroundColor: config.selection },\n\n '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: config.matchingBracket,\n outline: 'none',\n },\n\n '.cm-gutters': {\n backgroundColor: config.background,\n color: config.foreground,\n border: 'none',\n },\n '.cm-activeLineGutter': { backgroundColor: config.background },\n\n '.cm-foldPlaceholder': {\n backgroundColor: 'transparent',\n border: 'none',\n color: config.foreground,\n },\n '.cm-tooltip': {\n backgroundColor: config.dropdownBackground,\n color: config.foreground,\n border: 'none',\n boxShadow:\n '0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1)!important',\n maxWidth: '400px',\n },\n '.cm-tooltip .cm-tooltip-arrow:before': {\n borderTopColor: 'transparent',\n borderBottomColor: 'transparent',\n },\n '.cm-tooltip .cm-tooltip-arrow:after': {\n borderTopColor: config.foreground,\n borderBottomColor: config.foreground,\n },\n '.cm-tooltip-autocomplete': {\n '& > ul > li[aria-selected]': {\n background: config.selection,\n color: config.foreground,\n },\n },\n\n '.cm-tooltip code[class*=language-]': {\n whiteSpace: 'pre-wrap',\n wordBreak: 'break-word',\n color: 'rgba(28, 31, 35, 1)',\n },\n '& .cm-scroller': {\n border: '1px solid transparent',\n },\n '& .cm-hover-tooltip-content': {\n fontSize: '12px',\n padding: '0 10px',\n width: '400px',\n overflow: 'auto',\n 'max-height': 'calc(100% - 20px)',\n },\n '& .cm-hover-tooltip-content h1': {\n fontSize: '14px',\n },\n '& .cm-tooltip-autocomplete.cm-tooltip': {\n padding: '5px',\n borderRadius: '5px',\n },\n '& .cm-tooltip.cm-tooltip-autocomplete > ul > li': {\n borderRadius: '3px',\n lineHeight: 1.6,\n },\n },\n { dark: config.dark },\n );\n\nexport const lightSyntaxTheme = [\n { tag: t.keyword, color: config.keyword },\n {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable,\n },\n { tag: [t.propertyName], color: config.function },\n {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string,\n },\n { tag: [t.function(t.variableName), t.labelName], color: config.function },\n {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant,\n },\n { tag: [t.definition(t.name), t.separator], color: config.variable },\n { tag: [t.className], color: config.class },\n {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number,\n },\n { tag: [t.typeName], color: config.type, fontStyle: config.type },\n { tag: [t.operator, t.operatorKeyword], color: config.keyword },\n { tag: [t.url, t.escape, t.regexp, t.link], color: config.regexp },\n { tag: [t.meta, t.comment], color: config.comment },\n { tag: t.strong, fontWeight: 'bold' },\n { tag: t.emphasis, fontStyle: 'italic' },\n { tag: t.link, textDecoration: 'underline' },\n { tag: t.heading, fontWeight: 'bold', color: config.heading },\n { tag: [t.atom, t.bool, t.special(t.variableName)], color: config.variable },\n { tag: t.invalid, color: config.invalid },\n { tag: t.strikethrough, textDecoration: 'line-through' },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGA,uBAA0B;AAC1B,kBAA2B;AAEpB,IAA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AA,KAAE,QAAQ,kBAAAA,KAAE,QAAQ,kBAAAA,KAAE,IAAI,GAAG,OAAOD,QAAO,OAAO;AAAA,EACjE,EAAE,KAAK,CAAC,kBAAAC,KAAE,MAAM,kBAAAA,KAAE,OAAO,GAAG,OAAOD,QAAO,QAAQ;AAAA,EAClD,EAAE,KAAK,kBAAAC,KAAE,QAAQ,YAAY,OAAO;AAAA,EACpC,EAAE,KAAK,kBAAAA,KAAE,UAAU,WAAW,SAAS;AAAA,EACvC,EAAE,KAAK,kBAAAA,KAAE,MAAM,gBAAgB,YAAY;AAAA,EAC3C,EAAE,KAAK,kBAAAA,KAAE,SAAS,YAAY,QAAQ,OAAOD,QAAO,QAAQ;AAAA,EAC5D,EAAE,KAAK,CAAC,kBAAAC,KAAE,MAAM,kBAAAA,KAAE,MAAM,kBAAAA,KAAE,QAAQ,kBAAAA,KAAE,YAAY,CAAC,GAAG,OAAOD,QAAO,SAAS;AAAA,EAC3E,EAAE,KAAK,kBAAAC,KAAE,SAAS,OAAOD,QAAO,QAAQ;AAAA,EACxC,EAAE,KAAK,kBAAAC,KAAE,eAAe,gBAAgB,eAAe;AACzD;","names":["t","import_highlight","import_view","config","t"]}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@coze-editor/vscode-themes",
3
+ "version": "0.1.0-alpha.4f717a",
4
+ "description": "vscode-themes",
5
+ "license": "MIT",
6
+ "author": "fengzilong",
7
+ "maintainers": [],
8
+ "sideEffects": [
9
+ "**/*.css",
10
+ "**/*.less",
11
+ "**/*.sass",
12
+ "**/*.scss"
13
+ ],
14
+ "main": "./dist/esm/index.js",
15
+ "module": "./dist/esm/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "dev": "vite --force",
23
+ "lint": "eslint && tsc --noEmit"
24
+ },
25
+ "dependencies": {
26
+ "@lezer/highlight": "~1.2.0"
27
+ },
28
+ "devDependencies": {
29
+ "@codemirror/state": "^6.4.1",
30
+ "@codemirror/view": "^6.26.1",
31
+ "@coze-arch/ts-config": "workspace:*",
32
+ "@coze-editor/eslint-config": "workspace:*",
33
+ "@types/node": "^22",
34
+ "eslint": "9.14.0",
35
+ "tsup": "^8.0.1",
36
+ "typescript": "^5.8.2"
37
+ },
38
+ "peerDependencies": {
39
+ "@codemirror/state": "^6.4.1",
40
+ "@codemirror/view": "^6.26.1"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org"
45
+ },
46
+ "test:main": "./src/index.ts"
47
+ }