@fsegurai/codemirror-theme-android-studio 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 Android Studio theme color palette
@@ -47,17 +47,17 @@ const androidStudioTheme = view.EditorView.theme({
47
47
  '&': {
48
48
  color: base01,
49
49
  backgroundColor: base00,
50
- fontSize: utils.generalContent.fontSize,
51
- fontFamily: utils.generalContent.fontFamily,
50
+ fontSize: codemirrorThemeUtils.generalContent.fontSize,
51
+ fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
52
52
  },
53
53
  // Content and cursor
54
54
  '.cm-content': {
55
55
  caretColor: cursor,
56
- lineHeight: utils.generalContent.lineHeight,
56
+ lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
57
57
  },
58
58
  '.cm-cursor, .cm-dropCursor': {
59
59
  borderLeftColor: cursor,
60
- borderLeftWidth: utils.generalCursor.borderLeftWidth,
60
+ borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
61
61
  },
62
62
  '.cm-fat-cursor': {
63
63
  backgroundColor: `${cursor}99`,
@@ -71,7 +71,7 @@ const androidStudioTheme = view.EditorView.theme({
71
71
  '.cm-searchMatch': {
72
72
  backgroundColor: '#32593d',
73
73
  outline: '1px solid #ffffff',
74
- borderRadius: utils.generalSearchField.borderRadius,
74
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
75
75
  '& span': {
76
76
  color: selectionForeground,
77
77
  },
@@ -79,15 +79,15 @@ const androidStudioTheme = view.EditorView.theme({
79
79
  '.cm-searchMatch.cm-searchMatch-selected': {
80
80
  backgroundColor: '#375580',
81
81
  color: selectionForeground,
82
- padding: utils.generalSearchField.padding,
82
+ padding: codemirrorThemeUtils.generalSearchField.padding,
83
83
  '& span': {
84
84
  color: selectionForeground,
85
85
  },
86
86
  },
87
87
  '.cm-search.cm-panel.cm-textfield': {
88
88
  color: base01,
89
- borderRadius: utils.generalSearchField.borderRadius,
90
- padding: utils.generalSearchField.padding,
89
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
90
+ padding: codemirrorThemeUtils.generalSearchField.padding,
91
91
  },
92
92
  // Panels
93
93
  '.cm-panels': {
@@ -103,9 +103,9 @@ const androidStudioTheme = view.EditorView.theme({
103
103
  '.cm-panel button': {
104
104
  backgroundColor: darkBackground,
105
105
  color: base01,
106
- border: utils.generalPanel.border,
107
- borderRadius: utils.generalPanel.borderRadius,
108
- padding: utils.generalPanel.padding,
106
+ border: codemirrorThemeUtils.generalPanel.border,
107
+ borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
108
+ padding: codemirrorThemeUtils.generalPanel.padding,
109
109
  },
110
110
  '.cm-panel button:hover': {
111
111
  backgroundColor: '#404040',
@@ -113,26 +113,26 @@ const androidStudioTheme = view.EditorView.theme({
113
113
  // Line highlighting
114
114
  '.cm-activeLine': {
115
115
  backgroundColor: '#32323221',
116
- borderRadius: utils.generalLine.borderRadius,
116
+ borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
117
117
  },
118
118
  // Gutters
119
119
  '.cm-gutters': {
120
120
  backgroundColor: gutterBackground,
121
121
  color: base04,
122
- border: utils.generalGutter.border,
122
+ border: codemirrorThemeUtils.generalGutter.border,
123
123
  borderRight: '1px solid #3f3f3f',
124
- paddingRight: utils.generalGutter.paddingRight,
124
+ paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
125
125
  },
126
126
  '.cm-activeLineGutter': {
127
127
  backgroundColor: highlightBackground,
128
128
  color: '#c0c0c0',
129
- fontWeight: utils.generalGutter.fontWeight,
129
+ fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
130
130
  },
131
131
  '.cm-lineNumbers': {
132
- fontSize: utils.generalGutter.fontSize,
132
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
133
133
  },
134
134
  '.cm-foldGutter': {
135
- fontSize: utils.generalGutter.fontSize,
135
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
136
136
  },
137
137
  '.cm-foldGutter .cm-gutterElement': {
138
138
  color: base04,
@@ -145,23 +145,23 @@ const androidStudioTheme = view.EditorView.theme({
145
145
  '.cm-tooltip': {
146
146
  backgroundColor: tooltipBackground,
147
147
  border: '1px solid #5b5b5b',
148
- borderRadius: utils.generalTooltip.borderRadius,
149
- padding: utils.generalTooltip.padding,
148
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
149
+ padding: codemirrorThemeUtils.generalTooltip.padding,
150
150
  boxShadow: '0 2px 8px rgba(0, 0, 0, 0.3)',
151
151
  },
152
152
  '.cm-tooltip-autocomplete': {
153
153
  '& > ul > li': {
154
- padding: utils.generalTooltip.padding,
155
- lineHeight: utils.generalTooltip.lineHeight,
154
+ padding: codemirrorThemeUtils.generalTooltip.padding,
155
+ lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
156
156
  },
157
157
  '& > ul > li[aria-selected]': {
158
158
  backgroundColor: selectionBackground,
159
159
  color: selectionForeground,
160
- borderRadius: utils.generalTooltip.borderRadiusSelected,
160
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
161
161
  },
162
162
  '& > ul > li > span.cm-completionIcon': {
163
163
  color: base04,
164
- paddingRight: utils.generalTooltip.paddingRight,
164
+ paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
165
165
  },
166
166
  '& > ul > li > span.cm-completionDetail': {
167
167
  color: base04,
@@ -198,27 +198,27 @@ const androidStudioTheme = view.EditorView.theme({
198
198
  '.cm-matchingBracket': {
199
199
  backgroundColor: activeBracketBg,
200
200
  outline: `1px solid ${activeBracketBorder}`,
201
- borderRadius: utils.generalMatching.borderRadius,
201
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
202
202
  },
203
203
  '.cm-nonmatchingBracket': {
204
204
  backgroundColor: '#53383e',
205
205
  outline: `1px solid ${invalid}`,
206
- borderRadius: utils.generalMatching.borderRadius,
206
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
207
207
  },
208
208
  // Selection matches
209
209
  '.cm-selectionMatch': {
210
210
  backgroundColor: '#32593d40',
211
211
  outline: `1px solid ${base0D}`,
212
- borderRadius: utils.generalMatching.borderRadius,
212
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
213
213
  },
214
214
  // Fold placeholder
215
215
  '.cm-foldPlaceholder': {
216
216
  backgroundColor: tooltipBackground,
217
217
  color: '#a1a1a1',
218
218
  border: `1px dotted ${base04}`,
219
- borderRadius: utils.generalPlaceholder.borderRadius,
220
- padding: utils.generalPlaceholder.padding,
221
- margin: utils.generalPlaceholder.margin,
219
+ borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
220
+ padding: codemirrorThemeUtils.generalPlaceholder.padding,
221
+ margin: codemirrorThemeUtils.generalPlaceholder.margin,
222
222
  },
223
223
  // Focus outline
224
224
  '&.cm-focused': {
@@ -227,15 +227,15 @@ const androidStudioTheme = view.EditorView.theme({
227
227
  },
228
228
  // Scrollbars
229
229
  '& .cm-scroller::-webkit-scrollbar': {
230
- width: utils.generalScroller.width,
231
- height: utils.generalScroller.height,
230
+ width: codemirrorThemeUtils.generalScroller.width,
231
+ height: codemirrorThemeUtils.generalScroller.height,
232
232
  },
233
233
  '& .cm-scroller::-webkit-scrollbar-track': {
234
234
  background: darkBackground,
235
235
  },
236
236
  '& .cm-scroller::-webkit-scrollbar-thumb': {
237
237
  backgroundColor: '#5a5a5a',
238
- borderRadius: utils.generalScroller.borderRadius,
238
+ borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
239
239
  border: `3px solid ${darkBackground}`,
240
240
  },
241
241
  '& .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 Android Studio theme color palette
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-android-studio",
3
3
  "description": "Android Studio 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": {
@@ -36,7 +36,8 @@
36
36
  "@lezer/highlight": "^1.0.0",
37
37
  "@codemirror/language": "^6.0.0",
38
38
  "@codemirror/state": "^6.0.0",
39
- "@codemirror/view": "^6.0.0"
39
+ "@codemirror/view": "^6.0.0",
40
+ "@fsegurai/codemirror-theme-utils": "6.2.0-beta.3"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@codemirror/buildhelper": "^1.0.2"