@fsegurai/codemirror-theme-solarized-light 6.2.7 → 6.4.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/README.md +40 -32
- package/dist/index.cjs +183 -444
- package/dist/index.js +183 -444
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -1,60 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EditorView } from '@codemirror/view';
|
|
3
|
-
import { tags } from '@lezer/highlight';
|
|
1
|
+
import { defineTheme } from '@fsegurai/codemirror-theme-core';
|
|
4
2
|
|
|
5
3
|
// Helper module for styling options
|
|
6
|
-
const generalContent = {
|
|
7
|
-
fontSize: '14px',
|
|
8
|
-
fontFamily: 'JetBrains Mono, Consolas, monospace',
|
|
9
|
-
lineHeight: '1.6',
|
|
10
|
-
};
|
|
11
|
-
const generalCursor = {
|
|
12
|
-
borderLeftWidth: '2px',
|
|
13
|
-
};
|
|
14
|
-
const generalDiff = {
|
|
15
|
-
insertedTextDecoration: 'none',
|
|
16
|
-
deletedTextDecoration: 'line-through',
|
|
17
|
-
insertedLinePadding: '1px 3px',
|
|
18
|
-
borderRadius: '3px'};
|
|
19
|
-
const generalGutter = {
|
|
20
|
-
border: 'none',
|
|
21
|
-
paddingRight: '8px',
|
|
22
|
-
fontSize: '0.9em',
|
|
23
|
-
fontWeight: '500',
|
|
24
|
-
lineHeight: '1.78', // Adjusted to compensate for 0.9em fontSize (1.6 / 0.9 ≈ 1.78)
|
|
25
|
-
};
|
|
26
|
-
const generalPanel = {
|
|
27
|
-
border: 'none',
|
|
28
|
-
borderRadius: '4px',
|
|
29
|
-
padding: '2px 10px',
|
|
30
|
-
};
|
|
31
|
-
const generalLine = {
|
|
32
|
-
borderRadius: '2px',
|
|
33
|
-
};
|
|
34
|
-
const generalMatching = {
|
|
35
|
-
borderRadius: '2px',
|
|
36
|
-
};
|
|
37
|
-
const generalPlaceholder = {
|
|
38
|
-
borderRadius: '4px',
|
|
39
|
-
padding: '0 5px',
|
|
40
|
-
margin: '0 2px',
|
|
41
|
-
};
|
|
42
|
-
const generalScroller = {
|
|
43
|
-
width: '12px',
|
|
44
|
-
height: '12px',
|
|
45
|
-
borderRadius: '6px',
|
|
46
|
-
};
|
|
47
|
-
const generalSearchField = {
|
|
48
|
-
borderRadius: '4px',
|
|
49
|
-
padding: '2px 6px',
|
|
50
|
-
};
|
|
51
|
-
const generalTooltip = {
|
|
52
|
-
borderRadius: '4px',
|
|
53
|
-
borderRadiusSelected: '3px',
|
|
54
|
-
lineHeight: '1.3',
|
|
55
|
-
padding: '4px 8px',
|
|
56
|
-
paddingRight: '8px',
|
|
57
|
-
};
|
|
58
4
|
/**
|
|
59
5
|
* Function to apply merge revert styles for a theme
|
|
60
6
|
* @param styles Styles for the merge revert buttons
|
|
@@ -110,8 +56,8 @@ function applyMergeRevertStyles(styles) {
|
|
|
110
56
|
* Colors organized by function with visual color blocks
|
|
111
57
|
*/
|
|
112
58
|
// Base colors from Solarized palette
|
|
113
|
-
const base00 = '#
|
|
114
|
-
base01 = '#
|
|
59
|
+
const base00 = '#50656d', // Body text/default text color
|
|
60
|
+
base01 = '#4d6269', // Optional emphasized content
|
|
115
61
|
base02 = '#073642', // Background highlights
|
|
116
62
|
base03 = '#002b36', // Comments, invisible, line highlighting
|
|
117
63
|
base04 = '#dfd9c8', // Dark background tint
|
|
@@ -120,415 +66,208 @@ base06 = '#cceeff7a', // Light background tint (for selection)
|
|
|
120
66
|
base07 = '#fdf6e3', // Background - light base
|
|
121
67
|
base08 = '#eee8d5', // Background tint - light secondary
|
|
122
68
|
// Accent colors from Solarized palette
|
|
123
|
-
base09 = '#
|
|
124
|
-
base0A = '#
|
|
125
|
-
base0B = '#
|
|
126
|
-
base0C = '#
|
|
127
|
-
base0D = '#
|
|
128
|
-
base0E = '#
|
|
129
|
-
base0F = '#
|
|
130
|
-
base10 = '#
|
|
69
|
+
base09 = '#c40e18', // Red
|
|
70
|
+
base0A = '#af3a03', // Orange
|
|
71
|
+
base0B = '#7c5d05', // Yellow
|
|
72
|
+
base0C = '#5a6804', // Green
|
|
73
|
+
base0D = '#0c6e68', // Cyan
|
|
74
|
+
base0E = '#0a66a1', // Blue
|
|
75
|
+
base0F = '#565aaa', // Violet
|
|
76
|
+
base10 = '#ba166e'; // Magenta
|
|
131
77
|
// UI specific colors
|
|
132
|
-
const invalid = '#
|
|
133
|
-
darkBackground = base04, // Darker background for panels
|
|
134
|
-
highlightBackground = base06, // Active line highlight
|
|
135
|
-
background = base07, // Main editor background
|
|
78
|
+
const invalid = '#c50f0a', // Bright red for errors
|
|
136
79
|
tooltipBackground = '#f0e9d7', // Tooltip background
|
|
137
80
|
selection = '#ffd07a', // Selection background
|
|
138
81
|
selectionMatch = '#e1dbca90', // Selection match with opacity
|
|
139
|
-
|
|
140
|
-
activeBracketBg = '#93a1a140', // Active bracket background with opacity
|
|
141
|
-
activeBracketBorder = base0E, // Active bracket border - blue
|
|
142
|
-
diagnosticWarning = base0B, // Warning color - yellow
|
|
143
|
-
linkColor = base0E; // Link color - blue
|
|
82
|
+
activeBracketBg = '#93a1a140'; // Active bracket background with opacity
|
|
144
83
|
// Diff/merge specific colors
|
|
145
84
|
const addedBackground = '#85990020', // Solarized green with transparency for insertions
|
|
146
|
-
removedBackground = '#dc322f20'
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
'.cm-selectionLayer': {
|
|
179
|
-
zIndex: 100,
|
|
180
|
-
},
|
|
181
|
-
// Search functionality
|
|
182
|
-
'.cm-searchMatch': {
|
|
183
|
-
backgroundColor: '#93a1a180',
|
|
184
|
-
outline: `1px solid ${base0E}`,
|
|
185
|
-
color: base01,
|
|
186
|
-
borderRadius: generalSearchField.borderRadius,
|
|
187
|
-
'& span': {
|
|
188
|
-
color: base01,
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
192
|
-
backgroundColor: base0E,
|
|
193
|
-
color: base08,
|
|
194
|
-
padding: generalSearchField.padding,
|
|
195
|
-
'& span': {
|
|
196
|
-
color: base08,
|
|
85
|
+
removedBackground = '#dc322f20'; // Solarized red with transparency for deletions
|
|
86
|
+
const theme = /*@__PURE__*/defineTheme({
|
|
87
|
+
name: 'Solarized Light',
|
|
88
|
+
dark: false,
|
|
89
|
+
ui: {
|
|
90
|
+
background: base07,
|
|
91
|
+
foreground: base00,
|
|
92
|
+
border: 'none',
|
|
93
|
+
cursor: base01,
|
|
94
|
+
cursorWidth: '2px',
|
|
95
|
+
cursorShadow: 'none',
|
|
96
|
+
fatCursor: { background: `${base01}99`, border: 'none' },
|
|
97
|
+
selection: '#fed996',
|
|
98
|
+
selectionInactive: '#fed996',
|
|
99
|
+
selectionForeground: null,
|
|
100
|
+
selectionOutline: 'none',
|
|
101
|
+
activeLine: base06,
|
|
102
|
+
activeLineBorder: { left: 'none', right: 'none' },
|
|
103
|
+
ghostText: base01,
|
|
104
|
+
ghostTextOpacity: '0.5',
|
|
105
|
+
specialChar: base09,
|
|
106
|
+
focusRing: `0 0 0 2px ${base07}, 0 0 0 4px ${base0E}`,
|
|
107
|
+
outlineWidth: '1px',
|
|
108
|
+
searchMatch: {
|
|
109
|
+
background: `${base05}80`,
|
|
110
|
+
outline: base0E,
|
|
111
|
+
foreground: base01,
|
|
112
|
+
shadow: 'none',
|
|
113
|
+
selectedBackground: base0E,
|
|
114
|
+
selectedForeground: base08,
|
|
115
|
+
selectedOutline: `1px solid ${base0E}`,
|
|
116
|
+
selectedShadow: 'none',
|
|
197
117
|
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
backgroundColor: tooltipBackground,
|
|
218
|
-
color: base00,
|
|
219
|
-
border: generalPanel.border,
|
|
220
|
-
borderRadius: generalPanel.borderRadius,
|
|
221
|
-
padding: generalPanel.padding,
|
|
222
|
-
},
|
|
223
|
-
'.cm-panel button:hover': {
|
|
224
|
-
backgroundColor: highlightBackground,
|
|
225
|
-
},
|
|
226
|
-
// Line highlighting
|
|
227
|
-
'.cm-activeLine': {
|
|
228
|
-
backgroundColor: highlightBackground,
|
|
229
|
-
borderRadius: generalLine.borderRadius,
|
|
230
|
-
zIndex: 1,
|
|
231
|
-
},
|
|
232
|
-
// Gutters
|
|
233
|
-
'.cm-gutters': {
|
|
234
|
-
backgroundColor: darkBackground,
|
|
235
|
-
color: base01,
|
|
236
|
-
border: generalGutter.border,
|
|
237
|
-
borderRight: `1px solid ${base04}`,
|
|
238
|
-
paddingRight: generalGutter.paddingRight,
|
|
239
|
-
},
|
|
240
|
-
'.cm-activeLineGutter': {
|
|
241
|
-
backgroundColor: highlightBackground,
|
|
242
|
-
color: base00,
|
|
243
|
-
fontWeight: generalGutter.fontWeight,
|
|
244
|
-
},
|
|
245
|
-
'.cm-lineNumbers': {
|
|
246
|
-
fontSize: generalGutter.fontSize,
|
|
247
|
-
lineHeight: generalGutter.lineHeight,
|
|
248
|
-
},
|
|
249
|
-
'.cm-foldGutter': {
|
|
250
|
-
fontSize: generalGutter.fontSize,
|
|
251
|
-
lineHeight: generalGutter.lineHeight,
|
|
252
|
-
},
|
|
253
|
-
'.cm-foldGutter .cm-gutterElement': {
|
|
254
|
-
color: base01,
|
|
255
|
-
cursor: 'pointer',
|
|
256
|
-
},
|
|
257
|
-
'.cm-foldGutter .cm-gutterElement:hover': {
|
|
258
|
-
color: base00,
|
|
259
|
-
},
|
|
260
|
-
// Diff/Merge View Styles
|
|
261
|
-
// Inserted/Added Content
|
|
262
|
-
'.cm-insertedLine': {
|
|
263
|
-
textDecoration: generalDiff.insertedTextDecoration,
|
|
264
|
-
backgroundColor: addedBackground,
|
|
265
|
-
color: addedText,
|
|
266
|
-
padding: generalDiff.insertedLinePadding,
|
|
267
|
-
borderRadius: generalDiff.borderRadius,
|
|
268
|
-
},
|
|
269
|
-
'ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))': {
|
|
270
|
-
textDecoration: generalDiff.insertedTextDecoration,
|
|
271
|
-
backgroundColor: `${addedBackground} !important`,
|
|
272
|
-
color: addedText,
|
|
273
|
-
padding: generalDiff.insertedLinePadding,
|
|
274
|
-
borderRadius: generalDiff.borderRadius,
|
|
275
|
-
border: `1px solid ${addedText}40`,
|
|
276
|
-
},
|
|
277
|
-
'ins.cm-insertedLine .cm-changedText': {
|
|
278
|
-
background: 'transparent !important',
|
|
279
|
-
},
|
|
280
|
-
// Deleted/Removed Content
|
|
281
|
-
'.cm-deletedLine': {
|
|
282
|
-
textDecoration: generalDiff.deletedTextDecoration,
|
|
283
|
-
backgroundColor: removedBackground,
|
|
284
|
-
color: removedText,
|
|
285
|
-
padding: generalDiff.insertedLinePadding,
|
|
286
|
-
borderRadius: generalDiff.borderRadius,
|
|
287
|
-
},
|
|
288
|
-
'del.cm-deletedLine, del, del:not(:has(.cm-deletedText))': {
|
|
289
|
-
textDecoration: generalDiff.deletedTextDecoration,
|
|
290
|
-
backgroundColor: `${removedBackground} !important`,
|
|
291
|
-
color: removedText,
|
|
292
|
-
padding: generalDiff.insertedLinePadding,
|
|
293
|
-
borderRadius: generalDiff.borderRadius,
|
|
294
|
-
border: `1px solid ${removedText}40`,
|
|
295
|
-
},
|
|
296
|
-
'del .cm-deletedText, del .cm-changedText': {
|
|
297
|
-
background: 'transparent !important',
|
|
298
|
-
},
|
|
299
|
-
// Tooltips and autocomplete
|
|
300
|
-
'.cm-tooltip': {
|
|
301
|
-
backgroundColor: tooltipBackground,
|
|
302
|
-
border: `1px solid ${base01}`,
|
|
303
|
-
borderRadius: generalTooltip.borderRadius,
|
|
304
|
-
padding: generalTooltip.padding,
|
|
305
|
-
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
306
|
-
},
|
|
307
|
-
'.cm-tooltip-autocomplete': {
|
|
308
|
-
'& > ul': {
|
|
309
|
-
backgroundColor: tooltipBackground,
|
|
310
|
-
border: 'none',
|
|
118
|
+
selectionMatch: { background: selectionMatch, outline: `${base05}50` },
|
|
119
|
+
matchingBracket: { background: activeBracketBg, outline: base0E, shadow: 'none' },
|
|
120
|
+
nonMatchingBracket: { background: `${base09}40`, outline: invalid },
|
|
121
|
+
panel: {
|
|
122
|
+
background: base04,
|
|
123
|
+
foreground: base00,
|
|
124
|
+
border: base04,
|
|
125
|
+
borderWidth: '1px',
|
|
126
|
+
outline: 'none',
|
|
127
|
+
shadow: 'none',
|
|
128
|
+
buttonBackground: tooltipBackground,
|
|
129
|
+
buttonForeground: base00,
|
|
130
|
+
buttonBorder: 'none',
|
|
131
|
+
buttonHoverBackground: base06,
|
|
132
|
+
buttonHoverForeground: base00,
|
|
133
|
+
buttonHoverBorder: 'none',
|
|
134
|
+
buttonHoverShadow: 'none',
|
|
135
|
+
inputBackground: base07,
|
|
136
|
+
inputBorder: `1px solid ${base04}`,
|
|
311
137
|
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
138
|
+
gutter: {
|
|
139
|
+
background: base04,
|
|
140
|
+
foreground: base01,
|
|
141
|
+
border: base04,
|
|
142
|
+
activeBackground: base06,
|
|
143
|
+
activeForeground: base00,
|
|
144
|
+
activeFontWeight: '500',
|
|
145
|
+
activeBorder: 'none',
|
|
146
|
+
foldHover: base00,
|
|
315
147
|
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
148
|
+
foldPlaceholder: {
|
|
149
|
+
background: tooltipBackground,
|
|
150
|
+
foreground: base03,
|
|
151
|
+
border: `${base05}70`,
|
|
152
|
+
borderStyle: 'dotted',
|
|
320
153
|
},
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
154
|
+
tooltip: {
|
|
155
|
+
background: tooltipBackground,
|
|
156
|
+
foreground: base00,
|
|
157
|
+
border: base01,
|
|
158
|
+
shadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
159
|
+
listBackground: tooltipBackground,
|
|
160
|
+
listBorder: 'none',
|
|
161
|
+
hoverBackground: 'transparent',
|
|
162
|
+
selectedBackground: selection,
|
|
163
|
+
selectedForeground: base01,
|
|
164
|
+
selectedBorder: 'none',
|
|
165
|
+
icon: base01,
|
|
166
|
+
detail: base01,
|
|
324
167
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
168
|
+
diff: {
|
|
169
|
+
insertedBackground: addedBackground,
|
|
170
|
+
insertedForeground: base0C,
|
|
171
|
+
insertedBorder: `1px solid ${base0C}40`,
|
|
172
|
+
deletedBackground: removedBackground,
|
|
173
|
+
deletedForeground: base09,
|
|
174
|
+
deletedBorder: `1px solid ${base09}40`,
|
|
328
175
|
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
'.cm-diagnostic': {
|
|
340
|
-
'&-error': {
|
|
341
|
-
borderLeft: `3px solid ${base09}`,
|
|
176
|
+
diagnostic: {
|
|
177
|
+
error: base09,
|
|
178
|
+
warning: base0B,
|
|
179
|
+
info: base0E,
|
|
180
|
+
hint: base0E,
|
|
181
|
+
errorBackground: 'transparent',
|
|
182
|
+
warningBackground: 'transparent',
|
|
183
|
+
infoBackground: 'transparent',
|
|
184
|
+
borderWidth: '3px',
|
|
185
|
+
underlineWidth: '2px',
|
|
342
186
|
},
|
|
343
|
-
|
|
344
|
-
|
|
187
|
+
scrollbar: {
|
|
188
|
+
track: base04,
|
|
189
|
+
trackBorder: 'none',
|
|
190
|
+
thumb: base04,
|
|
191
|
+
thumbBorder: `3px solid ${base04}`,
|
|
192
|
+
thumbHover: base05,
|
|
193
|
+
thumbHoverShadow: 'none',
|
|
345
194
|
},
|
|
346
|
-
|
|
347
|
-
|
|
195
|
+
merge: {
|
|
196
|
+
backgroundColor: base04,
|
|
197
|
+
borderColor: base02,
|
|
198
|
+
buttonColor: base0D,
|
|
199
|
+
buttonHoverColor: activeBracketBg,
|
|
348
200
|
},
|
|
349
201
|
},
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
color:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
* Enhanced syntax highlighting for the Solarized Light theme
|
|
411
|
-
*/
|
|
412
|
-
const solarizedLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
413
|
-
// Keywords and control flow
|
|
414
|
-
{ tag: tags.keyword, color: base0C, fontWeight: 'bold' },
|
|
415
|
-
{ tag: tags.controlKeyword, color: base0C, fontWeight: 'bold' },
|
|
416
|
-
{ tag: tags.moduleKeyword, color: base0C, fontWeight: 'bold' },
|
|
417
|
-
// Names and variables
|
|
418
|
-
{ tag: [tags.name, tags.deleted, tags.character, tags.macroName], color: base0D },
|
|
419
|
-
{ tag: [tags.variableName], color: base00 },
|
|
420
|
-
{ tag: [tags.propertyName], color: base0D, fontStyle: 'normal' },
|
|
421
|
-
// Classes and types
|
|
422
|
-
{ tag: [tags.typeName], color: base0A },
|
|
423
|
-
{ tag: [tags.className], color: base0A, fontStyle: 'italic' },
|
|
424
|
-
{ tag: [tags.namespace], color: base10, fontStyle: 'italic' },
|
|
425
|
-
// Operators and punctuation
|
|
426
|
-
{ tag: [tags.operator, tags.operatorKeyword], color: base0F },
|
|
427
|
-
{ tag: [tags.bracket], color: base10 },
|
|
428
|
-
{ tag: [tags.brace], color: base10 },
|
|
429
|
-
{ tag: [tags.punctuation], color: base01 },
|
|
430
|
-
// Functions and parameters
|
|
431
|
-
{ tag: [/*@__PURE__*/tags.function(tags.variableName)], color: base0E },
|
|
432
|
-
{ tag: [tags.labelName], color: base10 },
|
|
433
|
-
{ tag: [/*@__PURE__*/tags.definition(/*@__PURE__*/tags.function(tags.variableName))], color: base0E },
|
|
434
|
-
{ tag: [/*@__PURE__*/tags.definition(tags.variableName)], color: base0D },
|
|
435
|
-
// Constants and literals
|
|
436
|
-
{ tag: tags.number, color: base10 },
|
|
437
|
-
{ tag: tags.changed, color: base10 },
|
|
438
|
-
{ tag: tags.annotation, color: invalid, fontStyle: 'italic' },
|
|
439
|
-
{ tag: tags.modifier, color: base10, fontStyle: 'italic' },
|
|
440
|
-
{ tag: tags.self, color: base10 },
|
|
441
|
-
{
|
|
442
|
-
tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
|
443
|
-
color: base0B,
|
|
444
|
-
},
|
|
445
|
-
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base10 },
|
|
446
|
-
// Strings and regex
|
|
447
|
-
{ tag: [tags.processingInstruction, tags.inserted], color: base0C },
|
|
448
|
-
{ tag: [/*@__PURE__*/tags.special(tags.string), tags.regexp], color: invalid },
|
|
449
|
-
{ tag: tags.string, color: base0B },
|
|
450
|
-
// Punctuation and structure
|
|
451
|
-
{ tag: /*@__PURE__*/tags.definition(tags.typeName), color: base0A, fontWeight: 'bold' },
|
|
452
|
-
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: base0D },
|
|
453
|
-
// Comments and documentation
|
|
454
|
-
{ tag: tags.meta, color: base09 },
|
|
455
|
-
{ tag: tags.comment, fontStyle: 'italic', color: base01 },
|
|
456
|
-
{ tag: tags.docComment, fontStyle: 'italic', color: base01 },
|
|
457
|
-
// HTML/XML elements
|
|
458
|
-
{ tag: [tags.tagName], color: base0E },
|
|
459
|
-
{ tag: [tags.attributeName], color: base00 },
|
|
460
|
-
// Markdown and text formatting
|
|
461
|
-
{ tag: [tags.heading], fontWeight: 'bold', color: base0B },
|
|
462
|
-
{ tag: tags.heading1, color: base03 },
|
|
463
|
-
{ tag: tags.heading2, color: base02 },
|
|
464
|
-
{ tag: tags.heading3, color: base02 },
|
|
465
|
-
{ tag: tags.heading4, color: base02 },
|
|
466
|
-
{ tag: tags.heading5, color: base02 },
|
|
467
|
-
{ tag: tags.heading6, color: base02 },
|
|
468
|
-
{ tag: [tags.strong], fontWeight: 'bold', color: base02 },
|
|
469
|
-
{ tag: [tags.emphasis], fontStyle: 'italic', color: base0C },
|
|
470
|
-
// Links and URLs
|
|
471
|
-
{
|
|
472
|
-
tag: [tags.link],
|
|
473
|
-
color: base0D,
|
|
474
|
-
fontWeight: '500',
|
|
475
|
-
textDecoration: 'underline',
|
|
476
|
-
textUnderlinePosition: 'under',
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
tag: [tags.url],
|
|
480
|
-
color: base0B,
|
|
481
|
-
textDecoration: 'underline',
|
|
482
|
-
textUnderlineOffset: '2px',
|
|
483
|
-
},
|
|
484
|
-
// Special states
|
|
485
|
-
{
|
|
486
|
-
tag: [tags.invalid],
|
|
487
|
-
color: base01,
|
|
488
|
-
textDecoration: 'underline wavy',
|
|
489
|
-
borderBottom: `1px dotted ${base09}`,
|
|
202
|
+
syntax: {
|
|
203
|
+
keyword: { color: base0C, fontWeight: 'bold' },
|
|
204
|
+
definitionKeyword: { color: base0C },
|
|
205
|
+
modifier: { color: base10, fontStyle: 'italic' },
|
|
206
|
+
separator: { color: base0D },
|
|
207
|
+
operator: { color: base0F },
|
|
208
|
+
punctuation: { color: base01 },
|
|
209
|
+
bracket: { color: base10 },
|
|
210
|
+
angleBracket: { color: base01 },
|
|
211
|
+
squareBracket: { color: base09 },
|
|
212
|
+
name: { color: base0D },
|
|
213
|
+
variable: { color: base00 },
|
|
214
|
+
localVariable: { color: base0D },
|
|
215
|
+
variableDefinition: { color: base0D },
|
|
216
|
+
function: { color: base0E },
|
|
217
|
+
self: { color: base10 },
|
|
218
|
+
label: { color: base10 },
|
|
219
|
+
property: { color: base0D, fontStyle: 'normal' },
|
|
220
|
+
type: { color: base0A },
|
|
221
|
+
typeDefinition: { color: base0A, fontWeight: 'bold' },
|
|
222
|
+
className: { color: base0A, fontStyle: 'italic' },
|
|
223
|
+
namespace: { color: base10, fontStyle: 'italic' },
|
|
224
|
+
tag: { color: base0E },
|
|
225
|
+
attribute: { color: base00 },
|
|
226
|
+
content: { color: base00 },
|
|
227
|
+
string: { color: base0B },
|
|
228
|
+
regexp: { color: invalid },
|
|
229
|
+
constantName: { color: base0B },
|
|
230
|
+
standardName: { color: base0B },
|
|
231
|
+
number: { color: base10 },
|
|
232
|
+
constant: { color: base10 },
|
|
233
|
+
comment: { fontStyle: 'italic', color: base01 },
|
|
234
|
+
meta: { color: base09 },
|
|
235
|
+
processingInstruction: { color: base0C },
|
|
236
|
+
annotation: { color: invalid, fontStyle: 'italic' },
|
|
237
|
+
heading: { fontWeight: 'bold', color: base0B },
|
|
238
|
+
headingLevel: { color: base02 },
|
|
239
|
+
heading1: { color: base03 },
|
|
240
|
+
list: { color: base0B },
|
|
241
|
+
quote: { color: base0C },
|
|
242
|
+
monospace: { color: base00 },
|
|
243
|
+
contentSeparator: { color: base0B },
|
|
244
|
+
link: {
|
|
245
|
+
color: base0D,
|
|
246
|
+
fontWeight: '500',
|
|
247
|
+
textDecoration: 'underline',
|
|
248
|
+
textUnderlinePosition: 'under',
|
|
249
|
+
},
|
|
250
|
+
url: { color: base0B, textDecoration: 'underline', textUnderlineOffset: '2px' },
|
|
251
|
+
emphasis: { fontStyle: 'italic', color: base0C },
|
|
252
|
+
strong: { fontWeight: 'bold', color: base02 },
|
|
253
|
+
strikethrough: { color: invalid, textDecoration: 'line-through' },
|
|
254
|
+
invalid: {
|
|
255
|
+
color: base01,
|
|
256
|
+
textDecoration: 'underline wavy',
|
|
257
|
+
borderBottom: `1px dotted ${base09}`,
|
|
258
|
+
},
|
|
259
|
+
inserted: { color: base0C },
|
|
260
|
+
deleted: { color: base09 },
|
|
261
|
+
changed: { color: base10 },
|
|
490
262
|
},
|
|
491
|
-
|
|
492
|
-
// Enhanced syntax highlighting
|
|
493
|
-
{ tag: /*@__PURE__*/tags.constant(tags.name), color: base0B },
|
|
494
|
-
{ tag: tags.deleted, color: base09 },
|
|
495
|
-
{ tag: tags.squareBracket, color: base09 },
|
|
496
|
-
{ tag: tags.angleBracket, color: base01 },
|
|
497
|
-
// Additional specific styles
|
|
498
|
-
{ tag: tags.monospace, color: base00 },
|
|
499
|
-
{ tag: [tags.contentSeparator], color: base0B },
|
|
500
|
-
{ tag: tags.quote, color: base0C },
|
|
501
|
-
{ tag: tags.integer, color: base10 },
|
|
502
|
-
{ tag: tags.float, color: base10 },
|
|
503
|
-
{ tag: tags.null, color: base10 },
|
|
504
|
-
{ tag: tags.attributeValue, color: base0B },
|
|
505
|
-
{ tag: tags.escape, color: base0B },
|
|
506
|
-
{ tag: tags.paren, color: base10 },
|
|
507
|
-
{ tag: tags.lineComment, color: base01, fontStyle: 'italic' },
|
|
508
|
-
{ tag: tags.blockComment, color: base01, fontStyle: 'italic' },
|
|
509
|
-
{ tag: tags.definitionKeyword, color: base0C },
|
|
510
|
-
{ tag: tags.arithmeticOperator, color: base0F },
|
|
511
|
-
{ tag: tags.logicOperator, color: base0F },
|
|
512
|
-
{ tag: tags.compareOperator, color: base0F },
|
|
513
|
-
{ tag: tags.bitwiseOperator, color: base0F },
|
|
514
|
-
{ tag: tags.updateOperator, color: base0F },
|
|
515
|
-
{ tag: tags.derefOperator, color: base0F },
|
|
516
|
-
{ tag: /*@__PURE__*/tags.local(tags.variableName), color: base0D },
|
|
517
|
-
{ tag: tags.list, color: base0B },
|
|
518
|
-
{ tag: tags.unit, color: base10 },
|
|
519
|
-
]);
|
|
263
|
+
});
|
|
520
264
|
/**
|
|
521
265
|
* Combined Solarized Light theme extension
|
|
522
266
|
*/
|
|
523
|
-
const solarizedLight =
|
|
267
|
+
const solarizedLight = theme.extension;
|
|
524
268
|
/**
|
|
525
269
|
* Solarized Light merge revert styles configuration
|
|
526
270
|
*/
|
|
527
|
-
const solarizedLightMergeStyles =
|
|
528
|
-
backgroundColor: base04,
|
|
529
|
-
borderColor: base02,
|
|
530
|
-
buttonColor: base0D,
|
|
531
|
-
buttonHoverColor: `${base05}40`,
|
|
532
|
-
};
|
|
271
|
+
const solarizedLightMergeStyles = theme.mergeStyles;
|
|
533
272
|
|
|
534
273
|
export { applyMergeRevertStyles, solarizedLight, solarizedLightMergeStyles };
|