@fsegurai/codemirror-theme-nord 6.0.5 → 6.0.7
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/dist/index.cjs +36 -36
- package/dist/index.js +36 -36
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31,10 +31,10 @@ The editor theme styles for Nord.
|
|
|
31
31
|
const nordTheme = view.EditorView.theme({
|
|
32
32
|
'&': {
|
|
33
33
|
color: base04,
|
|
34
|
-
backgroundColor: background
|
|
34
|
+
backgroundColor: background,
|
|
35
35
|
},
|
|
36
36
|
'.cm-content': {
|
|
37
|
-
caretColor: cursor
|
|
37
|
+
caretColor: cursor,
|
|
38
38
|
},
|
|
39
39
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
40
40
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
|
|
@@ -43,55 +43,55 @@ const nordTheme = view.EditorView.theme({
|
|
|
43
43
|
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
|
|
44
44
|
'.cm-searchMatch': {
|
|
45
45
|
backgroundColor: 'transparent',
|
|
46
|
-
outline: `1px solid ${base07}
|
|
46
|
+
outline: `1px solid ${base07}`,
|
|
47
47
|
},
|
|
48
48
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
49
49
|
backgroundColor: base04,
|
|
50
|
-
color: base00
|
|
50
|
+
color: base00,
|
|
51
51
|
},
|
|
52
52
|
'.cm-activeLine': { backgroundColor: selectionMatch },
|
|
53
53
|
'.cm-selectionMatch': {
|
|
54
|
-
backgroundColor: base05
|
|
54
|
+
backgroundColor: base05,
|
|
55
55
|
},
|
|
56
56
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
57
|
-
outline: `1px solid ${base07}
|
|
57
|
+
outline: `1px solid ${base07}`,
|
|
58
58
|
},
|
|
59
59
|
'&.cm-focused .cm-matchingBracket': {
|
|
60
60
|
backgroundColor: base06,
|
|
61
|
-
color: base02
|
|
61
|
+
color: base02,
|
|
62
62
|
},
|
|
63
63
|
'.cm-gutters': {
|
|
64
64
|
backgroundColor: base00,
|
|
65
65
|
color: base03,
|
|
66
|
-
border: 'none'
|
|
66
|
+
border: 'none',
|
|
67
67
|
},
|
|
68
68
|
'.cm-activeLineGutter': {
|
|
69
69
|
backgroundColor: highlightBackground,
|
|
70
|
-
color: base04
|
|
70
|
+
color: base04,
|
|
71
71
|
},
|
|
72
72
|
'.cm-foldPlaceholder': {
|
|
73
73
|
backgroundColor: 'transparent',
|
|
74
74
|
border: 'none',
|
|
75
|
-
color: '#ddd'
|
|
75
|
+
color: '#ddd',
|
|
76
76
|
},
|
|
77
77
|
'.cm-tooltip': {
|
|
78
78
|
border: 'none',
|
|
79
|
-
backgroundColor: tooltipBackground
|
|
79
|
+
backgroundColor: tooltipBackground,
|
|
80
80
|
},
|
|
81
81
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
82
82
|
borderTopColor: 'transparent',
|
|
83
|
-
borderBottomColor: 'transparent'
|
|
83
|
+
borderBottomColor: 'transparent',
|
|
84
84
|
},
|
|
85
85
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
86
86
|
borderTopColor: tooltipBackground,
|
|
87
|
-
borderBottomColor: tooltipBackground
|
|
87
|
+
borderBottomColor: tooltipBackground,
|
|
88
88
|
},
|
|
89
89
|
'.cm-tooltip-autocomplete': {
|
|
90
90
|
'& > ul > li[aria-selected]': {
|
|
91
91
|
backgroundColor: highlightBackground,
|
|
92
|
-
color: base03
|
|
93
|
-
}
|
|
94
|
-
}
|
|
92
|
+
color: base03,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
95
|
}, { dark: true });
|
|
96
96
|
/**
|
|
97
97
|
The highlighting style for code in the Nord theme.
|
|
@@ -100,67 +100,67 @@ const nordHighlightStyle = language.HighlightStyle.define([
|
|
|
100
100
|
{ tag: highlight.tags.keyword, color: base0A },
|
|
101
101
|
{
|
|
102
102
|
tag: [highlight.tags.name, highlight.tags.deleted, highlight.tags.character, highlight.tags.propertyName, highlight.tags.macroName],
|
|
103
|
-
color: base08
|
|
103
|
+
color: base08,
|
|
104
104
|
},
|
|
105
105
|
{ tag: [highlight.tags.variableName], color: base07 },
|
|
106
106
|
{ tag: [highlight.tags.function(highlight.tags.variableName)], color: base07 },
|
|
107
107
|
{ tag: [highlight.tags.labelName], color: base09 },
|
|
108
108
|
{
|
|
109
109
|
tag: [highlight.tags.color, highlight.tags.constant(highlight.tags.name), highlight.tags.standard(highlight.tags.name)],
|
|
110
|
-
color: base0A
|
|
110
|
+
color: base0A,
|
|
111
111
|
},
|
|
112
112
|
{ tag: [highlight.tags.definition(highlight.tags.name), highlight.tags.separator], color: base0E },
|
|
113
113
|
{ tag: [highlight.tags.brace], color: base07 },
|
|
114
114
|
{
|
|
115
115
|
tag: [highlight.tags.annotation],
|
|
116
|
-
color: invalid
|
|
116
|
+
color: invalid,
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
tag: [highlight.tags.number, highlight.tags.changed, highlight.tags.annotation, highlight.tags.modifier, highlight.tags.self, highlight.tags.namespace],
|
|
120
|
-
color: base0F
|
|
120
|
+
color: base0F,
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
tag: [highlight.tags.typeName, highlight.tags.className],
|
|
124
|
-
color: base0D
|
|
124
|
+
color: base0D,
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
tag: [highlight.tags.operator, highlight.tags.operatorKeyword],
|
|
128
|
-
color: base0E
|
|
128
|
+
color: base0E,
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
tag: [highlight.tags.tagName],
|
|
132
|
-
color: base0F
|
|
132
|
+
color: base0F,
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
tag: [highlight.tags.squareBracket],
|
|
136
|
-
color: base0b
|
|
136
|
+
color: base0b,
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
tag: [highlight.tags.angleBracket],
|
|
140
|
-
color: base0C
|
|
140
|
+
color: base0C,
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
tag: [highlight.tags.attributeName],
|
|
144
|
-
color: base0D
|
|
144
|
+
color: base0D,
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
tag: [highlight.tags.regexp],
|
|
148
|
-
color: base0A
|
|
148
|
+
color: base0A,
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
tag: [highlight.tags.quote],
|
|
152
|
-
color: base0F
|
|
152
|
+
color: base0F,
|
|
153
153
|
},
|
|
154
154
|
{ tag: [highlight.tags.string], color: base0E },
|
|
155
155
|
{
|
|
156
156
|
tag: highlight.tags.link,
|
|
157
157
|
color: base0E,
|
|
158
158
|
textDecoration: 'underline',
|
|
159
|
-
textUnderlinePosition: 'under'
|
|
159
|
+
textUnderlinePosition: 'under',
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
tag: [highlight.tags.url, highlight.tags.escape, highlight.tags.special(highlight.tags.string)],
|
|
163
|
-
color: base07
|
|
163
|
+
color: base07,
|
|
164
164
|
},
|
|
165
165
|
{ tag: [highlight.tags.meta], color: base08 },
|
|
166
166
|
{ tag: [highlight.tags.monospace], color: base04, fontStyle: 'italic' },
|
|
@@ -174,22 +174,22 @@ const nordHighlightStyle = language.HighlightStyle.define([
|
|
|
174
174
|
{
|
|
175
175
|
tag: [highlight.tags.heading2, highlight.tags.heading3, highlight.tags.heading4],
|
|
176
176
|
fontWeight: 'bold',
|
|
177
|
-
color: base0A
|
|
177
|
+
color: base0A,
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
tag: [highlight.tags.heading5, highlight.tags.heading6],
|
|
181
|
-
color: base0A
|
|
181
|
+
color: base0A,
|
|
182
182
|
},
|
|
183
183
|
{ tag: [highlight.tags.atom, highlight.tags.bool, highlight.tags.special(highlight.tags.variableName)], color: base0C },
|
|
184
184
|
{
|
|
185
185
|
tag: [highlight.tags.processingInstruction, highlight.tags.inserted],
|
|
186
|
-
color: base07
|
|
186
|
+
color: base07,
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
tag: [highlight.tags.contentSeparator],
|
|
190
|
-
color: base0D
|
|
190
|
+
color: base0D,
|
|
191
191
|
},
|
|
192
|
-
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
|
|
192
|
+
{ tag: highlight.tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
|
|
193
193
|
]);
|
|
194
194
|
/**
|
|
195
195
|
Extension to enable the Nord theme (both the editor theme and
|
|
@@ -197,7 +197,7 @@ the highlight style).
|
|
|
197
197
|
*/
|
|
198
198
|
const nord = [
|
|
199
199
|
nordTheme,
|
|
200
|
-
language.syntaxHighlighting(nordHighlightStyle)
|
|
200
|
+
language.syntaxHighlighting(nordHighlightStyle),
|
|
201
201
|
];
|
|
202
202
|
|
|
203
203
|
exports.nord = nord;
|
package/dist/index.js
CHANGED
|
@@ -29,10 +29,10 @@ The editor theme styles for Nord.
|
|
|
29
29
|
const nordTheme = /*@__PURE__*/EditorView.theme({
|
|
30
30
|
'&': {
|
|
31
31
|
color: base04,
|
|
32
|
-
backgroundColor: background
|
|
32
|
+
backgroundColor: background,
|
|
33
33
|
},
|
|
34
34
|
'.cm-content': {
|
|
35
|
-
caretColor: cursor
|
|
35
|
+
caretColor: cursor,
|
|
36
36
|
},
|
|
37
37
|
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
38
38
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
|
|
@@ -41,55 +41,55 @@ const nordTheme = /*@__PURE__*/EditorView.theme({
|
|
|
41
41
|
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid black' },
|
|
42
42
|
'.cm-searchMatch': {
|
|
43
43
|
backgroundColor: 'transparent',
|
|
44
|
-
outline: `1px solid ${base07}
|
|
44
|
+
outline: `1px solid ${base07}`,
|
|
45
45
|
},
|
|
46
46
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
47
47
|
backgroundColor: base04,
|
|
48
|
-
color: base00
|
|
48
|
+
color: base00,
|
|
49
49
|
},
|
|
50
50
|
'.cm-activeLine': { backgroundColor: selectionMatch },
|
|
51
51
|
'.cm-selectionMatch': {
|
|
52
|
-
backgroundColor: base05
|
|
52
|
+
backgroundColor: base05,
|
|
53
53
|
},
|
|
54
54
|
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
55
|
-
outline: `1px solid ${base07}
|
|
55
|
+
outline: `1px solid ${base07}`,
|
|
56
56
|
},
|
|
57
57
|
'&.cm-focused .cm-matchingBracket': {
|
|
58
58
|
backgroundColor: base06,
|
|
59
|
-
color: base02
|
|
59
|
+
color: base02,
|
|
60
60
|
},
|
|
61
61
|
'.cm-gutters': {
|
|
62
62
|
backgroundColor: base00,
|
|
63
63
|
color: base03,
|
|
64
|
-
border: 'none'
|
|
64
|
+
border: 'none',
|
|
65
65
|
},
|
|
66
66
|
'.cm-activeLineGutter': {
|
|
67
67
|
backgroundColor: highlightBackground,
|
|
68
|
-
color: base04
|
|
68
|
+
color: base04,
|
|
69
69
|
},
|
|
70
70
|
'.cm-foldPlaceholder': {
|
|
71
71
|
backgroundColor: 'transparent',
|
|
72
72
|
border: 'none',
|
|
73
|
-
color: '#ddd'
|
|
73
|
+
color: '#ddd',
|
|
74
74
|
},
|
|
75
75
|
'.cm-tooltip': {
|
|
76
76
|
border: 'none',
|
|
77
|
-
backgroundColor: tooltipBackground
|
|
77
|
+
backgroundColor: tooltipBackground,
|
|
78
78
|
},
|
|
79
79
|
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
80
80
|
borderTopColor: 'transparent',
|
|
81
|
-
borderBottomColor: 'transparent'
|
|
81
|
+
borderBottomColor: 'transparent',
|
|
82
82
|
},
|
|
83
83
|
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
84
84
|
borderTopColor: tooltipBackground,
|
|
85
|
-
borderBottomColor: tooltipBackground
|
|
85
|
+
borderBottomColor: tooltipBackground,
|
|
86
86
|
},
|
|
87
87
|
'.cm-tooltip-autocomplete': {
|
|
88
88
|
'& > ul > li[aria-selected]': {
|
|
89
89
|
backgroundColor: highlightBackground,
|
|
90
|
-
color: base03
|
|
91
|
-
}
|
|
92
|
-
}
|
|
90
|
+
color: base03,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
93
|
}, { dark: true });
|
|
94
94
|
/**
|
|
95
95
|
The highlighting style for code in the Nord theme.
|
|
@@ -98,67 +98,67 @@ const nordHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
98
98
|
{ tag: tags.keyword, color: base0A },
|
|
99
99
|
{
|
|
100
100
|
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
101
|
-
color: base08
|
|
101
|
+
color: base08,
|
|
102
102
|
},
|
|
103
103
|
{ tag: [tags.variableName], color: base07 },
|
|
104
104
|
{ tag: [/*@__PURE__*/tags.function(tags.variableName)], color: base07 },
|
|
105
105
|
{ tag: [tags.labelName], color: base09 },
|
|
106
106
|
{
|
|
107
107
|
tag: [tags.color, /*@__PURE__*/tags.constant(tags.name), /*@__PURE__*/tags.standard(tags.name)],
|
|
108
|
-
color: base0A
|
|
108
|
+
color: base0A,
|
|
109
109
|
},
|
|
110
110
|
{ tag: [/*@__PURE__*/tags.definition(tags.name), tags.separator], color: base0E },
|
|
111
111
|
{ tag: [tags.brace], color: base07 },
|
|
112
112
|
{
|
|
113
113
|
tag: [tags.annotation],
|
|
114
|
-
color: invalid
|
|
114
|
+
color: invalid,
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
tag: [tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
118
|
-
color: base0F
|
|
118
|
+
color: base0F,
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
tag: [tags.typeName, tags.className],
|
|
122
|
-
color: base0D
|
|
122
|
+
color: base0D,
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
tag: [tags.operator, tags.operatorKeyword],
|
|
126
|
-
color: base0E
|
|
126
|
+
color: base0E,
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
tag: [tags.tagName],
|
|
130
|
-
color: base0F
|
|
130
|
+
color: base0F,
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
tag: [tags.squareBracket],
|
|
134
|
-
color: base0b
|
|
134
|
+
color: base0b,
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
tag: [tags.angleBracket],
|
|
138
|
-
color: base0C
|
|
138
|
+
color: base0C,
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
tag: [tags.attributeName],
|
|
142
|
-
color: base0D
|
|
142
|
+
color: base0D,
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
tag: [tags.regexp],
|
|
146
|
-
color: base0A
|
|
146
|
+
color: base0A,
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
tag: [tags.quote],
|
|
150
|
-
color: base0F
|
|
150
|
+
color: base0F,
|
|
151
151
|
},
|
|
152
152
|
{ tag: [tags.string], color: base0E },
|
|
153
153
|
{
|
|
154
154
|
tag: tags.link,
|
|
155
155
|
color: base0E,
|
|
156
156
|
textDecoration: 'underline',
|
|
157
|
-
textUnderlinePosition: 'under'
|
|
157
|
+
textUnderlinePosition: 'under',
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
tag: [tags.url, tags.escape, /*@__PURE__*/tags.special(tags.string)],
|
|
161
|
-
color: base07
|
|
161
|
+
color: base07,
|
|
162
162
|
},
|
|
163
163
|
{ tag: [tags.meta], color: base08 },
|
|
164
164
|
{ tag: [tags.monospace], color: base04, fontStyle: 'italic' },
|
|
@@ -172,22 +172,22 @@ const nordHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
172
172
|
{
|
|
173
173
|
tag: [tags.heading2, tags.heading3, tags.heading4],
|
|
174
174
|
fontWeight: 'bold',
|
|
175
|
-
color: base0A
|
|
175
|
+
color: base0A,
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
tag: [tags.heading5, tags.heading6],
|
|
179
|
-
color: base0A
|
|
179
|
+
color: base0A,
|
|
180
180
|
},
|
|
181
181
|
{ tag: [tags.atom, tags.bool, /*@__PURE__*/tags.special(tags.variableName)], color: base0C },
|
|
182
182
|
{
|
|
183
183
|
tag: [tags.processingInstruction, tags.inserted],
|
|
184
|
-
color: base07
|
|
184
|
+
color: base07,
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
tag: [tags.contentSeparator],
|
|
188
|
-
color: base0D
|
|
188
|
+
color: base0D,
|
|
189
189
|
},
|
|
190
|
-
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` }
|
|
190
|
+
{ tag: tags.invalid, color: base02, borderBottom: `1px dotted ${invalid}` },
|
|
191
191
|
]);
|
|
192
192
|
/**
|
|
193
193
|
Extension to enable the Nord theme (both the editor theme and
|
|
@@ -195,7 +195,7 @@ the highlight style).
|
|
|
195
195
|
*/
|
|
196
196
|
const nord = [
|
|
197
197
|
nordTheme,
|
|
198
|
-
/*@__PURE__*/syntaxHighlighting(nordHighlightStyle)
|
|
198
|
+
/*@__PURE__*/syntaxHighlighting(nordHighlightStyle),
|
|
199
199
|
];
|
|
200
200
|
|
|
201
201
|
export { nord, nordHighlightStyle, nordTheme };
|