@fsegurai/codemirror-theme-abyss 6.2.0-beta.2 → 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
|
// Base colors - Ocean depths
|
|
9
9
|
const base00 = '#000c18', // - Background (deep ocean blue)
|
|
@@ -36,17 +36,17 @@ const abyssTheme = view.EditorView.theme({
|
|
|
36
36
|
'&': {
|
|
37
37
|
color: base01,
|
|
38
38
|
backgroundColor: base00,
|
|
39
|
-
fontSize:
|
|
40
|
-
fontFamily:
|
|
39
|
+
fontSize: codemirrorThemeUtils.generalContent.fontSize,
|
|
40
|
+
fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
|
|
41
41
|
},
|
|
42
42
|
// Content and cursor
|
|
43
43
|
'.cm-content': {
|
|
44
44
|
caretColor: cursor,
|
|
45
|
-
lineHeight:
|
|
45
|
+
lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
|
|
46
46
|
},
|
|
47
47
|
'.cm-cursor, .cm-dropCursor': {
|
|
48
48
|
borderLeftColor: cursor,
|
|
49
|
-
borderLeftWidth:
|
|
49
|
+
borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
|
|
50
50
|
},
|
|
51
51
|
'.cm-fat-cursor': {
|
|
52
52
|
backgroundColor: `${cursor}99`,
|
|
@@ -60,7 +60,7 @@ const abyssTheme = view.EditorView.theme({
|
|
|
60
60
|
'.cm-searchMatch': {
|
|
61
61
|
backgroundColor: '#155ab380',
|
|
62
62
|
outline: `1px solid ${base08}`,
|
|
63
|
-
borderRadius:
|
|
63
|
+
borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
|
|
64
64
|
'& span': {
|
|
65
65
|
color: base06,
|
|
66
66
|
},
|
|
@@ -68,15 +68,15 @@ const abyssTheme = view.EditorView.theme({
|
|
|
68
68
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
69
69
|
backgroundColor: '#2a6ac080',
|
|
70
70
|
color: base06,
|
|
71
|
-
padding:
|
|
71
|
+
padding: codemirrorThemeUtils.generalSearchField.padding,
|
|
72
72
|
'& span': {
|
|
73
73
|
color: base06,
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
76
|
'.cm-search.cm-panel.cm-textfield': {
|
|
77
77
|
color: base01,
|
|
78
|
-
borderRadius:
|
|
79
|
-
padding:
|
|
78
|
+
borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
|
|
79
|
+
padding: codemirrorThemeUtils.generalSearchField.padding,
|
|
80
80
|
},
|
|
81
81
|
// Panels
|
|
82
82
|
'.cm-panels': {
|
|
@@ -92,9 +92,9 @@ const abyssTheme = view.EditorView.theme({
|
|
|
92
92
|
'.cm-panel button': {
|
|
93
93
|
backgroundColor: darkBackground,
|
|
94
94
|
color: base01,
|
|
95
|
-
border:
|
|
96
|
-
borderRadius:
|
|
97
|
-
padding:
|
|
95
|
+
border: codemirrorThemeUtils.generalPanel.border,
|
|
96
|
+
borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
|
|
97
|
+
padding: codemirrorThemeUtils.generalPanel.padding,
|
|
98
98
|
},
|
|
99
99
|
'.cm-panel button:hover': {
|
|
100
100
|
backgroundColor: '#0a3555',
|
|
@@ -102,25 +102,25 @@ const abyssTheme = view.EditorView.theme({
|
|
|
102
102
|
// Line highlighting
|
|
103
103
|
'.cm-activeLine': {
|
|
104
104
|
backgroundColor: highlightBackground,
|
|
105
|
-
borderRadius:
|
|
105
|
+
borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
|
|
106
106
|
},
|
|
107
107
|
// Gutters
|
|
108
108
|
'.cm-gutters': {
|
|
109
109
|
backgroundColor: darkBackground,
|
|
110
110
|
color: '#5f7e97',
|
|
111
|
-
border:
|
|
112
|
-
paddingRight:
|
|
111
|
+
border: codemirrorThemeUtils.generalGutter.border,
|
|
112
|
+
paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
|
|
113
113
|
},
|
|
114
114
|
'.cm-activeLineGutter': {
|
|
115
115
|
backgroundColor: highlightBackground,
|
|
116
116
|
color: base01,
|
|
117
|
-
fontWeight:
|
|
117
|
+
fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
|
|
118
118
|
},
|
|
119
119
|
'.cm-lineNumbers': {
|
|
120
|
-
fontSize:
|
|
120
|
+
fontSize: codemirrorThemeUtils.generalGutter.fontSize,
|
|
121
121
|
},
|
|
122
122
|
'.cm-foldGutter': {
|
|
123
|
-
fontSize:
|
|
123
|
+
fontSize: codemirrorThemeUtils.generalGutter.fontSize,
|
|
124
124
|
},
|
|
125
125
|
'.cm-foldGutter .cm-gutterElement': {
|
|
126
126
|
color: '#5f7e97',
|
|
@@ -133,23 +133,23 @@ const abyssTheme = view.EditorView.theme({
|
|
|
133
133
|
'.cm-tooltip': {
|
|
134
134
|
backgroundColor: tooltipBackground,
|
|
135
135
|
border: '1px solid #084671',
|
|
136
|
-
borderRadius:
|
|
137
|
-
padding:
|
|
136
|
+
borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
|
|
137
|
+
padding: codemirrorThemeUtils.generalTooltip.padding,
|
|
138
138
|
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.5)',
|
|
139
139
|
},
|
|
140
140
|
'.cm-tooltip-autocomplete': {
|
|
141
141
|
'& > ul > li': {
|
|
142
|
-
padding:
|
|
143
|
-
lineHeight:
|
|
142
|
+
padding: codemirrorThemeUtils.generalTooltip.padding,
|
|
143
|
+
lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
|
|
144
144
|
},
|
|
145
145
|
'& > ul > li[aria-selected]': {
|
|
146
146
|
backgroundColor: '#084671',
|
|
147
147
|
color: '#e0edff',
|
|
148
|
-
borderRadius:
|
|
148
|
+
borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
|
|
149
149
|
},
|
|
150
150
|
'& > ul > li > span.cm-completionIcon': {
|
|
151
151
|
color: '#5f7e97',
|
|
152
|
-
paddingRight:
|
|
152
|
+
paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
|
|
153
153
|
},
|
|
154
154
|
'& > ul > li > span.cm-completionDetail': {
|
|
155
155
|
color: '#5f7e97',
|
|
@@ -186,18 +186,18 @@ const abyssTheme = view.EditorView.theme({
|
|
|
186
186
|
'.cm-matchingBracket': {
|
|
187
187
|
backgroundColor: activeBracketBg,
|
|
188
188
|
outline: `1px solid ${activeBracketBorder}`,
|
|
189
|
-
borderRadius:
|
|
189
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
190
190
|
},
|
|
191
191
|
'.cm-nonmatchingBracket': {
|
|
192
192
|
backgroundColor: '#780e1e80',
|
|
193
193
|
outline: `1px solid ${invalid}`,
|
|
194
|
-
borderRadius:
|
|
194
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
195
195
|
},
|
|
196
196
|
// Selection matches
|
|
197
197
|
'.cm-selectionMatch': {
|
|
198
198
|
backgroundColor: '#155ab340',
|
|
199
199
|
outline: `1px solid ${base08}`,
|
|
200
|
-
borderRadius:
|
|
200
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
201
201
|
},
|
|
202
202
|
// Fold placeholder
|
|
203
203
|
'.cm-foldPlaceholder': {
|
|
@@ -205,9 +205,9 @@ const abyssTheme = view.EditorView.theme({
|
|
|
205
205
|
color: '#5f7e97',
|
|
206
206
|
fontStyle: 'italic',
|
|
207
207
|
border: `1px dotted ${activeBracketBorder}`,
|
|
208
|
-
borderRadius:
|
|
209
|
-
padding:
|
|
210
|
-
margin:
|
|
208
|
+
borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
|
|
209
|
+
padding: codemirrorThemeUtils.generalPlaceholder.padding,
|
|
210
|
+
margin: codemirrorThemeUtils.generalPlaceholder.margin,
|
|
211
211
|
},
|
|
212
212
|
// Focus outline
|
|
213
213
|
'&.cm-focused': {
|
|
@@ -216,15 +216,15 @@ const abyssTheme = view.EditorView.theme({
|
|
|
216
216
|
},
|
|
217
217
|
// Scrollbars
|
|
218
218
|
'& .cm-scroller::-webkit-scrollbar': {
|
|
219
|
-
width:
|
|
220
|
-
height:
|
|
219
|
+
width: codemirrorThemeUtils.generalScroller.width,
|
|
220
|
+
height: codemirrorThemeUtils.generalScroller.height,
|
|
221
221
|
},
|
|
222
222
|
'& .cm-scroller::-webkit-scrollbar-track': {
|
|
223
223
|
background: darkBackground,
|
|
224
224
|
},
|
|
225
225
|
'& .cm-scroller::-webkit-scrollbar-thumb': {
|
|
226
226
|
backgroundColor: '#5f7e97',
|
|
227
|
-
borderRadius:
|
|
227
|
+
borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
|
|
228
228
|
border: `3px solid ${darkBackground}`,
|
|
229
229
|
},
|
|
230
230
|
'& .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 '
|
|
4
|
+
import { generalScroller, generalPlaceholder, generalMatching, generalTooltip, generalGutter, generalLine, generalPanel, generalSearchField, generalCursor, generalContent } from '@fsegurai/codemirror-theme-utils';
|
|
5
5
|
|
|
6
6
|
// Base colors - Ocean depths
|
|
7
7
|
const base00 = '#000c18', // - Background (deep ocean blue)
|