@fsegurai/codemirror-theme-andromeda 6.2.0-beta.2 → 6.2.0-beta.4

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('../../.helper/utils');
6
+ var codemirrorThemeUtils = require('@fsegurai/codemirror-theme-utils');
7
7
 
8
8
  /**
9
9
  * Enhanced Andromeda theme color palette
@@ -39,17 +39,17 @@ const andromedaTheme = view.EditorView.theme({
39
39
  '&': {
40
40
  color: base01,
41
41
  backgroundColor: base00,
42
- fontSize: utils.generalContent.fontSize,
43
- fontFamily: utils.generalContent.fontFamily,
42
+ fontSize: codemirrorThemeUtils.generalContent.fontSize,
43
+ fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
44
44
  },
45
45
  // Content and cursor
46
46
  '.cm-content': {
47
47
  caretColor: cursor,
48
- lineHeight: utils.generalContent.lineHeight,
48
+ lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
49
49
  },
50
50
  '.cm-cursor, .cm-dropCursor': {
51
51
  borderLeftColor: cursor,
52
- borderLeftWidth: utils.generalCursor.borderLeftWidth,
52
+ borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
53
53
  },
54
54
  '.cm-fat-cursor': {
55
55
  backgroundColor: `${cursor}99`,
@@ -69,7 +69,7 @@ const andromedaTheme = view.EditorView.theme({
69
69
  backgroundColor: '#db45a230',
70
70
  outline: `1px solid ${base05}30`,
71
71
  color: base01,
72
- borderRadius: utils.generalSearchField.borderRadius,
72
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
73
73
  '& span': {
74
74
  color: base01,
75
75
  },
@@ -77,15 +77,15 @@ const andromedaTheme = view.EditorView.theme({
77
77
  '.cm-searchMatch.cm-searchMatch-selected': {
78
78
  backgroundColor: '#db45a280',
79
79
  color: base01,
80
- padding: utils.generalSearchField.padding,
80
+ padding: codemirrorThemeUtils.generalSearchField.padding,
81
81
  '& span': {
82
82
  color: base01,
83
83
  },
84
84
  },
85
85
  '.cm-search.cm-panel.cm-textfield': {
86
86
  color: base06,
87
- borderRadius: utils.generalSearchField.borderRadius,
88
- padding: utils.generalSearchField.padding,
87
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
88
+ padding: codemirrorThemeUtils.generalSearchField.padding,
89
89
  },
90
90
  // Panels
91
91
  '.cm-panels': {
@@ -101,9 +101,9 @@ const andromedaTheme = view.EditorView.theme({
101
101
  '.cm-panel button': {
102
102
  backgroundColor: darkBackground,
103
103
  color: base06,
104
- border: utils.generalPanel.border,
105
- borderRadius: utils.generalPanel.borderRadius,
106
- padding: utils.generalPanel.padding,
104
+ border: codemirrorThemeUtils.generalPanel.border,
105
+ borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
106
+ padding: codemirrorThemeUtils.generalPanel.padding,
107
107
  },
108
108
  '.cm-panel button:hover': {
109
109
  backgroundColor: '#343946',
@@ -111,27 +111,27 @@ const andromedaTheme = view.EditorView.theme({
111
111
  // Line highlighting
112
112
  '.cm-activeLine': {
113
113
  backgroundColor: highlightBackground,
114
- borderRadius: utils.generalLine.borderRadius,
114
+ borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
115
115
  zIndex: 1,
116
116
  },
117
117
  // Gutters
118
118
  '.cm-gutters': {
119
119
  backgroundColor: darkBackground,
120
120
  color: '#748099',
121
- border: utils.generalGutter.border,
121
+ border: codemirrorThemeUtils.generalGutter.border,
122
122
  borderRight: '1px solid #33384550',
123
- paddingRight: utils.generalGutter.paddingRight,
123
+ paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
124
124
  },
125
125
  '.cm-activeLineGutter': {
126
126
  backgroundColor: highlightBackground,
127
127
  color: base01,
128
- fontWeight: utils.generalGutter.fontWeight,
128
+ fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
129
129
  },
130
130
  '.cm-lineNumbers': {
131
- fontSize: utils.generalGutter.fontSize,
131
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
132
132
  },
133
133
  '.cm-foldGutter': {
134
- fontSize: utils.generalGutter.fontSize,
134
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
135
135
  },
136
136
  '.cm-foldGutter .cm-gutterElement': {
137
137
  color: '#748099',
@@ -144,8 +144,8 @@ const andromedaTheme = view.EditorView.theme({
144
144
  '.cm-tooltip': {
145
145
  backgroundColor: tooltipBackground,
146
146
  border: '1px solid #3a3e4c',
147
- borderRadius: utils.generalTooltip.borderRadius,
148
- padding: utils.generalTooltip.padding,
147
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
148
+ padding: codemirrorThemeUtils.generalTooltip.padding,
149
149
  boxShadow: '0 2px 8px rgba(0, 0, 0, 0.3)',
150
150
  },
151
151
  '.cm-tooltip-autocomplete': {
@@ -154,17 +154,17 @@ const andromedaTheme = view.EditorView.theme({
154
154
  border: 'none',
155
155
  },
156
156
  '& > ul > li': {
157
- padding: utils.generalTooltip.padding,
158
- lineHeight: utils.generalTooltip.lineHeight,
157
+ padding: codemirrorThemeUtils.generalTooltip.padding,
158
+ lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
159
159
  },
160
160
  '& > ul > li[aria-selected]': {
161
161
  backgroundColor: '#db45a240',
162
162
  color: base01,
163
- borderRadius: utils.generalTooltip.borderRadiusSelected,
163
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
164
164
  },
165
165
  '& > ul > li > span.cm-completionIcon': {
166
166
  color: '#748099',
167
- paddingRight: utils.generalTooltip.paddingRight,
167
+ paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
168
168
  },
169
169
  '& > ul > li > span.cm-completionDetail': {
170
170
  color: '#748099',
@@ -201,27 +201,27 @@ const andromedaTheme = view.EditorView.theme({
201
201
  '.cm-matchingBracket': {
202
202
  backgroundColor: activeBracketBg,
203
203
  outline: `1px solid ${activeBracketBorder}50`,
204
- borderRadius: utils.generalMatching.borderRadius,
204
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
205
205
  },
206
206
  '.cm-nonmatchingBracket': {
207
207
  backgroundColor: '#ff405030',
208
208
  outline: `1px solid ${invalid}`,
209
- borderRadius: utils.generalMatching.borderRadius,
209
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
210
210
  },
211
211
  // Selection matches
212
212
  '.cm-selectionMatch': {
213
213
  backgroundColor: '#db45a240',
214
214
  outline: `1px solid ${base05}50`,
215
- borderRadius: utils.generalMatching.borderRadius,
215
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
216
216
  },
217
217
  // Fold placeholder
218
218
  '.cm-foldPlaceholder': {
219
219
  backgroundColor: 'transparent',
220
220
  color: base02,
221
221
  border: `1px dotted ${base05}70`,
222
- borderRadius: utils.generalPlaceholder.borderRadius,
223
- padding: utils.generalPlaceholder.padding,
224
- margin: utils.generalPlaceholder.margin,
222
+ borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
223
+ padding: codemirrorThemeUtils.generalPlaceholder.padding,
224
+ margin: codemirrorThemeUtils.generalPlaceholder.margin,
225
225
  },
226
226
  // Focus outline
227
227
  '&.cm-focused': {
@@ -230,15 +230,15 @@ const andromedaTheme = view.EditorView.theme({
230
230
  },
231
231
  // Scrollbars
232
232
  '& .cm-scroller::-webkit-scrollbar': {
233
- width: utils.generalScroller.width,
234
- height: utils.generalScroller.height,
233
+ width: codemirrorThemeUtils.generalScroller.width,
234
+ height: codemirrorThemeUtils.generalScroller.height,
235
235
  },
236
236
  '& .cm-scroller::-webkit-scrollbar-track': {
237
237
  background: darkBackground,
238
238
  },
239
239
  '& .cm-scroller::-webkit-scrollbar-thumb': {
240
240
  backgroundColor: '#3b4151',
241
- borderRadius: utils.generalScroller.borderRadius,
241
+ borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
242
242
  border: `3px solid ${darkBackground}`,
243
243
  },
244
244
  '& .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 '../../.helper/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 Andromeda theme color palette
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-andromeda",
3
3
  "description": "Andromeda theme for the CodeMirror code editor",
4
- "version": "6.2.0-beta.2",
4
+ "version": "6.2.0-beta.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "exports": {
@@ -34,7 +34,8 @@
34
34
  "@lezer/highlight": "^1.0.0",
35
35
  "@codemirror/language": "^6.0.0",
36
36
  "@codemirror/state": "^6.0.0",
37
- "@codemirror/view": "^6.0.0"
37
+ "@codemirror/view": "^6.0.0",
38
+ "@fsegurai/codemirror-theme-utils": "6.2.0-beta.3"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@codemirror/buildhelper": "^1.0.2"