@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 +33 -33
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
|
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:
|
|
74
|
-
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:
|
|
79
|
+
lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
|
|
80
80
|
},
|
|
81
81
|
'.cm-cursor, .cm-dropCursor': {
|
|
82
82
|
borderLeftColor: cursor,
|
|
83
|
-
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:
|
|
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:
|
|
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:
|
|
119
|
-
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:
|
|
137
|
-
borderRadius:
|
|
138
|
-
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:
|
|
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:
|
|
153
|
+
border: codemirrorThemeUtils.generalGutter.border,
|
|
154
154
|
borderRight: `1px solid ${bg3}`,
|
|
155
|
-
paddingRight:
|
|
155
|
+
paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
|
|
156
156
|
},
|
|
157
157
|
'.cm-activeLineGutter': {
|
|
158
158
|
backgroundColor: bg2,
|
|
159
159
|
color: fg0,
|
|
160
|
-
fontWeight:
|
|
160
|
+
fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
|
|
161
161
|
},
|
|
162
162
|
'.cm-lineNumbers': {
|
|
163
|
-
fontSize:
|
|
163
|
+
fontSize: codemirrorThemeUtils.generalGutter.fontSize,
|
|
164
164
|
},
|
|
165
165
|
'.cm-foldGutter': {
|
|
166
|
-
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:
|
|
180
|
-
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:
|
|
190
|
-
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:
|
|
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:
|
|
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:
|
|
239
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
240
240
|
},
|
|
241
241
|
'.cm-nonmatchingBracket': {
|
|
242
242
|
backgroundColor: '#fb492740',
|
|
243
243
|
outline: `1px solid ${invalid}`,
|
|
244
|
-
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:
|
|
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:
|
|
258
|
-
padding:
|
|
259
|
-
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:
|
|
269
|
-
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:
|
|
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