@fsegurai/codemirror-theme-gruvbox-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,73 +4,73 @@ var view = require('@codemirror/view');
4
4
  var language = require('@codemirror/language');
5
5
  var highlight = require('@lezer/highlight');
6
6
 
7
- const dark1 = '#3c3836', dark2 = '#504945', dark3 = '#665c54', dark4 = '#7c6f64', gray_244 = '#928374', light0 = '#fbf1c7', light1 = '#ebdbb2', light3 = '#bdae93', faded_red = '#9d0006', faded_green = '#79740e', faded_yellow = '#b57614', faded_blue = '#076678', faded_purple = '#8f3f71', faded_aqua = '#427b58', faded_orange = '#af3a03';
8
- const bg0 = light0, bg1 = light1, bg3 = light3, gray = gray_244, fg1 = dark1, fg2 = dark2, fg3 = dark3, fg4 = dark4, red = faded_red, green = faded_green, yellow = faded_yellow, blue = faded_blue, purple = faded_purple, aqua = faded_aqua, orange = faded_orange;
7
+ const dark0 = '#3c3836', dark1 = '#504945', dark2 = '#665c54', dark3 = '#7c6f64', gray_244 = '#928374', light0 = '#fbf1c7', light1 = '#ebdbb2', light2 = '#bdae93', faded_red = '#9d0006', faded_green = '#79740e', faded_yellow = '#b57614', faded_blue = '#076678', faded_purple = '#8f3f71', faded_aqua = '#427b58', faded_orange = '#af3a03';
8
+ const bg0 = light0, bg1 = light1, bg2 = light2, gray = gray_244, fg0 = dark0, fg1 = dark1, fg2 = dark2, fg3 = dark3, red = faded_red, green = faded_green, yellow = faded_yellow, blue = faded_blue, purple = faded_purple, aqua = faded_aqua, orange = faded_orange;
9
9
  const invalid = red, darkBackground = bg1, highlightBackground = '#ffc42e52', background = bg0, tooltipBackground = bg1, selection = darkBackground, selectionMatch = '#ffc42e', cursor = orange;
10
10
  /**
11
11
  The editor theme styles for Gruvbox Light.
12
12
  */
13
13
  const gruvboxLightTheme = view.EditorView.theme({
14
14
  '&': {
15
- color: fg1,
16
- backgroundColor: background
15
+ color: fg0,
16
+ backgroundColor: background,
17
17
  },
18
18
  '.cm-content': {
19
- caretColor: cursor
19
+ caretColor: cursor,
20
20
  },
21
21
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
22
22
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
23
- '.cm-panels': { backgroundColor: darkBackground, color: fg1 },
23
+ '.cm-panels': { backgroundColor: darkBackground, color: fg0 },
24
24
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
25
25
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
26
26
  '.cm-searchMatch': {
27
27
  backgroundColor: highlightBackground,
28
28
  color: yellow,
29
- outline: `1px solid ${bg3}`
29
+ outline: `1px solid ${bg2}`,
30
30
  },
31
31
  '.cm-searchMatch.cm-searchMatch-selected': {
32
- backgroundColor: selectionMatch
32
+ backgroundColor: selectionMatch,
33
33
  },
34
34
  '.cm-activeLine': { backgroundColor: highlightBackground },
35
- '.cm-selectionMatch': { backgroundColor: bg3 },
35
+ '.cm-selectionMatch': { backgroundColor: bg2 },
36
36
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
37
- outline: `1px solid ${bg3}`,
38
- fontStyle: 'bold'
37
+ outline: `1px solid ${bg2}`,
38
+ fontStyle: 'bold',
39
39
  },
40
40
  '&.cm-focused .cm-matchingBracket': {
41
- backgroundColor: bg3
41
+ backgroundColor: bg2,
42
42
  },
43
43
  '.cm-gutters': {
44
44
  backgroundColor: bg1,
45
- color: fg3,
46
- border: 'none'
45
+ color: fg2,
46
+ border: 'none',
47
47
  },
48
48
  '.cm-activeLineGutter': {
49
- backgroundColor: selectionMatch
49
+ backgroundColor: selectionMatch,
50
50
  },
51
51
  '.cm-foldPlaceholder': {
52
52
  backgroundColor: 'transparent',
53
53
  border: 'none',
54
- color: '#ddd'
54
+ color: '#ddd',
55
55
  },
56
56
  '.cm-tooltip': {
57
57
  border: 'none',
58
- backgroundColor: tooltipBackground
58
+ backgroundColor: tooltipBackground,
59
59
  },
60
60
  '.cm-tooltip .cm-tooltip-arrow:before': {
61
61
  borderTopColor: 'transparent',
62
- borderBottomColor: 'transparent'
62
+ borderBottomColor: 'transparent',
63
63
  },
64
64
  '.cm-tooltip .cm-tooltip-arrow:after': {
65
65
  borderTopColor: tooltipBackground,
66
- borderBottomColor: tooltipBackground
66
+ borderBottomColor: tooltipBackground,
67
67
  },
68
68
  '.cm-tooltip-autocomplete': {
69
69
  '& > ul > li[aria-selected]': {
70
70
  backgroundColor: highlightBackground,
71
- color: fg2
72
- }
73
- }
71
+ color: fg1,
72
+ },
73
+ },
74
74
  }, { dark: false });
75
75
  /**
76
76
  The highlighting style for code in the Gruvbox Light theme.
@@ -79,68 +79,68 @@ const gruvboxLightHighlightStyle = language.HighlightStyle.define([
79
79
  { tag: highlight.tags.keyword, color: red },
80
80
  {
81
81
  tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
82
- color: aqua
82
+ color: aqua,
83
83
  },
84
84
  { tag: [highlight.tags.variableName], color: blue },
85
85
  { tag: [highlight.tags.function(highlight.tags.variableName)], color: green, fontStyle: 'bold' },
86
- { tag: [highlight.tags.labelName], color: fg1 },
86
+ { tag: [highlight.tags.labelName], color: fg0 },
87
87
  {
88
88
  tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
89
- color: purple
89
+ color: purple,
90
90
  },
91
- { tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: fg1 },
92
- { tag: [highlight.tags.brace], color: fg1 },
91
+ { tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: fg0 },
92
+ { tag: [highlight.tags.brace], color: fg0 },
93
93
  {
94
94
  tag: [highlight.tags.annotation],
95
- color: invalid
95
+ color: invalid,
96
96
  },
97
97
  {
98
98
  tag: [highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
99
- color: purple
99
+ color: purple,
100
100
  },
101
101
  {
102
102
  tag: [highlight.tags.typeName, highlight.tags.className],
103
- color: yellow
103
+ color: yellow,
104
104
  },
105
105
  {
106
106
  tag: [highlight.tags.operator, highlight.tags.operatorKeyword],
107
- color: red
107
+ color: red,
108
108
  },
109
109
  {
110
110
  tag: [highlight.tags.tagName],
111
111
  color: aqua,
112
- fontStyle: 'bold'
112
+ fontStyle: 'bold',
113
113
  },
114
114
  {
115
115
  tag: [highlight.tags.squareBracket],
116
- color: orange
116
+ color: orange,
117
117
  },
118
118
  {
119
119
  tag: [highlight.tags.angleBracket],
120
- color: blue
120
+ color: blue,
121
121
  },
122
122
  {
123
123
  tag: [highlight.tags.attributeName],
124
- color: aqua
124
+ color: aqua,
125
125
  },
126
126
  {
127
127
  tag: [highlight.tags.regexp],
128
- color: aqua
128
+ color: aqua,
129
129
  },
130
130
  {
131
131
  tag: [highlight.tags.quote],
132
- color: gray
132
+ color: gray,
133
133
  },
134
- { tag: [highlight.tags.string], color: fg1 },
134
+ { tag: [highlight.tags.string], color: fg0 },
135
135
  {
136
136
  tag: highlight.tags.link,
137
- color: fg4,
137
+ color: fg3,
138
138
  textDecoration: 'underline',
139
- textUnderlinePosition: 'under'
139
+ textUnderlinePosition: 'under',
140
140
  },
141
141
  {
142
142
  tag: [highlight.tags.url, highlight.tags.escape, highlight.tags.special(highlight.tags.string)],
143
- color: purple
143
+ color: purple,
144
144
  },
145
145
  { tag: [highlight.tags.meta], color: yellow },
146
146
  { tag: [highlight.tags.comment], color: gray, fontStyle: 'italic' },
@@ -152,22 +152,22 @@ const gruvboxLightHighlightStyle = language.HighlightStyle.define([
152
152
  {
153
153
  tag: [highlight.tags.heading3, highlight.tags.heading4],
154
154
  fontWeight: 'bold',
155
- color: yellow
155
+ color: yellow,
156
156
  },
157
157
  {
158
158
  tag: [highlight.tags.heading5, highlight.tags.heading6],
159
- color: yellow
159
+ color: yellow,
160
160
  },
161
161
  { tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: purple },
162
162
  {
163
163
  tag: [highlight.tags.processingInstruction, highlight.tags.inserted],
164
- color: blue
164
+ color: blue,
165
165
  },
166
166
  {
167
167
  tag: [highlight.tags.contentSeparator],
168
- color: red
168
+ color: red,
169
169
  },
170
- { tag: highlight.tags.invalid, color: orange, borderBottom: `1px dotted ${invalid}` }
170
+ { tag: highlight.tags.invalid, color: orange, borderBottom: `1px dotted ${invalid}` },
171
171
  ]);
172
172
  /**
173
173
  Extension to enable the Gruvbox Light theme (both the editor theme and
@@ -175,7 +175,7 @@ the highlight style).
175
175
  */
176
176
  const gruvboxLight = [
177
177
  gruvboxLightTheme,
178
- language.syntaxHighlighting(gruvboxLightHighlightStyle)
178
+ language.syntaxHighlighting(gruvboxLightHighlightStyle),
179
179
  ];
180
180
 
181
181
  exports.gruvboxLight = gruvboxLight;
package/dist/index.js CHANGED
@@ -2,73 +2,73 @@ import { EditorView } from '@codemirror/view';
2
2
  import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
3
3
  import { tags } from '@lezer/highlight';
4
4
 
5
- const dark1 = '#3c3836', dark2 = '#504945', dark3 = '#665c54', dark4 = '#7c6f64', gray_244 = '#928374', light0 = '#fbf1c7', light1 = '#ebdbb2', light3 = '#bdae93', faded_red = '#9d0006', faded_green = '#79740e', faded_yellow = '#b57614', faded_blue = '#076678', faded_purple = '#8f3f71', faded_aqua = '#427b58', faded_orange = '#af3a03';
6
- const bg0 = light0, bg1 = light1, bg3 = light3, gray = gray_244, fg1 = dark1, fg2 = dark2, fg3 = dark3, fg4 = dark4, red = faded_red, green = faded_green, yellow = faded_yellow, blue = faded_blue, purple = faded_purple, aqua = faded_aqua, orange = faded_orange;
5
+ const dark0 = '#3c3836', dark1 = '#504945', dark2 = '#665c54', dark3 = '#7c6f64', gray_244 = '#928374', light0 = '#fbf1c7', light1 = '#ebdbb2', light2 = '#bdae93', faded_red = '#9d0006', faded_green = '#79740e', faded_yellow = '#b57614', faded_blue = '#076678', faded_purple = '#8f3f71', faded_aqua = '#427b58', faded_orange = '#af3a03';
6
+ const bg0 = light0, bg1 = light1, bg2 = light2, gray = gray_244, fg0 = dark0, fg1 = dark1, fg2 = dark2, fg3 = dark3, red = faded_red, green = faded_green, yellow = faded_yellow, blue = faded_blue, purple = faded_purple, aqua = faded_aqua, orange = faded_orange;
7
7
  const invalid = red, darkBackground = bg1, highlightBackground = '#ffc42e52', background = bg0, tooltipBackground = bg1, selection = darkBackground, selectionMatch = '#ffc42e', cursor = orange;
8
8
  /**
9
9
  The editor theme styles for Gruvbox Light.
10
10
  */
11
11
  const gruvboxLightTheme = /*@__PURE__*/EditorView.theme({
12
12
  '&': {
13
- color: fg1,
14
- backgroundColor: background
13
+ color: fg0,
14
+ backgroundColor: background,
15
15
  },
16
16
  '.cm-content': {
17
- caretColor: cursor
17
+ caretColor: cursor,
18
18
  },
19
19
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
20
20
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
21
- '.cm-panels': { backgroundColor: darkBackground, color: fg1 },
21
+ '.cm-panels': { backgroundColor: darkBackground, color: fg0 },
22
22
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
23
23
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
24
24
  '.cm-searchMatch': {
25
25
  backgroundColor: highlightBackground,
26
26
  color: yellow,
27
- outline: `1px solid ${bg3}`
27
+ outline: `1px solid ${bg2}`,
28
28
  },
29
29
  '.cm-searchMatch.cm-searchMatch-selected': {
30
- backgroundColor: selectionMatch
30
+ backgroundColor: selectionMatch,
31
31
  },
32
32
  '.cm-activeLine': { backgroundColor: highlightBackground },
33
- '.cm-selectionMatch': { backgroundColor: bg3 },
33
+ '.cm-selectionMatch': { backgroundColor: bg2 },
34
34
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
35
- outline: `1px solid ${bg3}`,
36
- fontStyle: 'bold'
35
+ outline: `1px solid ${bg2}`,
36
+ fontStyle: 'bold',
37
37
  },
38
38
  '&.cm-focused .cm-matchingBracket': {
39
- backgroundColor: bg3
39
+ backgroundColor: bg2,
40
40
  },
41
41
  '.cm-gutters': {
42
42
  backgroundColor: bg1,
43
- color: fg3,
44
- border: 'none'
43
+ color: fg2,
44
+ border: 'none',
45
45
  },
46
46
  '.cm-activeLineGutter': {
47
- backgroundColor: selectionMatch
47
+ backgroundColor: selectionMatch,
48
48
  },
49
49
  '.cm-foldPlaceholder': {
50
50
  backgroundColor: 'transparent',
51
51
  border: 'none',
52
- color: '#ddd'
52
+ color: '#ddd',
53
53
  },
54
54
  '.cm-tooltip': {
55
55
  border: 'none',
56
- backgroundColor: tooltipBackground
56
+ backgroundColor: tooltipBackground,
57
57
  },
58
58
  '.cm-tooltip .cm-tooltip-arrow:before': {
59
59
  borderTopColor: 'transparent',
60
- borderBottomColor: 'transparent'
60
+ borderBottomColor: 'transparent',
61
61
  },
62
62
  '.cm-tooltip .cm-tooltip-arrow:after': {
63
63
  borderTopColor: tooltipBackground,
64
- borderBottomColor: tooltipBackground
64
+ borderBottomColor: tooltipBackground,
65
65
  },
66
66
  '.cm-tooltip-autocomplete': {
67
67
  '& > ul > li[aria-selected]': {
68
68
  backgroundColor: highlightBackground,
69
- color: fg2
70
- }
71
- }
69
+ color: fg1,
70
+ },
71
+ },
72
72
  }, { dark: false });
73
73
  /**
74
74
  The highlighting style for code in the Gruvbox Light theme.
@@ -77,68 +77,68 @@ const gruvboxLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
77
77
  { tag: tags.keyword, color: red },
78
78
  {
79
79
  tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
80
- color: aqua
80
+ color: aqua,
81
81
  },
82
82
  { tag: [tags.variableName], color: blue },
83
83
  { tag: [/*@__PURE__*/tags.function(tags.variableName)], color: green, fontStyle: 'bold' },
84
- { tag: [tags.labelName], color: fg1 },
84
+ { tag: [tags.labelName], color: fg0 },
85
85
  {
86
86
  tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
87
- color: purple
87
+ color: purple,
88
88
  },
89
- { tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: fg1 },
90
- { tag: [tags.brace], color: fg1 },
89
+ { tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: fg0 },
90
+ { tag: [tags.brace], color: fg0 },
91
91
  {
92
92
  tag: [tags.annotation],
93
- color: invalid
93
+ color: invalid,
94
94
  },
95
95
  {
96
96
  tag: [tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
97
- color: purple
97
+ color: purple,
98
98
  },
99
99
  {
100
100
  tag: [tags.typeName, tags.className],
101
- color: yellow
101
+ color: yellow,
102
102
  },
103
103
  {
104
104
  tag: [tags.operator, tags.operatorKeyword],
105
- color: red
105
+ color: red,
106
106
  },
107
107
  {
108
108
  tag: [tags.tagName],
109
109
  color: aqua,
110
- fontStyle: 'bold'
110
+ fontStyle: 'bold',
111
111
  },
112
112
  {
113
113
  tag: [tags.squareBracket],
114
- color: orange
114
+ color: orange,
115
115
  },
116
116
  {
117
117
  tag: [tags.angleBracket],
118
- color: blue
118
+ color: blue,
119
119
  },
120
120
  {
121
121
  tag: [tags.attributeName],
122
- color: aqua
122
+ color: aqua,
123
123
  },
124
124
  {
125
125
  tag: [tags.regexp],
126
- color: aqua
126
+ color: aqua,
127
127
  },
128
128
  {
129
129
  tag: [tags.quote],
130
- color: gray
130
+ color: gray,
131
131
  },
132
- { tag: [tags.string], color: fg1 },
132
+ { tag: [tags.string], color: fg0 },
133
133
  {
134
134
  tag: tags.link,
135
- color: fg4,
135
+ color: fg3,
136
136
  textDecoration: 'underline',
137
- textUnderlinePosition: 'under'
137
+ textUnderlinePosition: 'under',
138
138
  },
139
139
  {
140
140
  tag: [tags.url, tags.escape, /*@__PURE__*/tags.special(tags.string)],
141
- color: purple
141
+ color: purple,
142
142
  },
143
143
  { tag: [tags.meta], color: yellow },
144
144
  { tag: [tags.comment], color: gray, fontStyle: 'italic' },
@@ -150,22 +150,22 @@ const gruvboxLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
150
150
  {
151
151
  tag: [tags.heading3, tags.heading4],
152
152
  fontWeight: 'bold',
153
- color: yellow
153
+ color: yellow,
154
154
  },
155
155
  {
156
156
  tag: [tags.heading5, tags.heading6],
157
- color: yellow
157
+ color: yellow,
158
158
  },
159
159
  { tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: purple },
160
160
  {
161
161
  tag: [tags.processingInstruction, tags.inserted],
162
- color: blue
162
+ color: blue,
163
163
  },
164
164
  {
165
165
  tag: [tags.contentSeparator],
166
- color: red
166
+ color: red,
167
167
  },
168
- { tag: tags.invalid, color: orange, borderBottom: `1px dotted ${invalid}` }
168
+ { tag: tags.invalid, color: orange, borderBottom: `1px dotted ${invalid}` },
169
169
  ]);
170
170
  /**
171
171
  Extension to enable the Gruvbox Light theme (both the editor theme and
@@ -173,7 +173,7 @@ the highlight style).
173
173
  */
174
174
  const gruvboxLight = [
175
175
  gruvboxLightTheme,
176
- /*@__PURE__*/syntaxHighlighting(gruvboxLightHighlightStyle)
176
+ /*@__PURE__*/syntaxHighlighting(gruvboxLightHighlightStyle),
177
177
  ];
178
178
 
179
179
  export { gruvboxLight, gruvboxLightHighlightStyle, gruvboxLightTheme };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-gruvbox-light",
3
3
  "description": "Gruvbox 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": {