@fsegurai/codemirror-theme-solarized-light 6.0.2 → 6.0.5
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 +15 -8
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +15 -8
- 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
|
@@ -5,8 +5,10 @@ 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 =
|
|
9
|
-
|
|
8
|
+
const invalid = '#d30102', darkBackground = '#dfd9c8', highlightBackground = '#cceeff7a', background = base3, 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,
|
|
@@ -25,10 +27,11 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
25
27
|
outline: '1px solid #457dff'
|
|
26
28
|
},
|
|
27
29
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
28
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: selection,
|
|
31
|
+
color: '#000000'
|
|
29
32
|
},
|
|
30
33
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
31
|
-
'.cm-selectionMatch': { backgroundColor: '#
|
|
34
|
+
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
32
35
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
33
36
|
outline: `1px solid ${base1}`
|
|
34
37
|
},
|
|
@@ -38,7 +41,7 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
38
41
|
border: 'none'
|
|
39
42
|
},
|
|
40
43
|
'.cm-activeLineGutter': {
|
|
41
|
-
backgroundColor:
|
|
44
|
+
backgroundColor: selection
|
|
42
45
|
},
|
|
43
46
|
'.cm-foldPlaceholder': {
|
|
44
47
|
backgroundColor: 'transparent',
|
|
@@ -64,7 +67,9 @@ const solarizedLightTheme = view.EditorView.theme({
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
}, { dark: false });
|
|
67
|
-
|
|
70
|
+
/**
|
|
71
|
+
The highlighting style for code in the Solarized Light theme.
|
|
72
|
+
*/
|
|
68
73
|
const solarizedLightHighlightStyle = language.HighlightStyle.define([
|
|
69
74
|
{ tag: highlight.tags.keyword, color: base_green },
|
|
70
75
|
{
|
|
@@ -158,8 +163,10 @@ const solarizedLightHighlightStyle = language.HighlightStyle.define([
|
|
|
158
163
|
},
|
|
159
164
|
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
160
165
|
]);
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
/**
|
|
167
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
168
|
+
the highlight style).
|
|
169
|
+
*/
|
|
163
170
|
const solarizedLight = [
|
|
164
171
|
solarizedLightTheme,
|
|
165
172
|
language.syntaxHighlighting(solarizedLightHighlightStyle)
|
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
|
@@ -3,8 +3,10 @@ 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 =
|
|
7
|
-
|
|
6
|
+
const invalid = '#d30102', darkBackground = '#dfd9c8', highlightBackground = '#cceeff7a', background = base3, 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,
|
|
@@ -23,10 +25,11 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
23
25
|
outline: '1px solid #457dff'
|
|
24
26
|
},
|
|
25
27
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
26
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: selection,
|
|
29
|
+
color: '#000000'
|
|
27
30
|
},
|
|
28
31
|
'.cm-activeLine': { backgroundColor: highlightBackground },
|
|
29
|
-
'.cm-selectionMatch': { backgroundColor: '#
|
|
32
|
+
'.cm-selectionMatch': { backgroundColor: '#aafe66' },
|
|
30
33
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
31
34
|
outline: `1px solid ${base1}`
|
|
32
35
|
},
|
|
@@ -36,7 +39,7 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
36
39
|
border: 'none'
|
|
37
40
|
},
|
|
38
41
|
'.cm-activeLineGutter': {
|
|
39
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: selection
|
|
40
43
|
},
|
|
41
44
|
'.cm-foldPlaceholder': {
|
|
42
45
|
backgroundColor: 'transparent',
|
|
@@ -62,7 +65,9 @@ const solarizedLightTheme = /*@__PURE__*/EditorView.theme({
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
}, { dark: false });
|
|
65
|
-
|
|
68
|
+
/**
|
|
69
|
+
The highlighting style for code in the Solarized Light theme.
|
|
70
|
+
*/
|
|
66
71
|
const solarizedLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
67
72
|
{ tag: tags.keyword, color: base_green },
|
|
68
73
|
{
|
|
@@ -156,8 +161,10 @@ const solarizedLightHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
156
161
|
},
|
|
157
162
|
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
|
|
158
163
|
]);
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
/**
|
|
165
|
+
Extension to enable the Solarized Light theme (both the editor theme and
|
|
166
|
+
the highlight style).
|
|
167
|
+
*/
|
|
161
168
|
const solarizedLight = [
|
|
162
169
|
solarizedLightTheme,
|
|
163
170
|
/*@__PURE__*/syntaxHighlighting(solarizedLightHighlightStyle)
|
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.5",
|
|
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
|
+
}
|