@fsegurai/codemirror-theme-andromeda 6.0.5 → 6.0.7
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/dist/index.cjs +19 -19
- package/dist/index.js +19 -19
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,10 +24,10 @@ const darkBackground = '#292d30', highlightBackground = base02, tooltipBackgroun
|
|
|
24
24
|
const andromedaTheme = view.EditorView.theme({
|
|
25
25
|
'&': {
|
|
26
26
|
color: base01,
|
|
27
|
-
backgroundColor: base00
|
|
27
|
+
backgroundColor: base00,
|
|
28
28
|
},
|
|
29
29
|
'.cm-content': {
|
|
30
|
-
caretColor: cursor
|
|
30
|
+
caretColor: cursor,
|
|
31
31
|
},
|
|
32
32
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
33
33
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
|
|
@@ -37,54 +37,54 @@ const andromedaTheme = view.EditorView.theme({
|
|
|
37
37
|
'.cm-searchMatch': {
|
|
38
38
|
backgroundColor: base02,
|
|
39
39
|
outline: `1px solid ${base03}`,
|
|
40
|
-
color: base07
|
|
40
|
+
color: base07,
|
|
41
41
|
},
|
|
42
42
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
43
43
|
backgroundColor: base00,
|
|
44
|
-
color: base07
|
|
44
|
+
color: base07,
|
|
45
45
|
},
|
|
46
46
|
'.cm-search.cm-panel': {
|
|
47
|
-
color: base06
|
|
47
|
+
color: base06,
|
|
48
48
|
},
|
|
49
49
|
'.cm-selectionMatch': { backgroundColor: highlightBackground },
|
|
50
50
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
51
|
-
outline: `1px solid ${base03}
|
|
51
|
+
outline: `1px solid ${base03}`,
|
|
52
52
|
},
|
|
53
53
|
'&.cm-focused .cm-matchingBracket': {
|
|
54
54
|
backgroundColor: base02,
|
|
55
|
-
color: base07
|
|
55
|
+
color: base07,
|
|
56
56
|
},
|
|
57
57
|
'.cm-gutters': {
|
|
58
|
-
borderRight:
|
|
58
|
+
borderRight: '1px solid #ffffff10',
|
|
59
59
|
color: base06,
|
|
60
|
-
backgroundColor: darkBackground
|
|
60
|
+
backgroundColor: darkBackground,
|
|
61
61
|
},
|
|
62
62
|
'.cm-activeLineGutter': {
|
|
63
|
-
backgroundColor: highlightBackground
|
|
63
|
+
backgroundColor: highlightBackground,
|
|
64
64
|
},
|
|
65
65
|
'.cm-foldPlaceholder': {
|
|
66
66
|
backgroundColor: 'transparent',
|
|
67
67
|
border: 'none',
|
|
68
|
-
color: base02
|
|
68
|
+
color: base02,
|
|
69
69
|
},
|
|
70
70
|
'.cm-tooltip': {
|
|
71
71
|
border: 'none',
|
|
72
|
-
backgroundColor: tooltipBackground
|
|
72
|
+
backgroundColor: tooltipBackground,
|
|
73
73
|
},
|
|
74
74
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
75
75
|
borderTopColor: 'transparent',
|
|
76
|
-
borderBottomColor: 'transparent'
|
|
76
|
+
borderBottomColor: 'transparent',
|
|
77
77
|
},
|
|
78
78
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
79
79
|
borderTopColor: tooltipBackground,
|
|
80
|
-
borderBottomColor: tooltipBackground
|
|
80
|
+
borderBottomColor: tooltipBackground,
|
|
81
81
|
},
|
|
82
82
|
'.cm-tooltip-autocomplete': {
|
|
83
83
|
'& > ul > li[aria-selected]': {
|
|
84
84
|
backgroundColor: highlightBackground,
|
|
85
|
-
color: base03
|
|
86
|
-
}
|
|
87
|
-
}
|
|
85
|
+
color: base03,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
88
|
}, { dark: true });
|
|
89
89
|
// Define the highlighting style for code in the Andromeda theme.
|
|
90
90
|
const andromedaHighlightStyle = language.HighlightStyle.define([
|
|
@@ -123,12 +123,12 @@ const andromedaHighlightStyle = language.HighlightStyle.define([
|
|
|
123
123
|
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base0B },
|
|
124
124
|
{ tag: [highlight.tags.processingInstruction, highlight.tags.inserted], color: base0B },
|
|
125
125
|
{ tag: [highlight.tags.contentSeparator], color: base06 },
|
|
126
|
-
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
|
|
126
|
+
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
|
|
127
127
|
]);
|
|
128
128
|
// Extension to enable the Andromeda theme (both the editor theme and the highlight style).
|
|
129
129
|
const andromeda = [
|
|
130
130
|
andromedaTheme,
|
|
131
|
-
language.syntaxHighlighting(andromedaHighlightStyle)
|
|
131
|
+
language.syntaxHighlighting(andromedaHighlightStyle),
|
|
132
132
|
];
|
|
133
133
|
|
|
134
134
|
exports.andromeda = andromeda;
|
package/dist/index.js
CHANGED
|
@@ -22,10 +22,10 @@ const darkBackground = '#292d30', highlightBackground = base02, tooltipBackgroun
|
|
|
22
22
|
const andromedaTheme = /*@__PURE__*/EditorView.theme({
|
|
23
23
|
'&': {
|
|
24
24
|
color: base01,
|
|
25
|
-
backgroundColor: base00
|
|
25
|
+
backgroundColor: base00,
|
|
26
26
|
},
|
|
27
27
|
'.cm-content': {
|
|
28
|
-
caretColor: cursor
|
|
28
|
+
caretColor: cursor,
|
|
29
29
|
},
|
|
30
30
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
31
31
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
|
|
@@ -35,54 +35,54 @@ const andromedaTheme = /*@__PURE__*/EditorView.theme({
|
|
|
35
35
|
'.cm-searchMatch': {
|
|
36
36
|
backgroundColor: base02,
|
|
37
37
|
outline: `1px solid ${base03}`,
|
|
38
|
-
color: base07
|
|
38
|
+
color: base07,
|
|
39
39
|
},
|
|
40
40
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
41
41
|
backgroundColor: base00,
|
|
42
|
-
color: base07
|
|
42
|
+
color: base07,
|
|
43
43
|
},
|
|
44
44
|
'.cm-search.cm-panel': {
|
|
45
|
-
color: base06
|
|
45
|
+
color: base06,
|
|
46
46
|
},
|
|
47
47
|
'.cm-selectionMatch': { backgroundColor: highlightBackground },
|
|
48
48
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
49
|
-
outline: `1px solid ${base03}
|
|
49
|
+
outline: `1px solid ${base03}`,
|
|
50
50
|
},
|
|
51
51
|
'&.cm-focused .cm-matchingBracket': {
|
|
52
52
|
backgroundColor: base02,
|
|
53
|
-
color: base07
|
|
53
|
+
color: base07,
|
|
54
54
|
},
|
|
55
55
|
'.cm-gutters': {
|
|
56
|
-
borderRight:
|
|
56
|
+
borderRight: '1px solid #ffffff10',
|
|
57
57
|
color: base06,
|
|
58
|
-
backgroundColor: darkBackground
|
|
58
|
+
backgroundColor: darkBackground,
|
|
59
59
|
},
|
|
60
60
|
'.cm-activeLineGutter': {
|
|
61
|
-
backgroundColor: highlightBackground
|
|
61
|
+
backgroundColor: highlightBackground,
|
|
62
62
|
},
|
|
63
63
|
'.cm-foldPlaceholder': {
|
|
64
64
|
backgroundColor: 'transparent',
|
|
65
65
|
border: 'none',
|
|
66
|
-
color: base02
|
|
66
|
+
color: base02,
|
|
67
67
|
},
|
|
68
68
|
'.cm-tooltip': {
|
|
69
69
|
border: 'none',
|
|
70
|
-
backgroundColor: tooltipBackground
|
|
70
|
+
backgroundColor: tooltipBackground,
|
|
71
71
|
},
|
|
72
72
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
73
73
|
borderTopColor: 'transparent',
|
|
74
|
-
borderBottomColor: 'transparent'
|
|
74
|
+
borderBottomColor: 'transparent',
|
|
75
75
|
},
|
|
76
76
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
77
77
|
borderTopColor: tooltipBackground,
|
|
78
|
-
borderBottomColor: tooltipBackground
|
|
78
|
+
borderBottomColor: tooltipBackground,
|
|
79
79
|
},
|
|
80
80
|
'.cm-tooltip-autocomplete': {
|
|
81
81
|
'& > ul > li[aria-selected]': {
|
|
82
82
|
backgroundColor: highlightBackground,
|
|
83
|
-
color: base03
|
|
84
|
-
}
|
|
85
|
-
}
|
|
83
|
+
color: base03,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
86
|
}, { dark: true });
|
|
87
87
|
// Define the highlighting style for code in the Andromeda theme.
|
|
88
88
|
const andromedaHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
@@ -121,12 +121,12 @@ const andromedaHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
121
121
|
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base0B },
|
|
122
122
|
{ tag: [tags.processingInstruction, tags.inserted], color: base0B },
|
|
123
123
|
{ tag: [tags.contentSeparator], color: base06 },
|
|
124
|
-
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
|
|
124
|
+
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
|
|
125
125
|
]);
|
|
126
126
|
// Extension to enable the Andromeda theme (both the editor theme and the highlight style).
|
|
127
127
|
const andromeda = [
|
|
128
128
|
andromedaTheme,
|
|
129
|
-
/*@__PURE__*/syntaxHighlighting(andromedaHighlightStyle)
|
|
129
|
+
/*@__PURE__*/syntaxHighlighting(andromedaHighlightStyle),
|
|
130
130
|
];
|
|
131
131
|
|
|
132
132
|
export { andromeda, andromedaHighlightStyle, andromedaTheme };
|