@fsegurai/codemirror-theme-nord 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,9 +2,7 @@
2
2
 
3
3
  # @fsegurai/codemirror-theme-nord [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-nord.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-nord)
4
4
 
5
- [ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [*
6
- *FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG
7
- **](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/) ]
8
6
 
9
7
  This package implements the Nord theme for the
10
8
  [CodeMirror](https://codemirror.net/6/) code editor.
package/dist/index.cjs CHANGED
@@ -24,7 +24,7 @@ base0C = '#d08770', // orange
24
24
  base0D = '#ebcb8b', // yellow
25
25
  base0E = '#a3be8c', // green
26
26
  base0F = '#b48ead'; // purple
27
- const invalid = '#d30102', darkBackground = '#252a33', highlightBackground = base03, background = base00, tooltipBackground = base01, selection = base03, cursor = base04;
27
+ const invalid = '#d30102', darkBackground = '#252a33', highlightBackground = base03, background = base00, tooltipBackground = base01, selection = base03, selectionMatch = '#4c566a80', cursor = base04;
28
28
  /// The editor theme styles for Nord.
29
29
  const nordTheme = view.EditorView.theme({
30
30
  '&': {
@@ -47,10 +47,9 @@ const nordTheme = view.EditorView.theme({
47
47
  backgroundColor: base04,
48
48
  color: base00
49
49
  },
50
- '.cm-activeLine': { backgroundColor: highlightBackground },
50
+ '.cm-activeLine': { backgroundColor: selectionMatch },
51
51
  '.cm-selectionMatch': {
52
- backgroundColor: base05,
53
- color: base01
52
+ backgroundColor: base05
54
53
  },
55
54
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
56
55
  outline: `1px solid ${base07}`
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ base0C = '#d08770', // orange
22
22
  base0D = '#ebcb8b', // yellow
23
23
  base0E = '#a3be8c', // green
24
24
  base0F = '#b48ead'; // purple
25
- const invalid = '#d30102', darkBackground = '#252a33', highlightBackground = base03, background = base00, tooltipBackground = base01, selection = base03, cursor = base04;
25
+ const invalid = '#d30102', darkBackground = '#252a33', highlightBackground = base03, background = base00, tooltipBackground = base01, selection = base03, selectionMatch = '#4c566a80', cursor = base04;
26
26
  /// The editor theme styles for Nord.
27
27
  const nordTheme = /*@__PURE__*/EditorView.theme({
28
28
  '&': {
@@ -45,10 +45,9 @@ const nordTheme = /*@__PURE__*/EditorView.theme({
45
45
  backgroundColor: base04,
46
46
  color: base00
47
47
  },
48
- '.cm-activeLine': { backgroundColor: highlightBackground },
48
+ '.cm-activeLine': { backgroundColor: selectionMatch },
49
49
  '.cm-selectionMatch': {
50
- backgroundColor: base05,
51
- color: base01
50
+ backgroundColor: base05
52
51
  },
53
52
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
54
53
  outline: `1px solid ${base07}`
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@fsegurai/codemirror-theme-nord",
3
- "description": "Nord 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-nord",
3
+ "description": "Nord 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
+ }