@fsegurai/codemirror-theme-solarized-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 +5 -4
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ var language = require('@codemirror/language');
|
|
|
5
5
|
var highlight = require('@lezer/highlight');
|
|
6
6
|
|
|
7
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 =
|
|
8
|
+
const invalid = '#d30102', darkBackground = '#dfd9c8', highlightBackground = '#cceeff7a', background = base3, tooltipBackground = base01, selection = '#ffbc00', cursor = base01;
|
|
9
9
|
/// The editor theme styles for Solarized Light.
|
|
10
10
|
const solarizedLightTheme = view.EditorView.theme({
|
|
11
11
|
'&': {
|
|
@@ -25,10 +25,11 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
25
25
|
outline: '1px solid #457dff'
|
|
26
26
|
},
|
|
27
27
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: selection,
|
|
29
|
+
color: '#000000'
|
|
29
30
|
},
|
|
30
31
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
31
|
-
'.cm-selectionMatch': { backgroundColor: '#
|
|
32
|
+
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
32
33
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
33
34
|
outline: `1px solid ${base1}`
|
|
34
35
|
},
|
|
@@ -38,7 +39,7 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
38
39
|
border: 'none'
|
|
39
40
|
},
|
|
40
41
|
'.cm-activeLineGutter': {
|
|
41
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: selection
|
|
42
43
|
},
|
|
43
44
|
'.cm-foldPlaceholder': {
|
|
44
45
|
backgroundColor: 'transparent',
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
|
3
3
|
import { tags } from '@lezer/highlight';
|
|
4
4
|
|
|
5
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 =
|
|
6
|
+
const invalid = '#d30102', darkBackground = '#dfd9c8', highlightBackground = '#cceeff7a', background = base3, tooltipBackground = base01, selection = '#ffbc00', cursor = base01;
|
|
7
7
|
/// The editor theme styles for Solarized Light.
|
|
8
8
|
const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
9
9
|
'&': {
|
|
@@ -23,10 +23,11 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
23
23
|
outline: '1px solid #457dff'
|
|
24
24
|
},
|
|
25
25
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
26
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: selection,
|
|
27
|
+
color: '#000000'
|
|
27
28
|
},
|
|
28
29
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
29
|
-
'.cm-selectionMatch': { backgroundColor: '#
|
|
30
|
+
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
30
31
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
31
32
|
outline: `1px solid ${base1}`
|
|
32
33
|
},
|
|
@@ -36,7 +37,7 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
36
37
|
border: 'none'
|
|
37
38
|
},
|
|
38
39
|
'.cm-activeLineGutter': {
|
|
39
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: selection
|
|
40
41
|
},
|
|
41
42
|
'.cm-foldPlaceholder': {
|
|
42
43
|
backgroundColor: 'transparent',
|
package/package.json
CHANGED