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