@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.
Files changed (4) hide show
  1. package/README.md +40 -32
  2. package/dist/index.cjs +183 -444
  3. package/dist/index.js +183 -444
  4. package/package.json +4 -1
package/dist/index.js CHANGED
@@ -1,60 +1,6 @@
1
- import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
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 = '#657b83', // Body text/default text color
114
- base01 = '#586e75', // Optional emphasized content
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 = '#dc322f', // Red
124
- base0A = '#cb4b16', // Orange
125
- base0B = '#b58900', // Yellow
126
- base0C = '#859900', // Green
127
- base0D = '#2aa198', // Cyan
128
- base0E = '#268bd2', // Blue
129
- base0F = '#6c71c4', // Violet
130
- base10 = '#d33682'; // Magenta
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 = '#d30102', // Bright red for errors
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
- cursor = base01, // Cursor color
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', // Solarized red with transparency for deletions
147
- addedText = '#859900', // Solarized green for added text
148
- removedText = '#dc322f'; // Solarized red for removed text
149
- /**
150
- * Enhanced editor theme styles for Solarized Light
151
- */
152
- const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
153
- // Base editor styles
154
- '&': {
155
- color: base00,
156
- backgroundColor: background,
157
- fontSize: generalContent.fontSize,
158
- fontFamily: generalContent.fontFamily,
159
- },
160
- // Content and cursor
161
- '.cm-content': {
162
- caretColor: cursor,
163
- lineHeight: generalContent.lineHeight,
164
- },
165
- '.cm-cursor, .cm-dropCursor': {
166
- borderLeftColor: cursor,
167
- borderLeftWidth: generalCursor.borderLeftWidth,
168
- },
169
- '.cm-fat-cursor': {
170
- backgroundColor: `${cursor}99`,
171
- color: background,
172
- },
173
- // Selection
174
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
175
- backgroundColor: selection,
176
- },
177
- // Make sure selection appears above active line
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
- '.cm-search.cm-panel.cm-textfield': {
200
- color: base00,
201
- borderRadius: generalSearchField.borderRadius,
202
- padding: generalSearchField.padding,
203
- },
204
- // Panels
205
- '.cm-panels': {
206
- backgroundColor: darkBackground,
207
- color: base00,
208
- borderRadius: '4px',
209
- },
210
- '.cm-panels.cm-panels-top': {
211
- borderBottom: `1px solid ${base04}`,
212
- },
213
- '.cm-panels.cm-panels-bottom': {
214
- borderTop: `1px solid ${base04}`,
215
- },
216
- '.cm-panel button': {
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
- '& > ul > li': {
313
- padding: generalTooltip.padding,
314
- lineHeight: generalTooltip.lineHeight,
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
- '& > ul > li[aria-selected]': {
317
- backgroundColor: selection,
318
- color: base01,
319
- borderRadius: generalTooltip.borderRadiusSelected,
148
+ foldPlaceholder: {
149
+ background: tooltipBackground,
150
+ foreground: base03,
151
+ border: `${base05}70`,
152
+ borderStyle: 'dotted',
320
153
  },
321
- '& > ul > li > span.cm-completionIcon': {
322
- color: base01,
323
- paddingRight: generalTooltip.paddingRight,
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
- '& > ul > li > span.cm-completionDetail': {
326
- color: base01,
327
- fontStyle: 'italic',
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
- '.cm-tooltip .cm-tooltip-arrow:before': {
331
- borderTopColor: 'transparent',
332
- borderBottomColor: 'transparent',
333
- },
334
- '.cm-tooltip .cm-tooltip-arrow:after': {
335
- borderTopColor: tooltipBackground,
336
- borderBottomColor: tooltipBackground,
337
- },
338
- // Diagnostics styling
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
- '&-warning': {
344
- borderLeft: `3px solid ${diagnosticWarning}`,
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
- '&-info': {
347
- borderLeft: `3px solid ${linkColor}`,
195
+ merge: {
196
+ backgroundColor: base04,
197
+ borderColor: base02,
198
+ buttonColor: base0D,
199
+ buttonHoverColor: activeBracketBg,
348
200
  },
349
201
  },
350
- '.cm-lintPoint-error': {
351
- borderBottom: `2px wavy ${base09}`,
352
- },
353
- '.cm-lintPoint-warning': {
354
- borderBottom: `2px wavy ${diagnosticWarning}`,
355
- },
356
- // Matching brackets
357
- '.cm-matchingBracket': {
358
- backgroundColor: activeBracketBg,
359
- outline: `1px solid ${activeBracketBorder}`,
360
- borderRadius: generalMatching.borderRadius,
361
- },
362
- '.cm-nonmatchingBracket': {
363
- backgroundColor: `${base09}40`,
364
- outline: `1px solid ${invalid}`,
365
- borderRadius: generalMatching.borderRadius,
366
- },
367
- // Selection matches
368
- '.cm-selectionMatch': {
369
- backgroundColor: selectionMatch,
370
- outline: `1px solid ${base05}50`,
371
- borderRadius: generalMatching.borderRadius,
372
- },
373
- // Fold placeholder
374
- '.cm-foldPlaceholder': {
375
- backgroundColor: tooltipBackground,
376
- color: base03,
377
- border: `1px dotted ${base05}70`,
378
- borderRadius: generalPlaceholder.borderRadius,
379
- padding: generalPlaceholder.padding,
380
- margin: generalPlaceholder.margin,
381
- },
382
- // Focus outline
383
- '&.cm-focused': {
384
- outline: 'none',
385
- boxShadow: `0 0 0 2px ${background}, 0 0 0 3px ${base0E}40`,
386
- },
387
- // Scrollbars
388
- '& .cm-scroller::-webkit-scrollbar': {
389
- width: generalScroller.width,
390
- height: generalScroller.height,
391
- },
392
- '& .cm-scroller::-webkit-scrollbar-track': {
393
- background: darkBackground,
394
- },
395
- '& .cm-scroller::-webkit-scrollbar-thumb': {
396
- backgroundColor: base04,
397
- borderRadius: generalScroller.borderRadius,
398
- border: `3px solid ${darkBackground}`,
399
- },
400
- '& .cm-scroller::-webkit-scrollbar-thumb:hover': {
401
- backgroundColor: base05,
402
- },
403
- // Ghost text
404
- '.cm-ghostText': {
405
- opacity: '0.5',
406
- color: base01,
407
- },
408
- }, { dark: false });
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
- { tag: [tags.strikethrough], color: invalid, textDecoration: 'line-through' },
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 = [solarizedLightTheme, /*@__PURE__*/syntaxHighlighting(solarizedLightHighlightStyle)];
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 };