@fsegurai/codemirror-theme-andromeda 6.0.3 → 6.0.6

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-andromeda [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-andromeda.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-andromeda)
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 Andromeda 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
- @andromeda
25
-
26
- @andromedaTheme
27
-
1
+ <!-- NOTE: README.md is generated from src/README.md -->
2
+
3
+ # @fsegurai/codemirror-theme-andromeda [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-andromeda.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-andromeda)
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 Andromeda 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
+ @andromeda
25
+
26
+ @andromedaTheme
27
+
28
28
  @andromedaHighlightStyle
package/dist/index.cjs CHANGED
@@ -24,10 +24,10 @@ const darkBackground = '#292d30', highlightBackground = base02, tooltipBackgroun
24
24
  const andromedaTheme = view.EditorView.theme({
25
25
  '&': {
26
26
  color: base01,
27
- backgroundColor: base00
27
+ backgroundColor: base00,
28
28
  },
29
29
  '.cm-content': {
30
- caretColor: cursor
30
+ caretColor: cursor,
31
31
  },
32
32
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
33
33
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
@@ -37,54 +37,54 @@ const andromedaTheme = view.EditorView.theme({
37
37
  '.cm-searchMatch': {
38
38
  backgroundColor: base02,
39
39
  outline: `1px solid ${base03}`,
40
- color: base07
40
+ color: base07,
41
41
  },
42
42
  '.cm-searchMatch.cm-searchMatch-selected': {
43
43
  backgroundColor: base00,
44
- color: base07
44
+ color: base07,
45
45
  },
46
46
  '.cm-search.cm-panel': {
47
- color: base06
47
+ color: base06,
48
48
  },
49
49
  '.cm-selectionMatch': { backgroundColor: highlightBackground },
50
50
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
51
- outline: `1px solid ${base03}`
51
+ outline: `1px solid ${base03}`,
52
52
  },
53
53
  '&.cm-focused .cm-matchingBracket': {
54
54
  backgroundColor: base02,
55
- color: base07
55
+ color: base07,
56
56
  },
57
57
  '.cm-gutters': {
58
- borderRight: `1px solid #ffffff10`,
58
+ borderRight: '1px solid #ffffff10',
59
59
  color: base06,
60
- backgroundColor: darkBackground
60
+ backgroundColor: darkBackground,
61
61
  },
62
62
  '.cm-activeLineGutter': {
63
- backgroundColor: highlightBackground
63
+ backgroundColor: highlightBackground,
64
64
  },
65
65
  '.cm-foldPlaceholder': {
66
66
  backgroundColor: 'transparent',
67
67
  border: 'none',
68
- color: base02
68
+ color: base02,
69
69
  },
70
70
  '.cm-tooltip': {
71
71
  border: 'none',
72
- backgroundColor: tooltipBackground
72
+ backgroundColor: tooltipBackground,
73
73
  },
74
74
  '.cm-tooltip .cm-tooltip-arrow:before': {
75
75
  borderTopColor: 'transparent',
76
- borderBottomColor: 'transparent'
76
+ borderBottomColor: 'transparent',
77
77
  },
78
78
  '.cm-tooltip .cm-tooltip-arrow:after': {
79
79
  borderTopColor: tooltipBackground,
80
- borderBottomColor: tooltipBackground
80
+ borderBottomColor: tooltipBackground,
81
81
  },
82
82
  '.cm-tooltip-autocomplete': {
83
83
  '& > ul > li[aria-selected]': {
84
84
  backgroundColor: highlightBackground,
85
- color: base03
86
- }
87
- }
85
+ color: base03,
86
+ },
87
+ },
88
88
  }, { dark: true });
89
89
  // Define the highlighting style for code in the Andromeda theme.
90
90
  const andromedaHighlightStyle = language.HighlightStyle.define([
@@ -123,12 +123,12 @@ const andromedaHighlightStyle = language.HighlightStyle.define([
123
123
  { tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base0B },
124
124
  { tag: [highlight.tags.processingInstruction, highlight.tags.inserted], color: base0B },
125
125
  { tag: [highlight.tags.contentSeparator], color: base06 },
126
- { tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
126
+ { tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
127
127
  ]);
128
128
  // Extension to enable the Andromeda theme (both the editor theme and the highlight style).
129
129
  const andromeda = [
130
130
  andromedaTheme,
131
- language.syntaxHighlighting(andromedaHighlightStyle)
131
+ language.syntaxHighlighting(andromedaHighlightStyle),
132
132
  ];
133
133
 
134
134
  exports.andromeda = andromeda;
package/dist/index.js CHANGED
@@ -22,10 +22,10 @@ const darkBackground = '#292d30', highlightBackground = base02, tooltipBackgroun
22
22
  const andromedaTheme = /*@__PURE__*/EditorView.theme({
23
23
  '&': {
24
24
  color: base01,
25
- backgroundColor: base00
25
+ backgroundColor: base00,
26
26
  },
27
27
  '.cm-content': {
28
- caretColor: cursor
28
+ caretColor: cursor,
29
29
  },
30
30
  '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
31
31
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
@@ -35,54 +35,54 @@ const andromedaTheme = /*@__PURE__*/EditorView.theme({
35
35
  '.cm-searchMatch': {
36
36
  backgroundColor: base02,
37
37
  outline: `1px solid ${base03}`,
38
- color: base07
38
+ color: base07,
39
39
  },
40
40
  '.cm-searchMatch.cm-searchMatch-selected': {
41
41
  backgroundColor: base00,
42
- color: base07
42
+ color: base07,
43
43
  },
44
44
  '.cm-search.cm-panel': {
45
- color: base06
45
+ color: base06,
46
46
  },
47
47
  '.cm-selectionMatch': { backgroundColor: highlightBackground },
48
48
  '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
49
- outline: `1px solid ${base03}`
49
+ outline: `1px solid ${base03}`,
50
50
  },
51
51
  '&.cm-focused .cm-matchingBracket': {
52
52
  backgroundColor: base02,
53
- color: base07
53
+ color: base07,
54
54
  },
55
55
  '.cm-gutters': {
56
- borderRight: `1px solid #ffffff10`,
56
+ borderRight: '1px solid #ffffff10',
57
57
  color: base06,
58
- backgroundColor: darkBackground
58
+ backgroundColor: darkBackground,
59
59
  },
60
60
  '.cm-activeLineGutter': {
61
- backgroundColor: highlightBackground
61
+ backgroundColor: highlightBackground,
62
62
  },
63
63
  '.cm-foldPlaceholder': {
64
64
  backgroundColor: 'transparent',
65
65
  border: 'none',
66
- color: base02
66
+ color: base02,
67
67
  },
68
68
  '.cm-tooltip': {
69
69
  border: 'none',
70
- backgroundColor: tooltipBackground
70
+ backgroundColor: tooltipBackground,
71
71
  },
72
72
  '.cm-tooltip .cm-tooltip-arrow:before': {
73
73
  borderTopColor: 'transparent',
74
- borderBottomColor: 'transparent'
74
+ borderBottomColor: 'transparent',
75
75
  },
76
76
  '.cm-tooltip .cm-tooltip-arrow:after': {
77
77
  borderTopColor: tooltipBackground,
78
- borderBottomColor: tooltipBackground
78
+ borderBottomColor: tooltipBackground,
79
79
  },
80
80
  '.cm-tooltip-autocomplete': {
81
81
  '& > ul > li[aria-selected]': {
82
82
  backgroundColor: highlightBackground,
83
- color: base03
84
- }
85
- }
83
+ color: base03,
84
+ },
85
+ },
86
86
  }, { dark: true });
87
87
  // Define the highlighting style for code in the Andromeda theme.
88
88
  const andromedaHighlightStyle = /*@__PURE__*/HighlightStyle.define([
@@ -121,12 +121,12 @@ const andromedaHighlightStyle = /*@__PURE__*/HighlightStyle.define([
121
121
  { tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base0B },
122
122
  { tag: [tags.processingInstruction, tags.inserted], color: base0B },
123
123
  { tag: [tags.contentSeparator], color: base06 },
124
- { tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
124
+ { tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
125
125
  ]);
126
126
  // Extension to enable the Andromeda theme (both the editor theme and the highlight style).
127
127
  const andromeda = [
128
128
  andromedaTheme,
129
- /*@__PURE__*/syntaxHighlighting(andromedaHighlightStyle)
129
+ /*@__PURE__*/syntaxHighlighting(andromedaHighlightStyle),
130
130
  ];
131
131
 
132
132
  export { andromeda, andromedaHighlightStyle, andromedaTheme };
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@fsegurai/codemirror-theme-andromeda",
3
- "description": "Andromeda 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
- }
1
+ {
2
+ "name": "@fsegurai/codemirror-theme-andromeda",
3
+ "description": "Andromeda theme for the CodeMirror code editor",
4
+ "version": "6.0.6",
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
+ }