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