@fsegurai/codemirror-theme-solarized-light 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 +46 -40
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +46 -40
- 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-light [](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-light)
|
|
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 Light 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
|
-
@solarizedLight
|
|
25
|
-
|
|
26
|
-
@solarizedLightTheme
|
|
27
|
-
|
|
1
|
+
<!-- NOTE: README.md is generated from src/README.md -->
|
|
2
|
+
|
|
3
|
+
# @fsegurai/codemirror-theme-solarized-light [](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-light)
|
|
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 Light 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
|
+
@solarizedLight
|
|
25
|
+
|
|
26
|
+
@solarizedLightTheme
|
|
27
|
+
|
|
28
28
|
@solarizedLightHighlightStyle
|
package/dist/index.cjs
CHANGED
|
@@ -4,16 +4,18 @@ var view = require('@codemirror/view');
|
|
|
4
4
|
var language = require('@codemirror/language');
|
|
5
5
|
var highlight = require('@lezer/highlight');
|
|
6
6
|
|
|
7
|
-
const base00 = '#657b83', base01 = '#586e75', base02 = '#073642', base03 = '#002b36',
|
|
8
|
-
const invalid = '#d30102', darkBackground =
|
|
9
|
-
|
|
7
|
+
const base00 = '#657b83', base01 = '#586e75', base02 = '#073642', base03 = '#002b36', base04 = '#dfd9c8', base05 = '#93a1a1', base06 = '#cceeff7a', 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
|
+
const invalid = '#d30102', darkBackground = base04, highlightBackground = base06, background = base07, tooltipBackground = base01, selection = '#ffbc00', cursor = base01;
|
|
9
|
+
/**
|
|
10
|
+
The editor theme styles for Solarized Light.
|
|
11
|
+
*/
|
|
10
12
|
const solarizedLightTheme = view.EditorView.theme({
|
|
11
13
|
'&': {
|
|
12
14
|
color: base00,
|
|
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': { backgroundColor: selection },
|
|
@@ -22,115 +24,117 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
22
24
|
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
|
|
23
25
|
'.cm-searchMatch': {
|
|
24
26
|
backgroundColor: '#72a1ff59',
|
|
25
|
-
outline: '1px solid #457dff'
|
|
27
|
+
outline: '1px solid #457dff',
|
|
26
28
|
},
|
|
27
29
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
28
30
|
backgroundColor: selection,
|
|
29
|
-
color: '#000000'
|
|
31
|
+
color: '#000000',
|
|
30
32
|
},
|
|
31
33
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
32
34
|
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
33
35
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
34
|
-
outline: `1px solid ${
|
|
36
|
+
outline: `1px solid ${base05}`,
|
|
35
37
|
},
|
|
36
38
|
'.cm-gutters': {
|
|
37
39
|
backgroundColor: '#00000010',
|
|
38
40
|
color: base00,
|
|
39
|
-
border: 'none'
|
|
41
|
+
border: 'none',
|
|
40
42
|
},
|
|
41
43
|
'.cm-activeLineGutter': {
|
|
42
|
-
backgroundColor: selection
|
|
44
|
+
backgroundColor: selection,
|
|
43
45
|
},
|
|
44
46
|
'.cm-foldPlaceholder': {
|
|
45
47
|
backgroundColor: 'transparent',
|
|
46
48
|
border: 'none',
|
|
47
|
-
color: '#ddd'
|
|
49
|
+
color: '#ddd',
|
|
48
50
|
},
|
|
49
51
|
'.cm-tooltip': {
|
|
50
52
|
border: 'none',
|
|
51
|
-
backgroundColor: tooltipBackground
|
|
53
|
+
backgroundColor: tooltipBackground,
|
|
52
54
|
},
|
|
53
55
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
54
56
|
borderTopColor: 'transparent',
|
|
55
|
-
borderBottomColor: 'transparent'
|
|
57
|
+
borderBottomColor: 'transparent',
|
|
56
58
|
},
|
|
57
59
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
58
60
|
borderTopColor: tooltipBackground,
|
|
59
|
-
borderBottomColor: tooltipBackground
|
|
61
|
+
borderBottomColor: tooltipBackground,
|
|
60
62
|
},
|
|
61
63
|
'.cm-tooltip-autocomplete': {
|
|
62
64
|
'& > ul > li[aria-selected]': {
|
|
63
65
|
backgroundColor: highlightBackground,
|
|
64
|
-
color: base03
|
|
65
|
-
}
|
|
66
|
-
}
|
|
66
|
+
color: base03,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
67
69
|
}, { dark: false });
|
|
68
|
-
|
|
70
|
+
/**
|
|
71
|
+
The highlighting style for code in the Solarized Light theme.
|
|
72
|
+
*/
|
|
69
73
|
const solarizedLightHighlightStyle = language.HighlightStyle.define([
|
|
70
74
|
{ tag: highlight.tags.keyword, color: base_green },
|
|
71
75
|
{
|
|
72
76
|
tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
|
|
73
|
-
color: base_cyan
|
|
77
|
+
color: base_cyan,
|
|
74
78
|
},
|
|
75
79
|
{ tag: [highlight.tags.variableName], color: base_blue },
|
|
76
80
|
{ tag: [highlight.tags.function(highlight.tags.variableName)], color: base_blue },
|
|
77
81
|
{ tag: [highlight.tags.labelName], color: base_magenta },
|
|
78
82
|
{
|
|
79
83
|
tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
|
|
80
|
-
color: base_yellow
|
|
84
|
+
color: base_yellow,
|
|
81
85
|
},
|
|
82
86
|
{ tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: base_cyan },
|
|
83
87
|
{ tag: [highlight.tags.brace], color: base_magenta },
|
|
84
88
|
{
|
|
85
89
|
tag: [highlight.tags.annotation],
|
|
86
|
-
color: invalid
|
|
90
|
+
color: invalid,
|
|
87
91
|
},
|
|
88
92
|
{
|
|
89
93
|
tag: [highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
|
|
90
|
-
color: base_magenta
|
|
94
|
+
color: base_magenta,
|
|
91
95
|
},
|
|
92
96
|
{
|
|
93
97
|
tag: [highlight.tags.typeName, highlight.tags.className],
|
|
94
|
-
color: base_orange
|
|
98
|
+
color: base_orange,
|
|
95
99
|
},
|
|
96
100
|
{
|
|
97
101
|
tag: [highlight.tags.operator, highlight.tags.operatorKeyword],
|
|
98
|
-
color: base_violet
|
|
102
|
+
color: base_violet,
|
|
99
103
|
},
|
|
100
104
|
{
|
|
101
105
|
tag: [highlight.tags.tagName],
|
|
102
|
-
color: base_blue
|
|
106
|
+
color: base_blue,
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
tag: [highlight.tags.squareBracket],
|
|
106
|
-
color: base_red
|
|
110
|
+
color: base_red,
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
113
|
tag: [highlight.tags.angleBracket],
|
|
110
|
-
color: base02
|
|
114
|
+
color: base02,
|
|
111
115
|
},
|
|
112
116
|
{
|
|
113
117
|
tag: [highlight.tags.attributeName],
|
|
114
|
-
color:
|
|
118
|
+
color: base05,
|
|
115
119
|
},
|
|
116
120
|
{
|
|
117
121
|
tag: [highlight.tags.regexp],
|
|
118
|
-
color: invalid
|
|
122
|
+
color: invalid,
|
|
119
123
|
},
|
|
120
124
|
{
|
|
121
125
|
tag: [highlight.tags.quote],
|
|
122
|
-
color: base_green
|
|
126
|
+
color: base_green,
|
|
123
127
|
},
|
|
124
128
|
{ tag: [highlight.tags.string], color: base_yellow },
|
|
125
129
|
{
|
|
126
130
|
tag: highlight.tags.link,
|
|
127
131
|
color: base_cyan,
|
|
128
132
|
textDecoration: 'underline',
|
|
129
|
-
textUnderlinePosition: 'under'
|
|
133
|
+
textUnderlinePosition: 'under',
|
|
130
134
|
},
|
|
131
135
|
{
|
|
132
136
|
tag: [highlight.tags.url, highlight.tags.escape, highlight.tags.special(highlight.tags.string)],
|
|
133
|
-
color: base_yellow
|
|
137
|
+
color: base_yellow,
|
|
134
138
|
},
|
|
135
139
|
{ tag: [highlight.tags.meta], color: base_red },
|
|
136
140
|
{ tag: [highlight.tags.comment], color: base02, fontStyle: 'italic' },
|
|
@@ -142,28 +146,30 @@ const solarizedLightHighlightStyle = language.HighlightStyle.define([
|
|
|
142
146
|
{
|
|
143
147
|
tag: [highlight.tags.heading2, highlight.tags.heading3, highlight.tags.heading4],
|
|
144
148
|
fontWeight: 'bold',
|
|
145
|
-
color: base03
|
|
149
|
+
color: base03,
|
|
146
150
|
},
|
|
147
151
|
{
|
|
148
152
|
tag: [highlight.tags.heading5, highlight.tags.heading6],
|
|
149
|
-
color: base03
|
|
153
|
+
color: base03,
|
|
150
154
|
},
|
|
151
155
|
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base_magenta },
|
|
152
156
|
{
|
|
153
157
|
tag: [highlight.tags.processingInstruction, highlight.tags.inserted, highlight.tags.contentSeparator],
|
|
154
|
-
color: base_red
|
|
158
|
+
color: base_red,
|
|
155
159
|
},
|
|
156
160
|
{
|
|
157
161
|
tag: [highlight.tags.contentSeparator],
|
|
158
|
-
color: base_yellow
|
|
162
|
+
color: base_yellow,
|
|
159
163
|
},
|
|
160
|
-
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
164
|
+
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` },
|
|
161
165
|
]);
|
|
162
|
-
|
|
163
|
-
|
|
166
|
+
/**
|
|
167
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
168
|
+
the highlight style).
|
|
169
|
+
*/
|
|
164
170
|
const solarizedLight = [
|
|
165
171
|
solarizedLightTheme,
|
|
166
|
-
language.syntaxHighlighting(solarizedLightHighlightStyle)
|
|
172
|
+
language.syntaxHighlighting(solarizedLightHighlightStyle),
|
|
167
173
|
];
|
|
168
174
|
|
|
169
175
|
exports.solarizedLight = solarizedLight;
|
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 Light.
|
|
6
|
+
*/
|
|
4
7
|
declare const solarizedLightTheme: Extension;
|
|
8
|
+
/**
|
|
9
|
+
The highlighting style for code in the Solarized Light theme.
|
|
10
|
+
*/
|
|
5
11
|
declare const solarizedLightHighlightStyle: HighlightStyle;
|
|
12
|
+
/**
|
|
13
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
14
|
+
the highlight style).
|
|
15
|
+
*/
|
|
6
16
|
declare const solarizedLight: Extension;
|
|
7
17
|
|
|
8
18
|
export { solarizedLight, solarizedLightHighlightStyle, solarizedLightTheme };
|
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 Light.
|
|
6
|
+
*/
|
|
4
7
|
declare const solarizedLightTheme: Extension;
|
|
8
|
+
/**
|
|
9
|
+
The highlighting style for code in the Solarized Light theme.
|
|
10
|
+
*/
|
|
5
11
|
declare const solarizedLightHighlightStyle: HighlightStyle;
|
|
12
|
+
/**
|
|
13
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
14
|
+
the highlight style).
|
|
15
|
+
*/
|
|
6
16
|
declare const solarizedLight: Extension;
|
|
7
17
|
|
|
8
18
|
export { solarizedLight, solarizedLightHighlightStyle, solarizedLightTheme };
|
package/dist/index.js
CHANGED
|
@@ -2,16 +2,18 @@ import { EditorView } from '@codemirror/view';
|
|
|
2
2
|
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
3
3
|
import { tags } from '@lezer/highlight';
|
|
4
4
|
|
|
5
|
-
const base00 = '#657b83', base01 = '#586e75', base02 = '#073642', base03 = '#002b36',
|
|
6
|
-
const invalid = '#d30102', darkBackground =
|
|
7
|
-
|
|
5
|
+
const base00 = '#657b83', base01 = '#586e75', base02 = '#073642', base03 = '#002b36', base04 = '#dfd9c8', base05 = '#93a1a1', base06 = '#cceeff7a', 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
|
+
const invalid = '#d30102', darkBackground = base04, highlightBackground = base06, background = base07, tooltipBackground = base01, selection = '#ffbc00', cursor = base01;
|
|
7
|
+
/**
|
|
8
|
+
The editor theme styles for Solarized Light.
|
|
9
|
+
*/
|
|
8
10
|
const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
9
11
|
'&': {
|
|
10
12
|
color: base00,
|
|
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': { backgroundColor: selection },
|
|
@@ -20,115 +22,117 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
20
22
|
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
|
|
21
23
|
'.cm-searchMatch': {
|
|
22
24
|
backgroundColor: '#72a1ff59',
|
|
23
|
-
outline: '1px solid #457dff'
|
|
25
|
+
outline: '1px solid #457dff',
|
|
24
26
|
},
|
|
25
27
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
26
28
|
backgroundColor: selection,
|
|
27
|
-
color: '#000000'
|
|
29
|
+
color: '#000000',
|
|
28
30
|
},
|
|
29
31
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
30
32
|
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
31
33
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
32
|
-
outline: `1px solid ${
|
|
34
|
+
outline: `1px solid ${base05}`,
|
|
33
35
|
},
|
|
34
36
|
'.cm-gutters': {
|
|
35
37
|
backgroundColor: '#00000010',
|
|
36
38
|
color: base00,
|
|
37
|
-
border: 'none'
|
|
39
|
+
border: 'none',
|
|
38
40
|
},
|
|
39
41
|
'.cm-activeLineGutter': {
|
|
40
|
-
backgroundColor: selection
|
|
42
|
+
backgroundColor: selection,
|
|
41
43
|
},
|
|
42
44
|
'.cm-foldPlaceholder': {
|
|
43
45
|
backgroundColor: 'transparent',
|
|
44
46
|
border: 'none',
|
|
45
|
-
color: '#ddd'
|
|
47
|
+
color: '#ddd',
|
|
46
48
|
},
|
|
47
49
|
'.cm-tooltip': {
|
|
48
50
|
border: 'none',
|
|
49
|
-
backgroundColor: tooltipBackground
|
|
51
|
+
backgroundColor: tooltipBackground,
|
|
50
52
|
},
|
|
51
53
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
52
54
|
borderTopColor: 'transparent',
|
|
53
|
-
borderBottomColor: 'transparent'
|
|
55
|
+
borderBottomColor: 'transparent',
|
|
54
56
|
},
|
|
55
57
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
56
58
|
borderTopColor: tooltipBackground,
|
|
57
|
-
borderBottomColor: tooltipBackground
|
|
59
|
+
borderBottomColor: tooltipBackground,
|
|
58
60
|
},
|
|
59
61
|
'.cm-tooltip-autocomplete': {
|
|
60
62
|
'& > ul > li[aria-selected]': {
|
|
61
63
|
backgroundColor: highlightBackground,
|
|
62
|
-
color: base03
|
|
63
|
-
}
|
|
64
|
-
}
|
|
64
|
+
color: base03,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
65
67
|
}, { dark: false });
|
|
66
|
-
|
|
68
|
+
/**
|
|
69
|
+
The highlighting style for code in the Solarized Light theme.
|
|
70
|
+
*/
|
|
67
71
|
const solarizedLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
68
72
|
{ tag: tags.keyword, color: base_green },
|
|
69
73
|
{
|
|
70
74
|
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
71
|
-
color: base_cyan
|
|
75
|
+
color: base_cyan,
|
|
72
76
|
},
|
|
73
77
|
{ tag: [tags.variableName], color: base_blue },
|
|
74
78
|
{ tag: [/*@__PURE__*/tags.function(tags.variableName)], color: base_blue },
|
|
75
79
|
{ tag: [tags.labelName], color: base_magenta },
|
|
76
80
|
{
|
|
77
81
|
tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
|
78
|
-
color: base_yellow
|
|
82
|
+
color: base_yellow,
|
|
79
83
|
},
|
|
80
84
|
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: base_cyan },
|
|
81
85
|
{ tag: [tags.brace], color: base_magenta },
|
|
82
86
|
{
|
|
83
87
|
tag: [tags.annotation],
|
|
84
|
-
color: invalid
|
|
88
|
+
color: invalid,
|
|
85
89
|
},
|
|
86
90
|
{
|
|
87
91
|
tag: [tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
88
|
-
color: base_magenta
|
|
92
|
+
color: base_magenta,
|
|
89
93
|
},
|
|
90
94
|
{
|
|
91
95
|
tag: [tags.typeName, tags.className],
|
|
92
|
-
color: base_orange
|
|
96
|
+
color: base_orange,
|
|
93
97
|
},
|
|
94
98
|
{
|
|
95
99
|
tag: [tags.operator, tags.operatorKeyword],
|
|
96
|
-
color: base_violet
|
|
100
|
+
color: base_violet,
|
|
97
101
|
},
|
|
98
102
|
{
|
|
99
103
|
tag: [tags.tagName],
|
|
100
|
-
color: base_blue
|
|
104
|
+
color: base_blue,
|
|
101
105
|
},
|
|
102
106
|
{
|
|
103
107
|
tag: [tags.squareBracket],
|
|
104
|
-
color: base_red
|
|
108
|
+
color: base_red,
|
|
105
109
|
},
|
|
106
110
|
{
|
|
107
111
|
tag: [tags.angleBracket],
|
|
108
|
-
color: base02
|
|
112
|
+
color: base02,
|
|
109
113
|
},
|
|
110
114
|
{
|
|
111
115
|
tag: [tags.attributeName],
|
|
112
|
-
color:
|
|
116
|
+
color: base05,
|
|
113
117
|
},
|
|
114
118
|
{
|
|
115
119
|
tag: [tags.regexp],
|
|
116
|
-
color: invalid
|
|
120
|
+
color: invalid,
|
|
117
121
|
},
|
|
118
122
|
{
|
|
119
123
|
tag: [tags.quote],
|
|
120
|
-
color: base_green
|
|
124
|
+
color: base_green,
|
|
121
125
|
},
|
|
122
126
|
{ tag: [tags.string], color: base_yellow },
|
|
123
127
|
{
|
|
124
128
|
tag: tags.link,
|
|
125
129
|
color: base_cyan,
|
|
126
130
|
textDecoration: 'underline',
|
|
127
|
-
textUnderlinePosition: 'under'
|
|
131
|
+
textUnderlinePosition: 'under',
|
|
128
132
|
},
|
|
129
133
|
{
|
|
130
134
|
tag: [tags.url, tags.escape, /*@__PURE__*/tags.special(tags.string)],
|
|
131
|
-
color: base_yellow
|
|
135
|
+
color: base_yellow,
|
|
132
136
|
},
|
|
133
137
|
{ tag: [tags.meta], color: base_red },
|
|
134
138
|
{ tag: [tags.comment], color: base02, fontStyle: 'italic' },
|
|
@@ -140,28 +144,30 @@ const solarizedLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
140
144
|
{
|
|
141
145
|
tag: [tags.heading2, tags.heading3, tags.heading4],
|
|
142
146
|
fontWeight: 'bold',
|
|
143
|
-
color: base03
|
|
147
|
+
color: base03,
|
|
144
148
|
},
|
|
145
149
|
{
|
|
146
150
|
tag: [tags.heading5, tags.heading6],
|
|
147
|
-
color: base03
|
|
151
|
+
color: base03,
|
|
148
152
|
},
|
|
149
153
|
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base_magenta },
|
|
150
154
|
{
|
|
151
155
|
tag: [tags.processingInstruction, tags.inserted, tags.contentSeparator],
|
|
152
|
-
color: base_red
|
|
156
|
+
color: base_red,
|
|
153
157
|
},
|
|
154
158
|
{
|
|
155
159
|
tag: [tags.contentSeparator],
|
|
156
|
-
color: base_yellow
|
|
160
|
+
color: base_yellow,
|
|
157
161
|
},
|
|
158
|
-
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
162
|
+
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` },
|
|
159
163
|
]);
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
/**
|
|
165
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
166
|
+
the highlight style).
|
|
167
|
+
*/
|
|
162
168
|
const solarizedLight = [
|
|
163
169
|
solarizedLightTheme,
|
|
164
|
-
/*@__PURE__*/syntaxHighlighting(solarizedLightHighlightStyle)
|
|
170
|
+
/*@__PURE__*/syntaxHighlighting(solarizedLightHighlightStyle),
|
|
165
171
|
];
|
|
166
172
|
|
|
167
173
|
export { solarizedLight, solarizedLightHighlightStyle, solarizedLightTheme };
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fsegurai/codemirror-theme-solarized-light",
|
|
3
|
-
"description": "Solarized Light 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-light",
|
|
3
|
+
"description": "Solarized Light 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
|
+
}
|