@fsegurai/codemirror-theme-solarized-dark 6.0.3 → 6.0.6
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 +27 -27
- package/dist/index.cjs +47 -41
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +47 -41
- package/package.json +45 -45
package/README.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<!-- NOTE: README.md is generated from src/README.md -->
|
|
2
|
-
|
|
3
|
-
# @fsegurai/codemirror-theme-solarized-dark [](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-dark)
|
|
4
|
-
|
|
5
|
-
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**DEMO**](https://fsegurai.github.io/codemirror-themes/) ]
|
|
6
|
-
|
|
7
|
-
This package implements the Solarized Dark theme for the
|
|
8
|
-
[CodeMirror](https://codemirror.net/6/) code editor.
|
|
9
|
-
|
|
10
|
-
The [project page](https://codemirror.net/6/) has more information, a
|
|
11
|
-
number of [examples](https://codemirror.net/6/examples/) and the
|
|
12
|
-
[documentation](https://codemirror.net/6/docs/).
|
|
13
|
-
|
|
14
|
-
This code is released under an
|
|
15
|
-
[MIT license](https://github.com/fsegurai/cm6-themes/tree/main/LICENSE).
|
|
16
|
-
|
|
17
|
-
We aim to be an inclusive, welcoming community. To make that explicit,
|
|
18
|
-
we have a [code of
|
|
19
|
-
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
|
20
|
-
to communication around the project.
|
|
21
|
-
|
|
22
|
-
## API Reference
|
|
23
|
-
|
|
24
|
-
@solarizedDark
|
|
25
|
-
|
|
26
|
-
@solarizedDarkTheme
|
|
27
|
-
|
|
1
|
+
<!-- NOTE: README.md is generated from src/README.md -->
|
|
2
|
+
|
|
3
|
+
# @fsegurai/codemirror-theme-solarized-dark [](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-dark)
|
|
4
|
+
|
|
5
|
+
[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**DEMO**](https://fsegurai.github.io/codemirror-themes/) ]
|
|
6
|
+
|
|
7
|
+
This package implements the Solarized Dark theme for the
|
|
8
|
+
[CodeMirror](https://codemirror.net/6/) code editor.
|
|
9
|
+
|
|
10
|
+
The [project page](https://codemirror.net/6/) has more information, a
|
|
11
|
+
number of [examples](https://codemirror.net/6/examples/) and the
|
|
12
|
+
[documentation](https://codemirror.net/6/docs/).
|
|
13
|
+
|
|
14
|
+
This code is released under an
|
|
15
|
+
[MIT license](https://github.com/fsegurai/cm6-themes/tree/main/LICENSE).
|
|
16
|
+
|
|
17
|
+
We aim to be an inclusive, welcoming community. To make that explicit,
|
|
18
|
+
we have a [code of
|
|
19
|
+
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
|
20
|
+
to communication around the project.
|
|
21
|
+
|
|
22
|
+
## API Reference
|
|
23
|
+
|
|
24
|
+
@solarizedDark
|
|
25
|
+
|
|
26
|
+
@solarizedDarkTheme
|
|
27
|
+
|
|
28
28
|
@solarizedDarkHighlightStyle
|
package/dist/index.cjs
CHANGED
|
@@ -6,19 +6,21 @@ var highlight = require('@lezer/highlight');
|
|
|
6
6
|
|
|
7
7
|
const base00 = '#002b36', base01 = '#073642', base02 = '#586e75', base03 = '#657b83', base04 = '#839496', base05 = '#93a1a1', base06 = '#eee8d5', base07 = '#fdf6e3', base_red = '#dc322f', base_orange = '#cb4b16', base_yellow = '#b58900', base_green = '#859900', base_cyan = '#2aa198', base_blue = '#268bd2', base_violet = '#6c71c4', base_magenta = '#d33682';
|
|
8
8
|
const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
The editor theme styles for Solarized Dark.
|
|
11
|
+
*/
|
|
10
12
|
const solarizedDarkTheme = view.EditorView.theme({
|
|
11
13
|
'&': {
|
|
12
14
|
color: base05,
|
|
13
|
-
backgroundColor: background
|
|
15
|
+
backgroundColor: background,
|
|
14
16
|
},
|
|
15
17
|
'.cm-content': {
|
|
16
|
-
caretColor: cursor
|
|
18
|
+
caretColor: cursor,
|
|
17
19
|
},
|
|
18
20
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
19
21
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
20
22
|
backgroundColor: selection,
|
|
21
|
-
color: '#FFFFFF'
|
|
23
|
+
color: '#FFFFFF',
|
|
22
24
|
},
|
|
23
25
|
'.cm-panels': { backgroundColor: darkBackground, color: base03 },
|
|
24
26
|
'.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
|
|
@@ -26,121 +28,123 @@ const solarizedDarkTheme = view.EditorView.theme({
|
|
|
26
28
|
'.cm-searchMatch': {
|
|
27
29
|
backgroundColor: '#72a1ff59',
|
|
28
30
|
outline: '1px solid #457dff',
|
|
29
|
-
color: '#a7a7a7 !important'
|
|
31
|
+
color: '#a7a7a7 !important',
|
|
30
32
|
},
|
|
31
33
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
32
34
|
backgroundColor: '#6199ff2f',
|
|
33
|
-
color: '#FFFFFF !important'
|
|
35
|
+
color: '#FFFFFF !important',
|
|
34
36
|
},
|
|
35
37
|
'.cm-searchMatch .cm-selectionMatch': {
|
|
36
|
-
color: '#a7a7a7 !important'
|
|
38
|
+
color: '#a7a7a7 !important',
|
|
37
39
|
},
|
|
38
40
|
'.cm-selectionMatch': {
|
|
39
41
|
backgroundColor: '#aafe6673',
|
|
40
|
-
color: '#FFFFFF'
|
|
42
|
+
color: '#FFFFFF',
|
|
41
43
|
},
|
|
42
44
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
43
|
-
outline: `1px solid ${base06}
|
|
45
|
+
outline: `1px solid ${base06}`,
|
|
44
46
|
},
|
|
45
47
|
'.cm-gutters': {
|
|
46
48
|
backgroundColor: darkBackground,
|
|
47
49
|
color: stone,
|
|
48
|
-
border: 'none'
|
|
50
|
+
border: 'none',
|
|
49
51
|
},
|
|
50
52
|
'.cm-activeLineGutter': {
|
|
51
53
|
backgroundColor: selection,
|
|
52
|
-
color: '#FFFFFF'
|
|
54
|
+
color: '#FFFFFF',
|
|
53
55
|
},
|
|
54
56
|
'.cm-foldPlaceholder': {
|
|
55
57
|
backgroundColor: 'transparent',
|
|
56
58
|
border: 'none',
|
|
57
|
-
color: '#ddd'
|
|
59
|
+
color: '#ddd',
|
|
58
60
|
},
|
|
59
61
|
'.cm-tooltip': {
|
|
60
62
|
border: 'none',
|
|
61
|
-
backgroundColor: tooltipBackground
|
|
63
|
+
backgroundColor: tooltipBackground,
|
|
62
64
|
},
|
|
63
65
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
64
66
|
borderTopColor: 'transparent',
|
|
65
|
-
borderBottomColor: 'transparent'
|
|
67
|
+
borderBottomColor: 'transparent',
|
|
66
68
|
},
|
|
67
69
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
68
70
|
borderTopColor: tooltipBackground,
|
|
69
|
-
borderBottomColor: tooltipBackground
|
|
71
|
+
borderBottomColor: tooltipBackground,
|
|
70
72
|
},
|
|
71
73
|
'.cm-tooltip-autocomplete': {
|
|
72
74
|
'& > ul > li[aria-selected]': {
|
|
73
75
|
backgroundColor: highlightBackground,
|
|
74
|
-
color: base03
|
|
75
|
-
}
|
|
76
|
-
}
|
|
76
|
+
color: base03,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
77
79
|
}, { dark: true });
|
|
78
|
-
|
|
80
|
+
/**
|
|
81
|
+
The highlighting style for code in the Solarized Dark theme.
|
|
82
|
+
*/
|
|
79
83
|
const solarizedDarkHighlightStyle = language.HighlightStyle.define([
|
|
80
84
|
{ tag: highlight.tags.keyword, color: base_green },
|
|
81
85
|
{
|
|
82
86
|
tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
|
|
83
|
-
color: base_cyan
|
|
87
|
+
color: base_cyan,
|
|
84
88
|
},
|
|
85
89
|
{ tag: [highlight.tags.variableName], color: base05 },
|
|
86
90
|
{ tag: [highlight.tags.function(highlight.tags.variableName)], color: base_blue },
|
|
87
91
|
{ tag: [highlight.tags.labelName], color: base_magenta },
|
|
88
92
|
{
|
|
89
93
|
tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
|
|
90
|
-
color: base_yellow
|
|
94
|
+
color: base_yellow,
|
|
91
95
|
},
|
|
92
96
|
{ tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: base_cyan },
|
|
93
97
|
{ tag: [highlight.tags.brace], color: base_magenta },
|
|
94
98
|
{
|
|
95
99
|
tag: [highlight.tags.annotation],
|
|
96
|
-
color: invalid
|
|
100
|
+
color: invalid,
|
|
97
101
|
},
|
|
98
102
|
{
|
|
99
103
|
tag: [highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
|
|
100
|
-
color: base_magenta
|
|
104
|
+
color: base_magenta,
|
|
101
105
|
},
|
|
102
106
|
{
|
|
103
107
|
tag: [highlight.tags.typeName, highlight.tags.className],
|
|
104
|
-
color: base_orange
|
|
108
|
+
color: base_orange,
|
|
105
109
|
},
|
|
106
110
|
{
|
|
107
111
|
tag: [highlight.tags.operator, highlight.tags.operatorKeyword],
|
|
108
|
-
color: base_violet
|
|
112
|
+
color: base_violet,
|
|
109
113
|
},
|
|
110
114
|
{
|
|
111
115
|
tag: [highlight.tags.tagName],
|
|
112
|
-
color: base_blue
|
|
116
|
+
color: base_blue,
|
|
113
117
|
},
|
|
114
118
|
{
|
|
115
119
|
tag: [highlight.tags.squareBracket],
|
|
116
|
-
color: base_red
|
|
120
|
+
color: base_red,
|
|
117
121
|
},
|
|
118
122
|
{
|
|
119
123
|
tag: [highlight.tags.angleBracket],
|
|
120
|
-
color: base02
|
|
124
|
+
color: base02,
|
|
121
125
|
},
|
|
122
126
|
{
|
|
123
127
|
tag: [highlight.tags.attributeName],
|
|
124
|
-
color: base05
|
|
128
|
+
color: base05,
|
|
125
129
|
},
|
|
126
130
|
{
|
|
127
131
|
tag: [highlight.tags.regexp],
|
|
128
|
-
color: invalid
|
|
132
|
+
color: invalid,
|
|
129
133
|
},
|
|
130
134
|
{
|
|
131
135
|
tag: [highlight.tags.quote],
|
|
132
|
-
color: base_green
|
|
136
|
+
color: base_green,
|
|
133
137
|
},
|
|
134
138
|
{ tag: [highlight.tags.string], color: base_yellow },
|
|
135
139
|
{
|
|
136
140
|
tag: highlight.tags.link,
|
|
137
141
|
color: base_cyan,
|
|
138
142
|
textDecoration: 'underline',
|
|
139
|
-
textUnderlinePosition: 'under'
|
|
143
|
+
textUnderlinePosition: 'under',
|
|
140
144
|
},
|
|
141
145
|
{
|
|
142
146
|
tag: [highlight.tags.url, highlight.tags.escape, highlight.tags.special(highlight.tags.string)],
|
|
143
|
-
color: base_yellow
|
|
147
|
+
color: base_yellow,
|
|
144
148
|
},
|
|
145
149
|
{ tag: [highlight.tags.meta], color: base_red },
|
|
146
150
|
{ tag: [highlight.tags.comment], color: base02, fontStyle: 'italic' },
|
|
@@ -152,28 +156,30 @@ const solarizedDarkHighlightStyle = language.HighlightStyle.define([
|
|
|
152
156
|
{
|
|
153
157
|
tag: [highlight.tags.heading2, highlight.tags.heading3, highlight.tags.heading4],
|
|
154
158
|
fontWeight: 'bold',
|
|
155
|
-
color: base06
|
|
159
|
+
color: base06,
|
|
156
160
|
},
|
|
157
161
|
{
|
|
158
162
|
tag: [highlight.tags.heading5, highlight.tags.heading6],
|
|
159
|
-
color: base06
|
|
163
|
+
color: base06,
|
|
160
164
|
},
|
|
161
165
|
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base_magenta },
|
|
162
166
|
{
|
|
163
167
|
tag: [highlight.tags.processingInstruction, highlight.tags.inserted, highlight.tags.contentSeparator],
|
|
164
|
-
color: base_red
|
|
168
|
+
color: base_red,
|
|
165
169
|
},
|
|
166
170
|
{
|
|
167
171
|
tag: [highlight.tags.contentSeparator],
|
|
168
|
-
color: base_yellow
|
|
172
|
+
color: base_yellow,
|
|
169
173
|
},
|
|
170
|
-
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
174
|
+
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` },
|
|
171
175
|
]);
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
/**
|
|
177
|
+
Extension to enable the Solarized Dark theme (both the editor theme and
|
|
178
|
+
the highlight style).
|
|
179
|
+
*/
|
|
174
180
|
const solarizedDark = [
|
|
175
181
|
solarizedDarkTheme,
|
|
176
|
-
language.syntaxHighlighting(solarizedDarkHighlightStyle)
|
|
182
|
+
language.syntaxHighlighting(solarizedDarkHighlightStyle),
|
|
177
183
|
];
|
|
178
184
|
|
|
179
185
|
exports.solarizedDark = solarizedDark;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { Extension } from '@codemirror/state';
|
|
2
2
|
import { HighlightStyle } from '@codemirror/language';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
The editor theme styles for Solarized Dark.
|
|
6
|
+
*/
|
|
4
7
|
declare const solarizedDarkTheme: Extension;
|
|
8
|
+
/**
|
|
9
|
+
The highlighting style for code in the Solarized Dark theme.
|
|
10
|
+
*/
|
|
5
11
|
declare const solarizedDarkHighlightStyle: HighlightStyle;
|
|
12
|
+
/**
|
|
13
|
+
Extension to enable the Solarized Dark theme (both the editor theme and
|
|
14
|
+
the highlight style).
|
|
15
|
+
*/
|
|
6
16
|
declare const solarizedDark: Extension;
|
|
7
17
|
|
|
8
18
|
export { solarizedDark, solarizedDarkHighlightStyle, solarizedDarkTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { Extension } from '@codemirror/state';
|
|
2
2
|
import { HighlightStyle } from '@codemirror/language';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
The editor theme styles for Solarized Dark.
|
|
6
|
+
*/
|
|
4
7
|
declare const solarizedDarkTheme: Extension;
|
|
8
|
+
/**
|
|
9
|
+
The highlighting style for code in the Solarized Dark theme.
|
|
10
|
+
*/
|
|
5
11
|
declare const solarizedDarkHighlightStyle: HighlightStyle;
|
|
12
|
+
/**
|
|
13
|
+
Extension to enable the Solarized Dark theme (both the editor theme and
|
|
14
|
+
the highlight style).
|
|
15
|
+
*/
|
|
6
16
|
declare const solarizedDark: Extension;
|
|
7
17
|
|
|
8
18
|
export { solarizedDark, solarizedDarkHighlightStyle, solarizedDarkTheme };
|
package/dist/index.js
CHANGED
|
@@ -4,19 +4,21 @@ import { tags } from '@lezer/highlight';
|
|
|
4
4
|
|
|
5
5
|
const base00 = '#002b36', base01 = '#073642', base02 = '#586e75', base03 = '#657b83', base04 = '#839496', base05 = '#93a1a1', base06 = '#eee8d5', base07 = '#fdf6e3', base_red = '#dc322f', base_orange = '#cb4b16', base_yellow = '#b58900', base_green = '#859900', base_cyan = '#2aa198', base_blue = '#268bd2', base_violet = '#6c71c4', base_magenta = '#d33682';
|
|
6
6
|
const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
The editor theme styles for Solarized Dark.
|
|
9
|
+
*/
|
|
8
10
|
const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
|
|
9
11
|
'&': {
|
|
10
12
|
color: base05,
|
|
11
|
-
backgroundColor: background
|
|
13
|
+
backgroundColor: background,
|
|
12
14
|
},
|
|
13
15
|
'.cm-content': {
|
|
14
|
-
caretColor: cursor
|
|
16
|
+
caretColor: cursor,
|
|
15
17
|
},
|
|
16
18
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
17
19
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
18
20
|
backgroundColor: selection,
|
|
19
|
-
color: '#FFFFFF'
|
|
21
|
+
color: '#FFFFFF',
|
|
20
22
|
},
|
|
21
23
|
'.cm-panels': { backgroundColor: darkBackground, color: base03 },
|
|
22
24
|
'.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
|
|
@@ -24,121 +26,123 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
|
|
|
24
26
|
'.cm-searchMatch': {
|
|
25
27
|
backgroundColor: '#72a1ff59',
|
|
26
28
|
outline: '1px solid #457dff',
|
|
27
|
-
color: '#a7a7a7 !important'
|
|
29
|
+
color: '#a7a7a7 !important',
|
|
28
30
|
},
|
|
29
31
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
30
32
|
backgroundColor: '#6199ff2f',
|
|
31
|
-
color: '#FFFFFF !important'
|
|
33
|
+
color: '#FFFFFF !important',
|
|
32
34
|
},
|
|
33
35
|
'.cm-searchMatch .cm-selectionMatch': {
|
|
34
|
-
color: '#a7a7a7 !important'
|
|
36
|
+
color: '#a7a7a7 !important',
|
|
35
37
|
},
|
|
36
38
|
'.cm-selectionMatch': {
|
|
37
39
|
backgroundColor: '#aafe6673',
|
|
38
|
-
color: '#FFFFFF'
|
|
40
|
+
color: '#FFFFFF',
|
|
39
41
|
},
|
|
40
42
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
41
|
-
outline: `1px solid ${base06}
|
|
43
|
+
outline: `1px solid ${base06}`,
|
|
42
44
|
},
|
|
43
45
|
'.cm-gutters': {
|
|
44
46
|
backgroundColor: darkBackground,
|
|
45
47
|
color: stone,
|
|
46
|
-
border: 'none'
|
|
48
|
+
border: 'none',
|
|
47
49
|
},
|
|
48
50
|
'.cm-activeLineGutter': {
|
|
49
51
|
backgroundColor: selection,
|
|
50
|
-
color: '#FFFFFF'
|
|
52
|
+
color: '#FFFFFF',
|
|
51
53
|
},
|
|
52
54
|
'.cm-foldPlaceholder': {
|
|
53
55
|
backgroundColor: 'transparent',
|
|
54
56
|
border: 'none',
|
|
55
|
-
color: '#ddd'
|
|
57
|
+
color: '#ddd',
|
|
56
58
|
},
|
|
57
59
|
'.cm-tooltip': {
|
|
58
60
|
border: 'none',
|
|
59
|
-
backgroundColor: tooltipBackground
|
|
61
|
+
backgroundColor: tooltipBackground,
|
|
60
62
|
},
|
|
61
63
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
62
64
|
borderTopColor: 'transparent',
|
|
63
|
-
borderBottomColor: 'transparent'
|
|
65
|
+
borderBottomColor: 'transparent',
|
|
64
66
|
},
|
|
65
67
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
66
68
|
borderTopColor: tooltipBackground,
|
|
67
|
-
borderBottomColor: tooltipBackground
|
|
69
|
+
borderBottomColor: tooltipBackground,
|
|
68
70
|
},
|
|
69
71
|
'.cm-tooltip-autocomplete': {
|
|
70
72
|
'& > ul > li[aria-selected]': {
|
|
71
73
|
backgroundColor: highlightBackground,
|
|
72
|
-
color: base03
|
|
73
|
-
}
|
|
74
|
-
}
|
|
74
|
+
color: base03,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
75
77
|
}, { dark: true });
|
|
76
|
-
|
|
78
|
+
/**
|
|
79
|
+
The highlighting style for code in the Solarized Dark theme.
|
|
80
|
+
*/
|
|
77
81
|
const solarizedDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
78
82
|
{ tag: tags.keyword, color: base_green },
|
|
79
83
|
{
|
|
80
84
|
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
81
|
-
color: base_cyan
|
|
85
|
+
color: base_cyan,
|
|
82
86
|
},
|
|
83
87
|
{ tag: [tags.variableName], color: base05 },
|
|
84
88
|
{ tag: [/*@__PURE__*/tags.function(tags.variableName)], color: base_blue },
|
|
85
89
|
{ tag: [tags.labelName], color: base_magenta },
|
|
86
90
|
{
|
|
87
91
|
tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
|
88
|
-
color: base_yellow
|
|
92
|
+
color: base_yellow,
|
|
89
93
|
},
|
|
90
94
|
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: base_cyan },
|
|
91
95
|
{ tag: [tags.brace], color: base_magenta },
|
|
92
96
|
{
|
|
93
97
|
tag: [tags.annotation],
|
|
94
|
-
color: invalid
|
|
98
|
+
color: invalid,
|
|
95
99
|
},
|
|
96
100
|
{
|
|
97
101
|
tag: [tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
98
|
-
color: base_magenta
|
|
102
|
+
color: base_magenta,
|
|
99
103
|
},
|
|
100
104
|
{
|
|
101
105
|
tag: [tags.typeName, tags.className],
|
|
102
|
-
color: base_orange
|
|
106
|
+
color: base_orange,
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
tag: [tags.operator, tags.operatorKeyword],
|
|
106
|
-
color: base_violet
|
|
110
|
+
color: base_violet,
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
113
|
tag: [tags.tagName],
|
|
110
|
-
color: base_blue
|
|
114
|
+
color: base_blue,
|
|
111
115
|
},
|
|
112
116
|
{
|
|
113
117
|
tag: [tags.squareBracket],
|
|
114
|
-
color: base_red
|
|
118
|
+
color: base_red,
|
|
115
119
|
},
|
|
116
120
|
{
|
|
117
121
|
tag: [tags.angleBracket],
|
|
118
|
-
color: base02
|
|
122
|
+
color: base02,
|
|
119
123
|
},
|
|
120
124
|
{
|
|
121
125
|
tag: [tags.attributeName],
|
|
122
|
-
color: base05
|
|
126
|
+
color: base05,
|
|
123
127
|
},
|
|
124
128
|
{
|
|
125
129
|
tag: [tags.regexp],
|
|
126
|
-
color: invalid
|
|
130
|
+
color: invalid,
|
|
127
131
|
},
|
|
128
132
|
{
|
|
129
133
|
tag: [tags.quote],
|
|
130
|
-
color: base_green
|
|
134
|
+
color: base_green,
|
|
131
135
|
},
|
|
132
136
|
{ tag: [tags.string], color: base_yellow },
|
|
133
137
|
{
|
|
134
138
|
tag: tags.link,
|
|
135
139
|
color: base_cyan,
|
|
136
140
|
textDecoration: 'underline',
|
|
137
|
-
textUnderlinePosition: 'under'
|
|
141
|
+
textUnderlinePosition: 'under',
|
|
138
142
|
},
|
|
139
143
|
{
|
|
140
144
|
tag: [tags.url, tags.escape, /*@__PURE__*/tags.special(tags.string)],
|
|
141
|
-
color: base_yellow
|
|
145
|
+
color: base_yellow,
|
|
142
146
|
},
|
|
143
147
|
{ tag: [tags.meta], color: base_red },
|
|
144
148
|
{ tag: [tags.comment], color: base02, fontStyle: 'italic' },
|
|
@@ -150,28 +154,30 @@ const solarizedDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
150
154
|
{
|
|
151
155
|
tag: [tags.heading2, tags.heading3, tags.heading4],
|
|
152
156
|
fontWeight: 'bold',
|
|
153
|
-
color: base06
|
|
157
|
+
color: base06,
|
|
154
158
|
},
|
|
155
159
|
{
|
|
156
160
|
tag: [tags.heading5, tags.heading6],
|
|
157
|
-
color: base06
|
|
161
|
+
color: base06,
|
|
158
162
|
},
|
|
159
163
|
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base_magenta },
|
|
160
164
|
{
|
|
161
165
|
tag: [tags.processingInstruction, tags.inserted, tags.contentSeparator],
|
|
162
|
-
color: base_red
|
|
166
|
+
color: base_red,
|
|
163
167
|
},
|
|
164
168
|
{
|
|
165
169
|
tag: [tags.contentSeparator],
|
|
166
|
-
color: base_yellow
|
|
170
|
+
color: base_yellow,
|
|
167
171
|
},
|
|
168
|
-
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
172
|
+
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` },
|
|
169
173
|
]);
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
/**
|
|
175
|
+
Extension to enable the Solarized Dark theme (both the editor theme and
|
|
176
|
+
the highlight style).
|
|
177
|
+
*/
|
|
172
178
|
const solarizedDark = [
|
|
173
179
|
solarizedDarkTheme,
|
|
174
|
-
/*@__PURE__*/syntaxHighlighting(solarizedDarkHighlightStyle)
|
|
180
|
+
/*@__PURE__*/syntaxHighlighting(solarizedDarkHighlightStyle),
|
|
175
181
|
];
|
|
176
182
|
|
|
177
183
|
export { solarizedDark, solarizedDarkHighlightStyle, solarizedDarkTheme };
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fsegurai/codemirror-theme-solarized-dark",
|
|
3
|
-
"description": "Solarized Dark theme for the CodeMirror code editor",
|
|
4
|
-
"version": "6.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
"import": "./dist/index.js",
|
|
9
|
-
"require": "./dist/index.cjs"
|
|
10
|
-
},
|
|
11
|
-
"types": "dist/index.d.ts",
|
|
12
|
-
"module": "dist/index.js",
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"scripts": {
|
|
15
|
-
"test": "cm-runtests",
|
|
16
|
-
"prepare": "cm-buildhelper src/index.ts"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"editor",
|
|
20
|
-
"code",
|
|
21
|
-
"codemirror"
|
|
22
|
-
],
|
|
23
|
-
"author": {
|
|
24
|
-
"name": "Fabián Segura",
|
|
25
|
-
"url": "https://www.fsegurai.com/"
|
|
26
|
-
},
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/fsegurai/codemirror-themes.git"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/fsegurai/codemirror-themes/issues"
|
|
34
|
-
},
|
|
35
|
-
"homepage": "https://github.com/fsegurai/codemirror-themes#readme",
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"@lezer/highlight": "^1.0.0",
|
|
38
|
-
"@codemirror/language": "^6.0.0",
|
|
39
|
-
"@codemirror/state": "^6.0.0",
|
|
40
|
-
"@codemirror/view": "^6.0.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@codemirror/buildhelper": "^1.0.
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fsegurai/codemirror-theme-solarized-dark",
|
|
3
|
+
"description": "Solarized Dark theme for the CodeMirror code editor",
|
|
4
|
+
"version": "6.0.6",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"require": "./dist/index.cjs"
|
|
10
|
+
},
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"module": "dist/index.js",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "cm-runtests",
|
|
16
|
+
"prepare": "cm-buildhelper src/index.ts"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"editor",
|
|
20
|
+
"code",
|
|
21
|
+
"codemirror"
|
|
22
|
+
],
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Fabián Segura",
|
|
25
|
+
"url": "https://www.fsegurai.com/"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/fsegurai/codemirror-themes.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/fsegurai/codemirror-themes/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/fsegurai/codemirror-themes#readme",
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@lezer/highlight": "^1.0.0",
|
|
38
|
+
"@codemirror/language": "^6.0.0",
|
|
39
|
+
"@codemirror/state": "^6.0.0",
|
|
40
|
+
"@codemirror/view": "^6.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@codemirror/buildhelper": "^1.0.2"
|
|
44
|
+
}
|
|
45
|
+
}
|