@fsegurai/codemirror-theme-palenight 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 +168 -436
  3. package/dist/index.js +168 -436
  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
@@ -113,9 +59,9 @@ function applyMergeRevertStyles(styles) {
113
59
  */
114
60
  // Base colors
115
61
  const base00 = '#292D3E', // Background - deep indigo
116
- base01 = '#A6ACCD', // Foreground - lavender blue
62
+ base01 = '#adb4d5', // Foreground - lavender blue
117
63
  base02 = '#444267', // Selection background - muted indigo
118
- base03 = '#676E95', // Comments, invisible - steel blue
64
+ base03 = '#9ca5ce', // Comments, invisible - steel blue
119
65
  base04 = '#BFC7D5', // Cursor - lighter lavender
120
66
  // Accent colors
121
67
  base05 = '#C3E88D', // Strings - light green
@@ -124,408 +70,194 @@ base07 = '#C792EA', // Classes, Types - purple
124
70
  base08 = '#F78C6C', // Numbers, Constants - orange
125
71
  base09 = '#FFCB6B', // Classes, Attributes - yellow
126
72
  base0A = '#89DDFF', // Punctuation, Operators - light blue
127
- base0B = '#FF5370', // Tags, Errors - red
128
- base0C = '#BB80B3', // Special elements - mauve
73
+ base0B = '#fe7f8d', // Tags, Errors - red
74
+ base0C = '#cf93c7', // Special elements - mauve
129
75
  base0D = '#80CBC4'; // Properties - seafoam
130
76
  // UI specific colors
131
- const invalid = '#FF5370', // Error color - red
132
- darkBackground = '#202331', // Darker background for panels and gutter
77
+ const darkBackground = '#202331', // Darker background for panels and gutter
133
78
  highlightBackground = '#2e324817', // Active line background
134
- background = base00, // Main editor background
135
79
  tooltipBackground = '#343A50', // Tooltip background
136
- selection = base02, // Selection background
137
80
  selectionMatch = '#444267AA', // Selection match with opacity
138
- cursor = base04, // Cursor color
139
- activeBracketBg = '#2E3248', // Active bracket background
140
- activeBracketBorder = base06, // Active bracket border - sky blue
141
- diagnosticWarning = base09, // Warning color - yellow
142
- linkColor = base06, // Link color - sky blue
143
- visitedLinkColor = base07; // Visited link color - purple
81
+ activeBracketBg = '#2E3248'; // Active bracket background
144
82
  // Diff/merge specific colors
145
83
  const addedBackground = '#2c3c2e80', // Dark green with transparency for insertions
146
- removedBackground = '#3e2e3180', // Dark red with transparency for deletions
147
- addedText = '#C3E88D', // Palenight green for added text
148
- removedText = '#FF5370'; // Palenight red for removed text
149
- /**
150
- * Enhanced editor theme styles for Palenight
151
- */
152
- const palenightTheme = view.EditorView.theme({
153
- // Base editor styles
154
- '&': {
155
- color: base01,
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: '#444267CC',
184
- outline: `1px solid ${base06}`,
185
- color: base01,
186
- borderRadius: generalSearchField.borderRadius,
187
- '& span': {
188
- color: base01,
189
- },
190
- },
191
- '.cm-searchMatch.cm-searchMatch-selected': {
192
- backgroundColor: base06,
193
- color: background,
194
- padding: generalSearchField.padding,
195
- '& span': {
196
- color: background,
84
+ removedBackground = '#3e2e3180'; // Dark red with transparency for deletions
85
+ const theme = codemirrorThemeCore.defineTheme({
86
+ name: 'Palenight',
87
+ dark: true,
88
+ ui: {
89
+ background: base00,
90
+ foreground: base01,
91
+ border: 'none',
92
+ cursor: base04,
93
+ cursorWidth: '2px',
94
+ cursorShadow: 'none',
95
+ fatCursor: { background: `${base04}99`, border: 'none' },
96
+ selection: '#3b385d',
97
+ selectionInactive: '#3b385d',
98
+ selectionForeground: null,
99
+ selectionOutline: 'none',
100
+ activeLine: highlightBackground,
101
+ activeLineBorder: { left: 'none', right: 'none' },
102
+ ghostText: base03,
103
+ ghostTextOpacity: '0.5',
104
+ specialChar: base0B,
105
+ focusRing: `0 0 0 2px ${base00}, 0 0 0 4px ${base06}`,
106
+ outlineWidth: '1px',
107
+ searchMatch: {
108
+ background: `${base02}CC`,
109
+ outline: base06,
110
+ foreground: base01,
111
+ shadow: 'none',
112
+ selectedBackground: base06,
113
+ selectedForeground: base00,
114
+ selectedOutline: `1px solid ${base06}`,
115
+ selectedShadow: 'none',
197
116
  },
198
- },
199
- '.cm-search.cm-panel.cm-textfield': {
200
- color: base01,
201
- borderRadius: generalSearchField.borderRadius,
202
- padding: generalSearchField.padding,
203
- },
204
- // Panels
205
- '.cm-panels': {
206
- backgroundColor: darkBackground,
207
- color: base01,
208
- borderRadius: '4px',
209
- },
210
- '.cm-panels.cm-panels-top': {
211
- borderBottom: `1px solid ${base02}`,
212
- },
213
- '.cm-panels.cm-panels-bottom': {
214
- borderTop: `1px solid ${base02}`,
215
- },
216
- '.cm-panel button': {
217
- backgroundColor: tooltipBackground,
218
- color: base01,
219
- border: generalPanel.border,
220
- borderRadius: generalPanel.borderRadius,
221
- padding: generalPanel.padding,
222
- },
223
- '.cm-panel button:hover': {
224
- backgroundColor: '#3A4058',
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: base03,
236
- border: generalGutter.border,
237
- borderRight: '1px solid #3A405880',
238
- paddingRight: generalGutter.paddingRight,
239
- },
240
- '.cm-activeLineGutter': {
241
- backgroundColor: '#2A2D40',
242
- color: base01,
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: base03,
255
- cursor: 'pointer',
256
- },
257
- '.cm-foldGutter .cm-gutterElement:hover': {
258
- color: base01,
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 #3A4058',
303
- borderRadius: generalTooltip.borderRadius,
304
- padding: generalTooltip.padding,
305
- boxShadow: '0 2px 8px rgba(0, 0, 0, 0.4)',
306
- },
307
- '.cm-tooltip-autocomplete': {
308
- '& > ul': {
309
- backgroundColor: tooltipBackground,
310
- border: 'none',
117
+ selectionMatch: { background: selectionMatch, outline: `${base03}50` },
118
+ matchingBracket: { background: activeBracketBg, outline: base06, shadow: 'none' },
119
+ nonMatchingBracket: { background: `${base0B}40`, outline: base0B },
120
+ panel: {
121
+ background: darkBackground,
122
+ foreground: base01,
123
+ border: base02,
124
+ borderWidth: '1px',
125
+ outline: 'none',
126
+ shadow: 'none',
127
+ buttonBackground: tooltipBackground,
128
+ buttonForeground: base01,
129
+ buttonBorder: 'none',
130
+ buttonHoverBackground: '#3A4058',
131
+ buttonHoverForeground: base01,
132
+ buttonHoverBorder: 'none',
133
+ buttonHoverShadow: 'none',
134
+ inputBackground: base00,
135
+ inputBorder: `1px solid ${base02}`,
311
136
  },
312
- '& > ul > li': {
313
- padding: generalTooltip.padding,
314
- lineHeight: generalTooltip.lineHeight,
137
+ gutter: {
138
+ background: darkBackground,
139
+ foreground: base03,
140
+ border: '#3A405880',
141
+ activeBackground: '#2A2D40',
142
+ activeForeground: base01,
143
+ activeFontWeight: '500',
144
+ activeBorder: 'none',
145
+ foldHover: base01,
315
146
  },
316
- '& > ul > li[aria-selected]': {
317
- backgroundColor: selection,
318
- color: base04,
319
- borderRadius: generalTooltip.borderRadiusSelected,
147
+ foldPlaceholder: {
148
+ background: tooltipBackground,
149
+ foreground: base03,
150
+ border: `${base03}70`,
151
+ borderStyle: 'dotted',
320
152
  },
321
- '& > ul > li > span.cm-completionIcon': {
322
- color: base03,
323
- paddingRight: generalTooltip.paddingRight,
153
+ tooltip: {
154
+ background: tooltipBackground,
155
+ foreground: base01,
156
+ border: '#3A4058',
157
+ shadow: '0 2px 8px rgba(0, 0, 0, 0.4)',
158
+ listBackground: tooltipBackground,
159
+ listBorder: 'none',
160
+ hoverBackground: 'transparent',
161
+ selectedBackground: base02,
162
+ selectedForeground: base04,
163
+ selectedBorder: 'none',
164
+ icon: base03,
165
+ detail: base03,
324
166
  },
325
- '& > ul > li > span.cm-completionDetail': {
326
- color: base03,
327
- fontStyle: 'italic',
167
+ diff: {
168
+ insertedBackground: addedBackground,
169
+ insertedForeground: base05,
170
+ insertedBorder: `1px solid ${base05}40`,
171
+ deletedBackground: removedBackground,
172
+ deletedForeground: base0B,
173
+ deletedBorder: `1px solid ${base0B}40`,
328
174
  },
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 ${invalid}`,
175
+ diagnostic: {
176
+ error: base0B,
177
+ warning: base09,
178
+ info: base06,
179
+ hint: base06,
180
+ errorBackground: 'transparent',
181
+ warningBackground: 'transparent',
182
+ infoBackground: 'transparent',
183
+ borderWidth: '3px',
184
+ underlineWidth: '2px',
342
185
  },
343
- '&-warning': {
344
- borderLeft: `3px solid ${diagnosticWarning}`,
186
+ scrollbar: {
187
+ track: darkBackground,
188
+ trackBorder: 'none',
189
+ thumb: base02,
190
+ thumbBorder: `3px solid ${darkBackground}`,
191
+ thumbHover: '#515580',
192
+ thumbHoverShadow: 'none',
345
193
  },
346
- '&-info': {
347
- borderLeft: `3px solid ${linkColor}`,
194
+ merge: {
195
+ backgroundColor: darkBackground,
196
+ borderColor: '#3A4058',
197
+ buttonColor: base01,
198
+ buttonHoverColor: '#3A4058',
348
199
  },
349
200
  },
350
- '.cm-lintPoint-error': {
351
- borderBottom: `2px wavy ${invalid}`,
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: `${invalid}40`,
364
- outline: `1px solid ${invalid}`,
365
- borderRadius: generalMatching.borderRadius,
366
- },
367
- // Selection matches
368
- '.cm-selectionMatch': {
369
- backgroundColor: selectionMatch,
370
- outline: `1px solid ${base03}50`,
371
- borderRadius: generalMatching.borderRadius,
372
- },
373
- // Fold placeholder
374
- '.cm-foldPlaceholder': {
375
- backgroundColor: tooltipBackground,
376
- color: base03,
377
- border: `1px dotted ${base03}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 ${base06}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: base02,
397
- borderRadius: generalScroller.borderRadius,
398
- border: `3px solid ${darkBackground}`,
399
- },
400
- '& .cm-scroller::-webkit-scrollbar-thumb:hover': {
401
- backgroundColor: '#515580',
402
- },
403
- // Ghost text
404
- '.cm-ghostText': {
405
- opacity: '0.5',
406
- color: base03,
407
- },
408
- }, { dark: true });
409
- /**
410
- * Enhanced syntax highlighting for Palenight theme
411
- */
412
- const palenightHighlightStyle = language.HighlightStyle.define([
413
- // Keywords and control flow
414
- { tag: highlight.tags.keyword, color: base06, fontWeight: 'bold' },
415
- { tag: highlight.tags.controlKeyword, color: base06, fontWeight: 'bold' },
416
- { tag: highlight.tags.moduleKeyword, color: base06, fontWeight: 'bold' },
417
- // Names and variables
418
- { tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.macroName], color: base01 },
419
- { tag: [highlight.tags.variableName], color: base01 },
420
- { tag: [highlight.tags.propertyName], color: base0D, fontStyle: 'normal' },
421
- // Classes and types
422
- { tag: [highlight.tags.typeName], color: base07 },
423
- { tag: [highlight.tags.className], color: base09, fontStyle: 'italic' },
424
- { tag: [highlight.tags.namespace], color: base09, fontStyle: 'italic' },
425
- // Operators and punctuation
426
- { tag: [highlight.tags.operator, highlight.tags.operatorKeyword], color: base0A },
427
- { tag: [highlight.tags.bracket], color: base0A },
428
- { tag: [highlight.tags.brace], color: base0A },
429
- { tag: [highlight.tags.punctuation], color: base0A },
430
- // Functions and parameters
431
- { tag: [highlight.tags.function(highlight.tags.variableName), highlight.tags.labelName], color: base06 },
432
- { tag: [highlight.tags.definition(highlight.tags.function(highlight.tags.variableName))], color: base06 },
433
- { tag: [highlight.tags.definition(highlight.tags.variableName)], color: base08 },
434
- // Constants and literals
435
- { tag: highlight.tags.number, color: base08 },
436
- { tag: highlight.tags.changed, color: base08 },
437
- { tag: highlight.tags.annotation, color: invalid, fontStyle: 'italic' },
438
- { tag: highlight.tags.modifier, color: base0C, fontStyle: 'italic' },
439
- { tag: highlight.tags.self, color: base07 },
440
- { tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)], color: base08 },
441
- { tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base0C },
442
- // Strings and regex
443
- { tag: [highlight.tags.processingInstruction, highlight.tags.inserted], color: base05 },
444
- { tag: [highlight.tags.special(highlight.tags.string), highlight.tags.regexp], color: base05 },
445
- { tag: highlight.tags.string, color: base05 },
446
- // Punctuation and structure
447
- { tag: highlight.tags.definition(highlight.tags.typeName), color: base07, fontWeight: 'bold' },
448
- { tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: base0A },
449
- // Comments and documentation
450
- { tag: highlight.tags.meta, color: base03 },
451
- { tag: highlight.tags.comment, fontStyle: 'italic', color: base03 },
452
- { tag: highlight.tags.docComment, fontStyle: 'italic', color: base03 },
453
- // HTML/XML elements
454
- { tag: [highlight.tags.tagName], color: base0B },
455
- { tag: [highlight.tags.attributeName], color: base09 },
456
- // Markdown and text formatting
457
- { tag: [highlight.tags.heading], fontWeight: 'bold', color: base09 },
458
- { tag: [highlight.tags.strong], fontWeight: 'bold', color: base09 },
459
- { tag: [highlight.tags.emphasis], fontStyle: 'italic', color: base05 },
460
- // Links and URLs
461
- {
462
- tag: [highlight.tags.link],
463
- color: visitedLinkColor,
464
- fontWeight: '500',
465
- textDecoration: 'underline',
466
- textUnderlinePosition: 'under',
467
- },
468
- {
469
- tag: [highlight.tags.url],
470
- color: linkColor,
471
- textDecoration: 'underline',
472
- textUnderlineOffset: '2px',
473
- },
474
- // Special states
475
- {
476
- tag: [highlight.tags.invalid],
477
- color: base01,
478
- textDecoration: 'underline wavy',
479
- borderBottom: `1px wavy ${invalid}`,
480
- },
481
- { tag: [highlight.tags.strikethrough], color: invalid, textDecoration: 'line-through' },
482
- // Enhanced syntax highlighting
483
- { tag: highlight.tags.constant(highlight.tags.name), color: base08 },
484
- { tag: highlight.tags.deleted, color: invalid },
485
- { tag: highlight.tags.squareBracket, color: base0A },
486
- { tag: highlight.tags.angleBracket, color: base0A },
487
- // Additional specific styles
488
- { tag: highlight.tags.monospace, color: base01 },
489
- { tag: [highlight.tags.contentSeparator], color: base09 },
490
- { tag: highlight.tags.quote, color: base03 },
491
- { tag: highlight.tags.integer, color: base08 },
492
- { tag: highlight.tags.float, color: base08 },
493
- { tag: highlight.tags.null, color: base08 },
494
- { tag: highlight.tags.attributeValue, color: base05 },
495
- { tag: highlight.tags.escape, color: base05 },
496
- { tag: highlight.tags.paren, color: base0A },
497
- { tag: highlight.tags.lineComment, color: base03, fontStyle: 'italic' },
498
- { tag: highlight.tags.blockComment, color: base03, fontStyle: 'italic' },
499
- { tag: highlight.tags.definitionKeyword, color: base06 },
500
- { tag: highlight.tags.arithmeticOperator, color: base0A },
501
- { tag: highlight.tags.logicOperator, color: base0A },
502
- { tag: highlight.tags.compareOperator, color: base0A },
503
- { tag: highlight.tags.bitwiseOperator, color: base0A },
504
- { tag: highlight.tags.updateOperator, color: base0A },
505
- { tag: highlight.tags.derefOperator, color: base0A },
506
- { tag: highlight.tags.local(highlight.tags.variableName), color: base08 },
507
- { tag: highlight.tags.list, color: base09 },
508
- { tag: highlight.tags.unit, color: base08 },
509
- { tag: highlight.tags.heading1, color: base09 },
510
- { tag: highlight.tags.heading2, color: base09 },
511
- { tag: highlight.tags.heading3, color: base09 },
512
- { tag: highlight.tags.heading4, color: base09 },
513
- { tag: highlight.tags.heading5, color: base09 },
514
- { tag: highlight.tags.heading6, color: base09 },
515
- ]);
201
+ syntax: {
202
+ keyword: { color: base06, fontWeight: 'bold' },
203
+ definitionKeyword: { color: base06 },
204
+ modifier: { color: base0C, fontStyle: 'italic' },
205
+ operator: { color: base0A },
206
+ punctuation: { color: base0A },
207
+ name: { color: base01 },
208
+ localVariable: { color: base08 },
209
+ variableDefinition: { color: base08 },
210
+ nameDefinition: { color: base0A },
211
+ function: { color: base06 },
212
+ self: { color: base07 },
213
+ label: { color: base06 },
214
+ property: { color: base0D, fontStyle: 'normal' },
215
+ type: { color: base07 },
216
+ typeDefinition: { color: base07, fontWeight: 'bold' },
217
+ className: { color: base09, fontStyle: 'italic' },
218
+ namespace: { color: base09, fontStyle: 'italic' },
219
+ tag: { color: base0B },
220
+ attribute: { color: base09 },
221
+ content: { color: base01 },
222
+ string: { color: base05 },
223
+ number: { color: base08 },
224
+ constant: { color: base08 },
225
+ comment: { fontStyle: 'italic', color: base03 },
226
+ meta: { color: base03 },
227
+ processingInstruction: { color: base05 },
228
+ atom: { color: base0C },
229
+ specialVariable: { color: base0C },
230
+ annotation: { color: base0B, fontStyle: 'italic' },
231
+ heading: { fontWeight: 'bold', color: base09 },
232
+ headingLevel: { color: base09 },
233
+ list: { color: base09 },
234
+ quote: { color: base03 },
235
+ monospace: { color: base01 },
236
+ contentSeparator: { color: base09 },
237
+ link: {
238
+ color: base07,
239
+ fontWeight: '500',
240
+ textDecoration: 'underline',
241
+ textUnderlinePosition: 'under',
242
+ },
243
+ url: { color: base06, textDecoration: 'underline', textUnderlineOffset: '2px' },
244
+ emphasis: { fontStyle: 'italic', color: base05 },
245
+ strong: { fontWeight: 'bold', color: base09 },
246
+ strikethrough: { color: base0B, textDecoration: 'line-through' },
247
+ invalid: { color: base01, textDecoration: 'underline wavy', borderBottom: `1px wavy ${base0B}` },
248
+ inserted: { color: base05 },
249
+ deleted: { color: base0B },
250
+ changed: { color: base08 },
251
+ },
252
+ });
516
253
  /**
517
254
  * Combined Palenight theme extension
518
255
  */
519
- const palenight = [palenightTheme, language.syntaxHighlighting(palenightHighlightStyle)];
256
+ const palenight = theme.extension;
520
257
  /**
521
258
  * Palenight merge revert styles configuration
522
259
  */
523
- const palenightMergeStyles = {
524
- backgroundColor: darkBackground,
525
- borderColor: '#3A4058',
526
- buttonColor: base01,
527
- buttonHoverColor: '#3A4058',
528
- };
260
+ const palenightMergeStyles = theme.mergeStyles;
529
261
 
530
262
  exports.applyMergeRevertStyles = applyMergeRevertStyles;
531
263
  exports.palenight = palenight;