@fsegurai/codemirror-theme-solarized-light 6.2.0-beta.1 → 6.2.0-beta.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/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  var view = require('@codemirror/view');
4
4
  var language = require('@codemirror/language');
5
5
  var highlight = require('@lezer/highlight');
6
- var _utils = require('@utils');
6
+ var codemirrorThemeUtils = require('@fsegurai/codemirror-theme-utils');
7
7
 
8
8
  /**
9
9
  * Enhanced Solarized Light theme color definitions
@@ -51,17 +51,17 @@ const solarizedLightTheme = view.EditorView.theme({
51
51
  '&': {
52
52
  color: base00,
53
53
  backgroundColor: background,
54
- fontSize: _utils.generalContent.fontSize,
55
- fontFamily: _utils.generalContent.fontFamily,
54
+ fontSize: codemirrorThemeUtils.generalContent.fontSize,
55
+ fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
56
56
  },
57
57
  // Content and cursor
58
58
  '.cm-content': {
59
59
  caretColor: cursor,
60
- lineHeight: _utils.generalContent.lineHeight,
60
+ lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
61
61
  },
62
62
  '.cm-cursor, .cm-dropCursor': {
63
63
  borderLeftColor: cursor,
64
- borderLeftWidth: _utils.generalCursor.borderLeftWidth,
64
+ borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
65
65
  },
66
66
  '.cm-fat-cursor': {
67
67
  backgroundColor: `${cursor}99`,
@@ -80,7 +80,7 @@ const solarizedLightTheme = view.EditorView.theme({
80
80
  backgroundColor: '#93a1a180',
81
81
  outline: `1px solid ${base_blue}`,
82
82
  color: base01,
83
- borderRadius: _utils.generalSearchField.borderRadius,
83
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
84
84
  '& span': {
85
85
  color: base01,
86
86
  },
@@ -88,15 +88,15 @@ const solarizedLightTheme = view.EditorView.theme({
88
88
  '.cm-searchMatch.cm-searchMatch-selected': {
89
89
  backgroundColor: base_blue,
90
90
  color: base08,
91
- padding: _utils.generalSearchField.padding,
91
+ padding: codemirrorThemeUtils.generalSearchField.padding,
92
92
  '& span': {
93
93
  color: base08,
94
94
  },
95
95
  },
96
96
  '.cm-search.cm-panel.cm-textfield': {
97
97
  color: base00,
98
- borderRadius: _utils.generalSearchField.borderRadius,
99
- padding: _utils.generalSearchField.padding,
98
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
99
+ padding: codemirrorThemeUtils.generalSearchField.padding,
100
100
  },
101
101
  // Panels
102
102
  '.cm-panels': {
@@ -113,9 +113,9 @@ const solarizedLightTheme = view.EditorView.theme({
113
113
  '.cm-panel button': {
114
114
  backgroundColor: tooltipBackground,
115
115
  color: base00,
116
- border: _utils.generalPanel.border,
117
- borderRadius: _utils.generalPanel.borderRadius,
118
- padding: _utils.generalPanel.padding,
116
+ border: codemirrorThemeUtils.generalPanel.border,
117
+ borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
118
+ padding: codemirrorThemeUtils.generalPanel.padding,
119
119
  },
120
120
  '.cm-panel button:hover': {
121
121
  backgroundColor: highlightBackground,
@@ -123,27 +123,27 @@ const solarizedLightTheme = view.EditorView.theme({
123
123
  // Line highlighting
124
124
  '.cm-activeLine': {
125
125
  backgroundColor: highlightBackground,
126
- borderRadius: _utils.generalLine.borderRadius,
126
+ borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
127
127
  zIndex: 1,
128
128
  },
129
129
  // Gutters
130
130
  '.cm-gutters': {
131
131
  backgroundColor: darkBackground,
132
132
  color: base01,
133
- border: _utils.generalGutter.border,
133
+ border: codemirrorThemeUtils.generalGutter.border,
134
134
  borderRight: `1px solid ${base04}`,
135
- paddingRight: _utils.generalGutter.paddingRight,
135
+ paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
136
136
  },
137
137
  '.cm-activeLineGutter': {
138
138
  backgroundColor: highlightBackground,
139
139
  color: base00,
140
- fontWeight: _utils.generalGutter.fontWeight,
140
+ fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
141
141
  },
142
142
  '.cm-lineNumbers': {
143
- fontSize: _utils.generalGutter.fontSize,
143
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
144
144
  },
145
145
  '.cm-foldGutter': {
146
- fontSize: _utils.generalGutter.fontSize,
146
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
147
147
  },
148
148
  '.cm-foldGutter .cm-gutterElement': {
149
149
  color: base01,
@@ -156,8 +156,8 @@ const solarizedLightTheme = view.EditorView.theme({
156
156
  '.cm-tooltip': {
157
157
  backgroundColor: tooltipBackground,
158
158
  border: `1px solid ${base01}`,
159
- borderRadius: _utils.generalTooltip.borderRadius,
160
- padding: _utils.generalTooltip.padding,
159
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
160
+ padding: codemirrorThemeUtils.generalTooltip.padding,
161
161
  boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
162
162
  },
163
163
  '.cm-tooltip-autocomplete': {
@@ -166,17 +166,17 @@ const solarizedLightTheme = view.EditorView.theme({
166
166
  border: 'none',
167
167
  },
168
168
  '& > ul > li': {
169
- padding: _utils.generalTooltip.padding,
170
- lineHeight: _utils.generalTooltip.lineHeight,
169
+ padding: codemirrorThemeUtils.generalTooltip.padding,
170
+ lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
171
171
  },
172
172
  '& > ul > li[aria-selected]': {
173
173
  backgroundColor: selection,
174
174
  color: base01,
175
- borderRadius: _utils.generalTooltip.borderRadiusSelected,
175
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
176
176
  },
177
177
  '& > ul > li > span.cm-completionIcon': {
178
178
  color: base01,
179
- paddingRight: _utils.generalTooltip.paddingRight,
179
+ paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
180
180
  },
181
181
  '& > ul > li > span.cm-completionDetail': {
182
182
  color: base01,
@@ -213,27 +213,27 @@ const solarizedLightTheme = view.EditorView.theme({
213
213
  '.cm-matchingBracket': {
214
214
  backgroundColor: activeBracketBg,
215
215
  outline: `1px solid ${activeBracketBorder}`,
216
- borderRadius: _utils.generalMatching.borderRadius,
216
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
217
217
  },
218
218
  '.cm-nonmatchingBracket': {
219
219
  backgroundColor: `${base_red}40`,
220
220
  outline: `1px solid ${invalid}`,
221
- borderRadius: _utils.generalMatching.borderRadius,
221
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
222
222
  },
223
223
  // Selection matches
224
224
  '.cm-selectionMatch': {
225
225
  backgroundColor: selectionMatch,
226
226
  outline: `1px solid ${base05}50`,
227
- borderRadius: _utils.generalMatching.borderRadius,
227
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
228
228
  },
229
229
  // Fold placeholder
230
230
  '.cm-foldPlaceholder': {
231
231
  backgroundColor: tooltipBackground,
232
232
  color: base03,
233
233
  border: `1px dotted ${base05}70`,
234
- borderRadius: _utils.generalPlaceholder.borderRadius,
235
- padding: _utils.generalPlaceholder.padding,
236
- margin: _utils.generalPlaceholder.margin,
234
+ borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
235
+ padding: codemirrorThemeUtils.generalPlaceholder.padding,
236
+ margin: codemirrorThemeUtils.generalPlaceholder.margin,
237
237
  },
238
238
  // Focus outline
239
239
  '&.cm-focused': {
@@ -242,15 +242,15 @@ const solarizedLightTheme = view.EditorView.theme({
242
242
  },
243
243
  // Scrollbars
244
244
  '& .cm-scroller::-webkit-scrollbar': {
245
- width: _utils.generalScroller.width,
246
- height: _utils.generalScroller.height,
245
+ width: codemirrorThemeUtils.generalScroller.width,
246
+ height: codemirrorThemeUtils.generalScroller.height,
247
247
  },
248
248
  '& .cm-scroller::-webkit-scrollbar-track': {
249
249
  background: darkBackground,
250
250
  },
251
251
  '& .cm-scroller::-webkit-scrollbar-thumb': {
252
252
  backgroundColor: base04,
253
- borderRadius: _utils.generalScroller.borderRadius,
253
+ borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
254
254
  border: `3px solid ${darkBackground}`,
255
255
  },
256
256
  '& .cm-scroller::-webkit-scrollbar-thumb:hover': {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EditorView } from '@codemirror/view';
2
2
  import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
3
3
  import { tags } from '@lezer/highlight';
4
- import { generalScroller, generalPlaceholder, generalMatching, generalTooltip, generalGutter, generalLine, generalPanel, generalSearchField, generalCursor, generalContent } from '@utils';
4
+ import { generalScroller, generalPlaceholder, generalMatching, generalTooltip, generalGutter, generalLine, generalPanel, generalSearchField, generalCursor, generalContent } from '@fsegurai/codemirror-theme-utils';
5
5
 
6
6
  /**
7
7
  * Enhanced Solarized Light theme color definitions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-solarized-light",
3
3
  "description": "Solarized Light theme for the CodeMirror code editor",
4
- "version": "6.2.0-beta.1",
4
+ "version": "6.2.0-beta.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "exports": {