@fsegurai/codemirror-theme-gruvbox-light 6.0.2 → 6.0.3
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 +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var highlight = require('@lezer/highlight');
|
|
|
6
6
|
|
|
7
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
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;
|
|
9
|
-
const invalid = red, darkBackground = bg1, highlightBackground =
|
|
9
|
+
const invalid = red, darkBackground = bg1, highlightBackground = '#ffc42e52', background = bg0, tooltipBackground = bg1, selection = darkBackground, selectionMatch = '#ffc42e', cursor = orange;
|
|
10
10
|
/// The editor theme styles for Gruvbox Light.
|
|
11
11
|
const gruvboxLightTheme = view.EditorView.theme({
|
|
12
12
|
'&': {
|
|
@@ -22,12 +22,12 @@ const gruvboxLightTheme = view.EditorView.theme({
|
|
|
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
|
-
backgroundColor:
|
|
25
|
+
backgroundColor: highlightBackground,
|
|
26
26
|
color: yellow,
|
|
27
27
|
outline: `1px solid ${bg3}`
|
|
28
28
|
},
|
|
29
29
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
30
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: selectionMatch
|
|
31
31
|
},
|
|
32
32
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
33
33
|
'.cm-selectionMatch': { backgroundColor: bg3 },
|
|
@@ -44,7 +44,7 @@ const gruvboxLightTheme = view.EditorView.theme({
|
|
|
44
44
|
border: 'none'
|
|
45
45
|
},
|
|
46
46
|
'.cm-activeLineGutter': {
|
|
47
|
-
backgroundColor:
|
|
47
|
+
backgroundColor: selectionMatch
|
|
48
48
|
},
|
|
49
49
|
'.cm-foldPlaceholder': {
|
|
50
50
|
backgroundColor: 'transparent',
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { tags } from '@lezer/highlight';
|
|
|
4
4
|
|
|
5
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
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;
|
|
7
|
-
const invalid = red, darkBackground = bg1, highlightBackground =
|
|
7
|
+
const invalid = red, darkBackground = bg1, highlightBackground = '#ffc42e52', background = bg0, tooltipBackground = bg1, selection = darkBackground, selectionMatch = '#ffc42e', cursor = orange;
|
|
8
8
|
/// The editor theme styles for Gruvbox Light.
|
|
9
9
|
const gruvboxLightTheme = /*@__PURE__*/EditorView.theme({
|
|
10
10
|
'&': {
|
|
@@ -20,12 +20,12 @@ const gruvboxLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
20
20
|
'.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
|
|
21
21
|
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
|
|
22
22
|
'.cm-searchMatch': {
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: highlightBackground,
|
|
24
24
|
color: yellow,
|
|
25
25
|
outline: `1px solid ${bg3}`
|
|
26
26
|
},
|
|
27
27
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: selectionMatch
|
|
29
29
|
},
|
|
30
30
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
31
31
|
'.cm-selectionMatch': { backgroundColor: bg3 },
|
|
@@ -42,7 +42,7 @@ const gruvboxLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
42
42
|
border: 'none'
|
|
43
43
|
},
|
|
44
44
|
'.cm-activeLineGutter': {
|
|
45
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: selectionMatch
|
|
46
46
|
},
|
|
47
47
|
'.cm-foldPlaceholder': {
|
|
48
48
|
backgroundColor: 'transparent',
|