@fsegurai/codemirror-theme-gruvbox-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 Gruvbox Light theme color definitions
@@ -70,17 +70,17 @@ const gruvboxLightTheme = view.EditorView.theme({
70
70
  '&': {
71
71
  color: fg0,
72
72
  backgroundColor: background,
73
- fontSize: _utils.generalContent.fontSize,
74
- fontFamily: _utils.generalContent.fontFamily,
73
+ fontSize: codemirrorThemeUtils.generalContent.fontSize,
74
+ fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
75
75
  },
76
76
  // Content and cursor
77
77
  '.cm-content': {
78
78
  caretColor: cursor,
79
- lineHeight: _utils.generalContent.lineHeight,
79
+ lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
80
80
  },
81
81
  '.cm-cursor, .cm-dropCursor': {
82
82
  borderLeftColor: cursor,
83
- borderLeftWidth: _utils.generalCursor.borderLeftWidth,
83
+ borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
84
84
  },
85
85
  '.cm-fat-cursor': {
86
86
  backgroundColor: `${cursor}99`,
@@ -100,7 +100,7 @@ const gruvboxLightTheme = view.EditorView.theme({
100
100
  backgroundColor: '#ffc42e80',
101
101
  outline: `1px solid ${orange}`,
102
102
  color: fg0,
103
- borderRadius: _utils.generalSearchField.borderRadius,
103
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
104
104
  '& span': {
105
105
  color: fg0,
106
106
  },
@@ -108,15 +108,15 @@ const gruvboxLightTheme = view.EditorView.theme({
108
108
  '.cm-searchMatch.cm-searchMatch-selected': {
109
109
  backgroundColor: orange,
110
110
  color: bg0,
111
- padding: _utils.generalSearchField.padding,
111
+ padding: codemirrorThemeUtils.generalSearchField.padding,
112
112
  '& span': {
113
113
  color: bg0,
114
114
  },
115
115
  },
116
116
  '.cm-search.cm-panel.cm-textfield': {
117
117
  color: fg0,
118
- borderRadius: _utils.generalSearchField.borderRadius,
119
- padding: _utils.generalSearchField.padding,
118
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
119
+ padding: codemirrorThemeUtils.generalSearchField.padding,
120
120
  },
121
121
  // Panels
122
122
  '.cm-panels': {
@@ -133,9 +133,9 @@ const gruvboxLightTheme = view.EditorView.theme({
133
133
  '.cm-panel button': {
134
134
  backgroundColor: bg0,
135
135
  color: fg0,
136
- border: _utils.generalPanel.border,
137
- borderRadius: _utils.generalPanel.borderRadius,
138
- padding: _utils.generalPanel.padding,
136
+ border: codemirrorThemeUtils.generalPanel.border,
137
+ borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
138
+ padding: codemirrorThemeUtils.generalPanel.padding,
139
139
  },
140
140
  '.cm-panel button:hover': {
141
141
  backgroundColor: light2,
@@ -143,27 +143,27 @@ const gruvboxLightTheme = view.EditorView.theme({
143
143
  // Line highlighting
144
144
  '.cm-activeLine': {
145
145
  backgroundColor: highlightBackground,
146
- borderRadius: _utils.generalLine.borderRadius,
146
+ borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
147
147
  zIndex: 1,
148
148
  },
149
149
  // Gutters
150
150
  '.cm-gutters': {
151
151
  backgroundColor: bg1,
152
152
  color: fg3,
153
- border: _utils.generalGutter.border,
153
+ border: codemirrorThemeUtils.generalGutter.border,
154
154
  borderRight: `1px solid ${bg3}`,
155
- paddingRight: _utils.generalGutter.paddingRight,
155
+ paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
156
156
  },
157
157
  '.cm-activeLineGutter': {
158
158
  backgroundColor: bg2,
159
159
  color: fg0,
160
- fontWeight: _utils.generalGutter.fontWeight,
160
+ fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
161
161
  },
162
162
  '.cm-lineNumbers': {
163
- fontSize: _utils.generalGutter.fontSize,
163
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
164
164
  },
165
165
  '.cm-foldGutter': {
166
- fontSize: _utils.generalGutter.fontSize,
166
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
167
167
  },
168
168
  '.cm-foldGutter .cm-gutterElement': {
169
169
  color: fg3,
@@ -176,8 +176,8 @@ const gruvboxLightTheme = view.EditorView.theme({
176
176
  '.cm-tooltip': {
177
177
  backgroundColor: tooltipBackground,
178
178
  border: `1px solid ${bg3}`,
179
- borderRadius: _utils.generalTooltip.borderRadius,
180
- padding: _utils.generalTooltip.padding,
179
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
180
+ padding: codemirrorThemeUtils.generalTooltip.padding,
181
181
  boxShadow: '0 1px 5px rgba(0, 0, 0, 0.1)',
182
182
  },
183
183
  '.cm-tooltip-autocomplete': {
@@ -186,20 +186,20 @@ const gruvboxLightTheme = view.EditorView.theme({
186
186
  border: 'none',
187
187
  },
188
188
  '& > ul > li': {
189
- padding: _utils.generalTooltip.padding,
190
- lineHeight: _utils.generalTooltip.lineHeight,
189
+ padding: codemirrorThemeUtils.generalTooltip.padding,
190
+ lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
191
191
  },
192
192
  '& > ul > li[aria-selected]': {
193
193
  backgroundColor: orange + '30',
194
194
  color: fg0,
195
- borderRadius: _utils.generalTooltip.borderRadiusSelected,
195
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
196
196
  },
197
197
  '& > ul > li:hover': {
198
198
  backgroundColor: orange + '15',
199
199
  },
200
200
  '& > ul > li > span.cm-completionIcon': {
201
201
  color: fg3,
202
- paddingRight: _utils.generalTooltip.paddingRight,
202
+ paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
203
203
  },
204
204
  '& > ul > li > span.cm-completionDetail': {
205
205
  color: fg3,
@@ -236,27 +236,27 @@ const gruvboxLightTheme = view.EditorView.theme({
236
236
  '.cm-matchingBracket': {
237
237
  backgroundColor: activeBracketBg,
238
238
  outline: `1px solid ${activeBracketBorder}`,
239
- borderRadius: _utils.generalMatching.borderRadius,
239
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
240
240
  },
241
241
  '.cm-nonmatchingBracket': {
242
242
  backgroundColor: '#fb492740',
243
243
  outline: `1px solid ${invalid}`,
244
- borderRadius: _utils.generalMatching.borderRadius,
244
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
245
245
  },
246
246
  // Selection matches
247
247
  '.cm-selectionMatch': {
248
248
  backgroundColor: selectionMatch,
249
249
  outline: `1px solid ${bg3}`,
250
- borderRadius: _utils.generalMatching.borderRadius,
250
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
251
251
  },
252
252
  // Fold placeholder
253
253
  '.cm-foldPlaceholder': {
254
254
  backgroundColor: 'transparent',
255
255
  color: fg2,
256
256
  border: `1px dotted ${bg3}`,
257
- borderRadius: _utils.generalPlaceholder.borderRadius,
258
- padding: _utils.generalPlaceholder.padding,
259
- margin: _utils.generalPlaceholder.margin,
257
+ borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
258
+ padding: codemirrorThemeUtils.generalPlaceholder.padding,
259
+ margin: codemirrorThemeUtils.generalPlaceholder.margin,
260
260
  },
261
261
  // Focus outline
262
262
  '&.cm-focused': {
@@ -265,15 +265,15 @@ const gruvboxLightTheme = view.EditorView.theme({
265
265
  },
266
266
  // Scrollbars
267
267
  '& .cm-scroller::-webkit-scrollbar': {
268
- width: _utils.generalScroller.width,
269
- height: _utils.generalScroller.height,
268
+ width: codemirrorThemeUtils.generalScroller.width,
269
+ height: codemirrorThemeUtils.generalScroller.height,
270
270
  },
271
271
  '& .cm-scroller::-webkit-scrollbar-track': {
272
272
  background: bg0,
273
273
  },
274
274
  '& .cm-scroller::-webkit-scrollbar-thumb': {
275
275
  backgroundColor: bg3,
276
- borderRadius: _utils.generalScroller.borderRadius,
276
+ borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
277
277
  border: `3px solid ${bg0}`,
278
278
  },
279
279
  '& .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 Gruvbox Light theme color definitions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-gruvbox-light",
3
3
  "description": "Gruvbox 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": {