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