@fsegurai/codemirror-theme-solarized-dark 6.0.1 → 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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
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
4
 
5
- [ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/theme-one-dark/blob/main/CHANGELOG.md) ]
5
+ [ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**DEMO**](https://fsegurai.github.io/codemirror-themes/) ]
6
6
 
7
7
  This package implements the Solarized Dark theme for the
8
8
  [CodeMirror](https://codemirror.net/6/) code editor.
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 = '#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;
8
+ const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
9
9
  /// The editor theme styles for Solarized Dark.
10
10
  const solarizedDarkTheme = view.EditorView.theme({
11
11
  '&': {
@@ -16,19 +16,29 @@ const solarizedDarkTheme = view.EditorView.theme({
16
16
  caretColor: cursor
17
17
  },
18
18
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
19
- '&.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
+ },
20
23
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
21
24
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
22
25
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
23
26
  '.cm-searchMatch': {
24
27
  backgroundColor: '#72a1ff59',
25
- outline: '1px solid #457dff'
28
+ outline: '1px solid #457dff',
29
+ color: '#a7a7a7 !important'
26
30
  },
27
31
  '.cm-searchMatch.cm-searchMatch-selected': {
28
- 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'
29
41
  },
30
- '.cm-activeLine': { backgroundColor: highlightBackground },
31
- '.cm-selectionMatch': { backgroundColor: '#aafe661a' },
32
42
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
33
43
  outline: `1px solid ${base06}`
34
44
  },
@@ -38,7 +48,8 @@ const solarizedDarkTheme = view.EditorView.theme({
38
48
  border: 'none'
39
49
  },
40
50
  '.cm-activeLineGutter': {
41
- backgroundColor: highlightBackground
51
+ backgroundColor: selection,
52
+ color: '#FFFFFF'
42
53
  },
43
54
  '.cm-foldPlaceholder': {
44
55
  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 = '#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;
6
+ const invalid = '#d30102', stone = base04, darkBackground = '#00252f', highlightBackground = '#173541', background = base00, tooltipBackground = base01, selection = '#02b8ff57', cursor = base04;
7
7
  /// The editor theme styles for Solarized Dark.
8
8
  const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
9
9
  '&': {
@@ -14,19 +14,29 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
14
14
  caretColor: cursor
15
15
  },
16
16
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
17
- '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
17
+ '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
18
+ backgroundColor: selection,
19
+ color: '#FFFFFF'
20
+ },
18
21
  '.cm-panels': { backgroundColor: darkBackground, color: base03 },
19
22
  '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' },
20
23
  '.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
21
24
  '.cm-searchMatch': {
22
25
  backgroundColor: '#72a1ff59',
23
- outline: '1px solid #457dff'
26
+ outline: '1px solid #457dff',
27
+ color: '#a7a7a7 !important'
24
28
  },
25
29
  '.cm-searchMatch.cm-searchMatch-selected': {
26
- backgroundColor: '#6199ff2f'
30
+ backgroundColor: '#6199ff2f',
31
+ color: '#FFFFFF !important'
32
+ },
33
+ '.cm-searchMatch .cm-selectionMatch': {
34
+ color: '#a7a7a7 !important'
35
+ },
36
+ '.cm-selectionMatch': {
37
+ backgroundColor: '#aafe6673',
38
+ color: '#FFFFFF'
27
39
  },
28
- '.cm-activeLine': { backgroundColor: highlightBackground },
29
- '.cm-selectionMatch': { backgroundColor: '#aafe661a' },
30
40
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
31
41
  outline: `1px solid ${base06}`
32
42
  },
@@ -36,7 +46,8 @@ const solarizedDarkTheme = /*@__PURE__*/EditorView.theme({
36
46
  border: 'none'
37
47
  },
38
48
  '.cm-activeLineGutter': {
39
- backgroundColor: highlightBackground
49
+ backgroundColor: selection,
50
+ color: '#FFFFFF'
40
51
  },
41
52
  '.cm-foldPlaceholder': {
42
53
  backgroundColor: 'transparent',
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.1",
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.3",
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
+ }