@fsegurai/codemirror-theme-solarized-dark 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 CHANGED
@@ -1,28 +1,28 @@
1
- <!-- NOTE: README.md is generated from src/README.md -->
2
-
3
- # @fsegurai/codemirror-theme-solarized-dark [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-solarized-dark.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-dark)
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 Dark 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
- @solarizedDark
25
-
26
- @solarizedDarkTheme
27
-
1
+ <!-- NOTE: README.md is generated from src/README.md -->
2
+
3
+ # @fsegurai/codemirror-theme-solarized-dark [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-solarized-dark.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-solarized-dark)
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 Dark 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
+ @solarizedDark
25
+
26
+ @solarizedDarkTheme
27
+
28
28
  @solarizedDarkHighlightStyle
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 = '#002b36', base01 = '#073642', base02 = '#586e75', base03 = '#657b83', base04 = '#839496', base05 = '#93a1a1', base06 = '#eee8d5', 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', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#173541', cursor = base04;
9
- /// The editor theme styles for Solarized Dark.
8
+ const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
9
+ /**
10
+ The editor theme styles for Solarized Dark.
11
+ */
10
12
  const solarizedDarkTheme = view.EditorView.theme({
11
13
  '&': {
12
14
  color: base05,
@@ -16,19 +18,29 @@ const solarizedDarkTheme = view.EditorView.theme({
16
18
  caretColor: cursor
17
19
  },
18
20
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
19
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
21
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
22
+ backgroundColor: selection,
23
+ color: '#FFFFFF'
24
+ },
20
25
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
21
26
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
22
27
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
23
28
  '.cm-searchMatch': {
24
29
  backgroundColor: '#72a1ff59',
25
- outline: '1px solid #457dff'
30
+ outline: '1px solid #457dff',
31
+ color: '#a7a7a7 !important'
26
32
  },
27
33
  '.cm-searchMatch.cm-searchMatch-selected': {
28
- backgroundColor: '#6199ff2f'
34
+ backgroundColor: '#6199ff2f',
35
+ color: '#FFFFFF !important'
36
+ },
37
+ '.cm-searchMatch .cm-selectionMatch': {
38
+ color: '#a7a7a7 !important'
39
+ },
40
+ '.cm-selectionMatch': {
41
+ backgroundColor: '#aafe6673',
42
+ color: '#FFFFFF'
29
43
  },
30
- '.cm-activeLine': { backgroundColor: highlightBackground },
31
- '.cm-selectionMatch': { backgroundColor: '#aafe661a' },
32
44
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
33
45
  outline: `1px solid ${base06}`
34
46
  },
@@ -38,7 +50,8 @@ const solarizedDarkTheme = view.EditorView.theme({
38
50
  border: 'none'
39
51
  },
40
52
  '.cm-activeLineGutter': {
41
- backgroundColor: highlightBackground
53
+ backgroundColor: selection,
54
+ color: '#FFFFFF'
42
55
  },
43
56
  '.cm-foldPlaceholder': {
44
57
  backgroundColor: 'transparent',
@@ -64,7 +77,9 @@ const solarizedDarkTheme = view.EditorView.theme({
64
77
  }
65
78
  }
66
79
  }, { dark: true });
67
- /// The highlighting style for code in the Solarized Dark theme.
80
+ /**
81
+ The highlighting style for code in the Solarized Dark theme.
82
+ */
68
83
  const solarizedDarkHighlightStyle = language.HighlightStyle.define([
69
84
  { tag: highlight.tags.keyword, color: base_green },
70
85
  {
@@ -158,8 +173,10 @@ const solarizedDarkHighlightStyle = language.HighlightStyle.define([
158
173
  },
159
174
  { tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
160
175
  ]);
161
- /// Extension to enable the Solarized Dark theme (both the editor theme and
162
- /// the highlight style).
176
+ /**
177
+ Extension to enable the Solarized Dark theme (both the editor theme and
178
+ the highlight style).
179
+ */
163
180
  const solarizedDark = [
164
181
  solarizedDarkTheme,
165
182
  language.syntaxHighlighting(solarizedDarkHighlightStyle)
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 Dark.
6
+ */
4
7
  declare const solarizedDarkTheme: Extension;
8
+ /**
9
+ The highlighting style for code in the Solarized Dark theme.
10
+ */
5
11
  declare const solarizedDarkHighlightStyle: HighlightStyle;
12
+ /**
13
+ Extension to enable the Solarized Dark theme (both the editor theme and
14
+ the highlight style).
15
+ */
6
16
  declare const solarizedDark: Extension;
7
17
 
8
18
  export { solarizedDark, solarizedDarkHighlightStyle, solarizedDarkTheme };
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 Dark.
6
+ */
4
7
  declare const solarizedDarkTheme: Extension;
8
+ /**
9
+ The highlighting style for code in the Solarized Dark theme.
10
+ */
5
11
  declare const solarizedDarkHighlightStyle: HighlightStyle;
12
+ /**
13
+ Extension to enable the Solarized Dark theme (both the editor theme and
14
+ the highlight style).
15
+ */
6
16
  declare const solarizedDark: Extension;
7
17
 
8
18
  export { solarizedDark, solarizedDarkHighlightStyle, solarizedDarkTheme };
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 = '#002b36', base01 = '#073642', base02 = '#586e75', base03 = '#657b83', base04 = '#839496', base05 = '#93a1a1', base06 = '#eee8d5', 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', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#173541', cursor = base04;
7
- /// The editor theme styles for Solarized Dark.
6
+ const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
7
+ /**
8
+ The editor theme styles for Solarized Dark.
9
+ */
8
10
  const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
9
11
  '&': {
10
12
  color: base05,
@@ -14,19 +16,29 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
14
16
  caretColor: cursor
15
17
  },
16
18
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
17
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
19
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
20
+ backgroundColor: selection,
21
+ color: '#FFFFFF'
22
+ },
18
23
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
19
24
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
20
25
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
21
26
  '.cm-searchMatch': {
22
27
  backgroundColor: '#72a1ff59',
23
- outline: '1px solid #457dff'
28
+ outline: '1px solid #457dff',
29
+ color: '#a7a7a7 !important'
24
30
  },
25
31
  '.cm-searchMatch.cm-searchMatch-selected': {
26
- backgroundColor: '#6199ff2f'
32
+ backgroundColor: '#6199ff2f',
33
+ color: '#FFFFFF !important'
34
+ },
35
+ '.cm-searchMatch .cm-selectionMatch': {
36
+ color: '#a7a7a7 !important'
37
+ },
38
+ '.cm-selectionMatch': {
39
+ backgroundColor: '#aafe6673',
40
+ color: '#FFFFFF'
27
41
  },
28
- '.cm-activeLine': { backgroundColor: highlightBackground },
29
- '.cm-selectionMatch': { backgroundColor: '#aafe661a' },
30
42
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
31
43
  outline: `1px solid ${base06}`
32
44
  },
@@ -36,7 +48,8 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
36
48
  border: 'none'
37
49
  },
38
50
  '.cm-activeLineGutter': {
39
- backgroundColor: highlightBackground
51
+ backgroundColor: selection,
52
+ color: '#FFFFFF'
40
53
  },
41
54
  '.cm-foldPlaceholder': {
42
55
  backgroundColor: 'transparent',
@@ -62,7 +75,9 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
62
75
  }
63
76
  }
64
77
  }, { dark: true });
65
- /// The highlighting style for code in the Solarized Dark theme.
78
+ /**
79
+ The highlighting style for code in the Solarized Dark theme.
80
+ */
66
81
  const solarizedDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
67
82
  { tag: tags.keyword, color: base_green },
68
83
  {
@@ -156,8 +171,10 @@ const solarizedDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([
156
171
  },
157
172
  { tag: tags.invalid, color: base02, borderBottom: `1px dotted ${base_red}` }
158
173
  ]);
159
- /// Extension to enable the Solarized Dark theme (both the editor theme and
160
- /// the highlight style).
174
+ /**
175
+ Extension to enable the Solarized Dark theme (both the editor theme and
176
+ the highlight style).
177
+ */
161
178
  const solarizedDark = [
162
179
  solarizedDarkTheme,
163
180
  /*@__PURE__*/syntaxHighlighting(solarizedDarkHighlightStyle)
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@fsegurai/codemirror-theme-solarized-dark",
3
- "description": "Solarized Dark theme for the CodeMirror code editor",
4
- "version": "6.0.2",
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.1"
44
- }
45
- }
1
+ {
2
+ "name": "@fsegurai/codemirror-theme-solarized-dark",
3
+ "description": "Solarized Dark 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
+ }