@fsegurai/codemirror-theme-palenight 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 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 Palenight theme color definitions
@@ -48,17 +48,17 @@ const palenightTheme = view.EditorView.theme({
48
48
  '&': {
49
49
  color: base01,
50
50
  backgroundColor: background,
51
- fontSize: utils.generalContent.fontSize,
52
- fontFamily: utils.generalContent.fontFamily,
51
+ fontSize: codemirrorThemeUtils.generalContent.fontSize,
52
+ fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
53
53
  },
54
54
  // Content and cursor
55
55
  '.cm-content': {
56
56
  caretColor: cursor,
57
- lineHeight: utils.generalContent.lineHeight,
57
+ lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
58
58
  },
59
59
  '.cm-cursor, .cm-dropCursor': {
60
60
  borderLeftColor: cursor,
61
- borderLeftWidth: utils.generalCursor.borderLeftWidth,
61
+ borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
62
62
  },
63
63
  '.cm-fat-cursor': {
64
64
  backgroundColor: `${cursor}99`,
@@ -77,7 +77,7 @@ const palenightTheme = view.EditorView.theme({
77
77
  backgroundColor: '#444267CC',
78
78
  outline: `1px solid ${base06}`,
79
79
  color: base01,
80
- borderRadius: utils.generalSearchField.borderRadius,
80
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
81
81
  '& span': {
82
82
  color: base01,
83
83
  },
@@ -85,15 +85,15 @@ const palenightTheme = view.EditorView.theme({
85
85
  '.cm-searchMatch.cm-searchMatch-selected': {
86
86
  backgroundColor: base06,
87
87
  color: background,
88
- padding: utils.generalSearchField.padding,
88
+ padding: codemirrorThemeUtils.generalSearchField.padding,
89
89
  '& span': {
90
90
  color: background,
91
91
  },
92
92
  },
93
93
  '.cm-search.cm-panel.cm-textfield': {
94
94
  color: base01,
95
- borderRadius: utils.generalSearchField.borderRadius,
96
- padding: utils.generalSearchField.padding,
95
+ borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
96
+ padding: codemirrorThemeUtils.generalSearchField.padding,
97
97
  },
98
98
  // Panels
99
99
  '.cm-panels': {
@@ -110,9 +110,9 @@ const palenightTheme = view.EditorView.theme({
110
110
  '.cm-panel button': {
111
111
  backgroundColor: tooltipBackground,
112
112
  color: base01,
113
- border: utils.generalPanel.border,
114
- borderRadius: utils.generalPanel.borderRadius,
115
- padding: utils.generalPanel.padding,
113
+ border: codemirrorThemeUtils.generalPanel.border,
114
+ borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
115
+ padding: codemirrorThemeUtils.generalPanel.padding,
116
116
  },
117
117
  '.cm-panel button:hover': {
118
118
  backgroundColor: '#3A4058',
@@ -120,27 +120,27 @@ const palenightTheme = view.EditorView.theme({
120
120
  // Line highlighting
121
121
  '.cm-activeLine': {
122
122
  backgroundColor: highlightBackground,
123
- borderRadius: utils.generalLine.borderRadius,
123
+ borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
124
124
  zIndex: 1,
125
125
  },
126
126
  // Gutters
127
127
  '.cm-gutters': {
128
128
  backgroundColor: darkBackground,
129
129
  color: base03,
130
- border: utils.generalGutter.border,
130
+ border: codemirrorThemeUtils.generalGutter.border,
131
131
  borderRight: '1px solid #3A405880',
132
- paddingRight: utils.generalGutter.paddingRight,
132
+ paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
133
133
  },
134
134
  '.cm-activeLineGutter': {
135
135
  backgroundColor: '#2A2D40',
136
136
  color: base01,
137
- fontWeight: utils.generalGutter.fontWeight,
137
+ fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
138
138
  },
139
139
  '.cm-lineNumbers': {
140
- fontSize: utils.generalGutter.fontSize,
140
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
141
141
  },
142
142
  '.cm-foldGutter': {
143
- fontSize: utils.generalGutter.fontSize,
143
+ fontSize: codemirrorThemeUtils.generalGutter.fontSize,
144
144
  },
145
145
  '.cm-foldGutter .cm-gutterElement': {
146
146
  color: base03,
@@ -153,8 +153,8 @@ const palenightTheme = view.EditorView.theme({
153
153
  '.cm-tooltip': {
154
154
  backgroundColor: tooltipBackground,
155
155
  border: '1px solid #3A4058',
156
- borderRadius: utils.generalTooltip.borderRadius,
157
- padding: utils.generalTooltip.padding,
156
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
157
+ padding: codemirrorThemeUtils.generalTooltip.padding,
158
158
  boxShadow: '0 2px 8px rgba(0, 0, 0, 0.4)',
159
159
  },
160
160
  '.cm-tooltip-autocomplete': {
@@ -163,17 +163,17 @@ const palenightTheme = view.EditorView.theme({
163
163
  border: 'none',
164
164
  },
165
165
  '& > ul > li': {
166
- padding: utils.generalTooltip.padding,
167
- lineHeight: utils.generalTooltip.lineHeight,
166
+ padding: codemirrorThemeUtils.generalTooltip.padding,
167
+ lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
168
168
  },
169
169
  '& > ul > li[aria-selected]': {
170
170
  backgroundColor: selection,
171
171
  color: base04,
172
- borderRadius: utils.generalTooltip.borderRadiusSelected,
172
+ borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
173
173
  },
174
174
  '& > ul > li > span.cm-completionIcon': {
175
175
  color: base03,
176
- paddingRight: utils.generalTooltip.paddingRight,
176
+ paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
177
177
  },
178
178
  '& > ul > li > span.cm-completionDetail': {
179
179
  color: base03,
@@ -210,27 +210,27 @@ const palenightTheme = view.EditorView.theme({
210
210
  '.cm-matchingBracket': {
211
211
  backgroundColor: activeBracketBg,
212
212
  outline: `1px solid ${activeBracketBorder}`,
213
- borderRadius: utils.generalMatching.borderRadius,
213
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
214
214
  },
215
215
  '.cm-nonmatchingBracket': {
216
216
  backgroundColor: `${invalid}40`,
217
217
  outline: `1px solid ${invalid}`,
218
- borderRadius: utils.generalMatching.borderRadius,
218
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
219
219
  },
220
220
  // Selection matches
221
221
  '.cm-selectionMatch': {
222
222
  backgroundColor: selectionMatch,
223
223
  outline: `1px solid ${base03}50`,
224
- borderRadius: utils.generalMatching.borderRadius,
224
+ borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
225
225
  },
226
226
  // Fold placeholder
227
227
  '.cm-foldPlaceholder': {
228
228
  backgroundColor: tooltipBackground,
229
229
  color: base03,
230
230
  border: `1px dotted ${base03}70`,
231
- borderRadius: utils.generalPlaceholder.borderRadius,
232
- padding: utils.generalPlaceholder.padding,
233
- margin: utils.generalPlaceholder.margin,
231
+ borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
232
+ padding: codemirrorThemeUtils.generalPlaceholder.padding,
233
+ margin: codemirrorThemeUtils.generalPlaceholder.margin,
234
234
  },
235
235
  // Focus outline
236
236
  '&.cm-focused': {
@@ -239,15 +239,15 @@ const palenightTheme = view.EditorView.theme({
239
239
  },
240
240
  // Scrollbars
241
241
  '& .cm-scroller::-webkit-scrollbar': {
242
- width: utils.generalScroller.width,
243
- height: utils.generalScroller.height,
242
+ width: codemirrorThemeUtils.generalScroller.width,
243
+ height: codemirrorThemeUtils.generalScroller.height,
244
244
  },
245
245
  '& .cm-scroller::-webkit-scrollbar-track': {
246
246
  background: darkBackground,
247
247
  },
248
248
  '& .cm-scroller::-webkit-scrollbar-thumb': {
249
249
  backgroundColor: base02,
250
- borderRadius: utils.generalScroller.borderRadius,
250
+ borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
251
251
  border: `3px solid ${darkBackground}`,
252
252
  },
253
253
  '& .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 Palenight theme color definitions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fsegurai/codemirror-theme-palenight",
3
3
  "description": "Palenight theme for the CodeMirror code editor",
4
- "version": "6.2.0-beta.2",
4
+ "version": "6.2.0-beta.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "exports": {