@master/css 2.0.0-rc.5 → 2.0.0-rc.50

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.
Files changed (133) hide show
  1. package/README.md +4 -43
  2. package/dist/_virtual/_commonjsHelpers.cjs +10 -0
  3. package/dist/_virtual/_commonjsHelpers.mjs +7 -0
  4. package/dist/_virtual/css-escape.cjs +5 -0
  5. package/dist/_virtual/css-escape.mjs +3 -0
  6. package/dist/bin/index.cjs +11 -0
  7. package/dist/bin/index.d.ts +0 -1
  8. package/dist/bin/index.mjs +9 -0
  9. package/dist/common.cjs +159 -0
  10. package/dist/common.d.ts +26 -0
  11. package/dist/common.mjs +137 -0
  12. package/dist/config/animations.cjs +113 -0
  13. package/dist/config/animations.mjs +111 -0
  14. package/dist/config/at.cjs +14 -0
  15. package/dist/config/at.d.ts +11 -0
  16. package/dist/config/at.mjs +12 -0
  17. package/dist/config/functions.cjs +375 -0
  18. package/dist/config/functions.d.ts +1 -1
  19. package/dist/config/functions.mjs +373 -0
  20. package/dist/config/index.cjs +37 -0
  21. package/dist/config/index.d.ts +5 -62
  22. package/dist/config/index.mjs +27 -0
  23. package/dist/config/modes.cjs +8 -0
  24. package/dist/config/modes.d.ts +3 -0
  25. package/dist/config/modes.mjs +6 -0
  26. package/dist/config/rules.cjs +2327 -0
  27. package/dist/config/rules.d.ts +277 -274
  28. package/dist/config/rules.mjs +2325 -0
  29. package/dist/config/selectors.cjs +28 -0
  30. package/dist/config/selectors.d.ts +0 -1
  31. package/dist/config/selectors.mjs +26 -0
  32. package/dist/config/styles.cjs +2 -0
  33. package/dist/config/styles.d.ts +2 -2
  34. package/dist/config/styles.mjs +1 -0
  35. package/dist/config/utilities.cjs +204 -0
  36. package/dist/config/{semantics.d.ts → utilities.d.ts} +15 -5
  37. package/dist/config/utilities.mjs +202 -0
  38. package/dist/config/variables.cjs +484 -0
  39. package/dist/config/variables.d.ts +208 -312
  40. package/dist/config/variables.mjs +482 -0
  41. package/dist/core.cjs +664 -0
  42. package/dist/core.d.ts +44 -73
  43. package/dist/core.mjs +659 -0
  44. package/dist/index.cjs +81 -0
  45. package/dist/index.d.ts +20 -9
  46. package/dist/index.mjs +26 -0
  47. package/dist/layer.cjs +116 -0
  48. package/dist/layer.d.ts +13 -10
  49. package/dist/layer.mjs +114 -0
  50. package/dist/non-layer.cjs +65 -0
  51. package/dist/non-layer.d.ts +12 -0
  52. package/dist/non-layer.mjs +63 -0
  53. package/dist/polyfills/css-escape.cjs +9 -0
  54. package/dist/polyfills/css-escape.mjs +7 -0
  55. package/dist/polyfills/css-escape2.cjs +76 -0
  56. package/dist/polyfills/css-escape2.mjs +74 -0
  57. package/dist/rule.cjs +18 -0
  58. package/dist/rule.d.ts +6 -111
  59. package/dist/rule.mjs +16 -0
  60. package/dist/shared/utils/css-escape.cjs +56 -0
  61. package/dist/shared/utils/css-escape.mjs +54 -0
  62. package/dist/shared/utils/find-native-css-rule-index.cjs +12 -0
  63. package/dist/shared/utils/find-native-css-rule-index.mjs +10 -0
  64. package/dist/syntax-layer.cjs +291 -0
  65. package/dist/syntax-layer.d.ts +17 -0
  66. package/dist/syntax-layer.mjs +289 -0
  67. package/dist/syntax-rule-type.cjs +27 -0
  68. package/dist/syntax-rule-type.d.ts +28 -0
  69. package/dist/syntax-rule-type.mjs +25 -0
  70. package/dist/syntax-rule.cjs +717 -0
  71. package/dist/syntax-rule.d.ts +47 -0
  72. package/dist/syntax-rule.mjs +715 -0
  73. package/dist/types/config.cjs +2 -0
  74. package/dist/types/config.d.ts +70 -0
  75. package/dist/types/config.mjs +1 -0
  76. package/dist/types/global.cjs +2 -0
  77. package/dist/types/global.d.ts +3 -3
  78. package/dist/types/global.mjs +1 -0
  79. package/dist/types/syntax.cjs +2 -0
  80. package/dist/types/syntax.d.ts +106 -0
  81. package/dist/types/syntax.mjs +1 -0
  82. package/dist/utils/are-rule-at-equal.cjs +22 -0
  83. package/dist/utils/are-rule-at-equal.d.ts +2 -0
  84. package/dist/utils/are-rule-at-equal.mjs +20 -0
  85. package/dist/utils/are-rule-modes-equal.cjs +7 -0
  86. package/dist/utils/are-rule-modes-equal.d.ts +2 -0
  87. package/dist/utils/are-rule-modes-equal.mjs +5 -0
  88. package/dist/utils/are-rule-selectors-equal.cjs +29 -0
  89. package/dist/utils/are-rule-selectors-equal.d.ts +2 -0
  90. package/dist/utils/are-rule-selectors-equal.mjs +27 -0
  91. package/dist/utils/are-rule-states-equal.cjs +11 -0
  92. package/dist/utils/are-rule-states-equal.d.ts +2 -0
  93. package/dist/utils/are-rule-states-equal.mjs +9 -0
  94. package/dist/utils/are-rules-duplicated.cjs +17 -0
  95. package/dist/utils/are-rules-duplicated.d.ts +2 -0
  96. package/dist/utils/are-rules-duplicated.mjs +15 -0
  97. package/dist/utils/autofill-solid-style.cjs +31 -0
  98. package/dist/utils/autofill-solid-style.d.ts +3 -0
  99. package/dist/utils/autofill-solid-style.mjs +29 -0
  100. package/dist/utils/extend-config.cjs +73 -0
  101. package/dist/utils/extend-config.d.ts +2 -2
  102. package/dist/utils/extend-config.mjs +71 -0
  103. package/dist/utils/flatten-object.cjs +15 -0
  104. package/dist/utils/flatten-object.mjs +13 -0
  105. package/dist/utils/generate-css.cjs +13 -0
  106. package/dist/utils/generate-css.d.ts +2 -0
  107. package/dist/utils/generate-css.mjs +11 -0
  108. package/dist/utils/hex-to-rgb.cjs +30 -0
  109. package/dist/utils/hex-to-rgb.d.ts +1 -1
  110. package/dist/utils/hex-to-rgb.mjs +28 -0
  111. package/dist/utils/is-core-rule.cjs +9 -0
  112. package/dist/utils/is-core-rule.d.ts +1 -0
  113. package/dist/utils/is-core-rule.mjs +7 -0
  114. package/dist/utils/reorder-for-readable-classes.cjs +62 -0
  115. package/dist/{functions → utils}/reorder-for-readable-classes.d.ts +2 -6
  116. package/dist/utils/reorder-for-readable-classes.mjs +60 -0
  117. package/package.json +1 -1
  118. package/dist/bin/index.bundle.js +0 -36
  119. package/dist/config/media-queries.d.ts +0 -1
  120. package/dist/constants/base-unit-regex.d.ts +0 -1
  121. package/dist/constants/config-esm-text.d.ts +0 -1
  122. package/dist/constants/config-text.d.ts +0 -1
  123. package/dist/constants/config-ts-text.d.ts +0 -1
  124. package/dist/constants/start-symbol.d.ts +0 -6
  125. package/dist/functions/transform-color-with-opacity.d.ts +0 -1
  126. package/dist/index.bundle.js +0 -35
  127. package/dist/index.bundle.mjs +0 -35
  128. package/dist/tokens/screen-sizes.d.ts +0 -14
  129. package/dist/utils/concat-arrays.d.ts +0 -1
  130. package/dist/utils/get-type.d.ts +0 -7
  131. package/dist/utils/is-plain-object.d.ts +0 -8
  132. package/dist/utils/is-symbol.d.ts +0 -7
  133. package/dist/utils/rgb-to-hex.d.ts +0 -1
@@ -0,0 +1,373 @@
1
+ import { BASE_UNIT_REGEX } from '../common.mjs';
2
+
3
+ const functions = {
4
+ $: {
5
+ transform (value) {
6
+ let name;
7
+ let fallback;
8
+ const firstCommaIndex = value.indexOf(',');
9
+ if (firstCommaIndex !== -1) {
10
+ name = value.slice(0, firstCommaIndex);
11
+ fallback = value.slice(firstCommaIndex + 1);
12
+ } else {
13
+ name = value;
14
+ }
15
+ return [
16
+ {
17
+ type: 'variable',
18
+ name,
19
+ fallback,
20
+ token: value
21
+ }
22
+ ];
23
+ }
24
+ },
25
+ calc: {
26
+ transform (value, bypassVariableNames) {
27
+ const valueComponents = [];
28
+ let i = 0;
29
+ const anaylzeDeeply = (currentValueComponents, bypassHandlingSeparator, parentBypassParsing, parentUnitChecking, isVarFunction)=>{
30
+ const isChildHandler = valueComponents !== currentValueComponents;
31
+ const unparsedValueComponents = [];
32
+ let bypassParsing = false;
33
+ let hasUnit = false;
34
+ let currentHasUnit = false;
35
+ let unitChecking = false;
36
+ let childHasUnit = undefined;
37
+ let current = '';
38
+ const clear = (separator, prefix = '', suffix = '')=>{
39
+ if (childHasUnit === false && separator !== ' ' && this.definition.unit) {
40
+ childHasUnit = undefined;
41
+ if (!unitChecking) {
42
+ pushUnitValueComponents();
43
+ }
44
+ }
45
+ if (current) {
46
+ if (!isVarFunction) {
47
+ const result = BASE_UNIT_REGEX.exec(current);
48
+ if (result) {
49
+ current = (+result[1] * (this.css.config.baseUnit ?? 1)).toString();
50
+ }
51
+ }
52
+ if (!bypassParsing && !parentBypassParsing) {
53
+ const valueComponent = {
54
+ ...this.parseValue(current),
55
+ token: current
56
+ };
57
+ if (!hasUnit && isNaN(+current) && valueComponent.type === 'number') {
58
+ hasUnit = true;
59
+ }
60
+ if (unitChecking) {
61
+ if (isNaN(+current)) {
62
+ if (valueComponent.type === 'number') {
63
+ currentValueComponents.push(valueComponent);
64
+ currentHasUnit = true;
65
+ } else {
66
+ currentValueComponents.push(valueComponent);
67
+ }
68
+ } else {
69
+ currentValueComponents.push({
70
+ type: 'number',
71
+ value: +current,
72
+ token: current
73
+ });
74
+ }
75
+ } else {
76
+ if (isChildHandler) {
77
+ const newValueComponent = {
78
+ type: 'string',
79
+ value: current,
80
+ token: current
81
+ };
82
+ unparsedValueComponents.push(newValueComponent);
83
+ currentValueComponents.push(newValueComponent);
84
+ } else {
85
+ currentValueComponents.push(valueComponent);
86
+ }
87
+ }
88
+ } else {
89
+ currentValueComponents.push({
90
+ type: 'string',
91
+ value: current,
92
+ token: current
93
+ });
94
+ }
95
+ current = '';
96
+ }
97
+ if (separator) {
98
+ if (separator === '+' || separator === '-') {
99
+ handleUnitChecking();
100
+ }
101
+ if (prefix && value[i - 1] === ' ') {
102
+ prefix = '';
103
+ }
104
+ if (suffix && value[i + 1] === ' ') {
105
+ suffix = '';
106
+ }
107
+ if (bypassHandlingSeparator) {
108
+ currentValueComponents.push({
109
+ type: 'separator',
110
+ value: separator,
111
+ text: separator,
112
+ token: separator
113
+ });
114
+ } else {
115
+ currentValueComponents.push({
116
+ type: 'separator',
117
+ value: separator,
118
+ text: prefix + separator + suffix,
119
+ token: separator
120
+ });
121
+ }
122
+ }
123
+ bypassParsing = false;
124
+ };
125
+ const pushUnitValueComponents = ()=>{
126
+ if (this.definition.unit === 'rem' || this.definition.unit === 'em') {
127
+ currentValueComponents.push({
128
+ type: 'separator',
129
+ value: '/',
130
+ text: ' / ',
131
+ token: '/'
132
+ }, {
133
+ type: 'number',
134
+ value: this.css.config.rootSize,
135
+ token: String(this.css.config.rootSize)
136
+ });
137
+ }
138
+ currentValueComponents.push({
139
+ type: 'separator',
140
+ value: '*',
141
+ text: ' * ',
142
+ token: '*'
143
+ }, {
144
+ type: 'number',
145
+ value: 1,
146
+ unit: this.definition.unit,
147
+ token: this.definition.unit
148
+ });
149
+ };
150
+ const handleUnitChecking = ()=>{
151
+ if (unitChecking && !currentHasUnit && !parentUnitChecking && (!isChildHandler || hasUnit)) {
152
+ pushUnitValueComponents();
153
+ }
154
+ unitChecking = false;
155
+ currentHasUnit = false;
156
+ };
157
+ for(; i < value.length; i++){
158
+ const char = value[i];
159
+ if (char === '(') {
160
+ const symbolResult = /^([+-])/.exec(current);
161
+ if (symbolResult) {
162
+ currentValueComponents.push({
163
+ type: 'string',
164
+ value: symbolResult[1],
165
+ token: symbolResult[1]
166
+ });
167
+ }
168
+ const functionName = symbolResult ? current.slice(1) : current;
169
+ const newValueComponent = {
170
+ type: 'function',
171
+ name: functionName,
172
+ symbol: char,
173
+ children: [],
174
+ bypassTransform: functionName === 'calc',
175
+ token: current
176
+ };
177
+ currentValueComponents.push(newValueComponent);
178
+ current = '';
179
+ i++;
180
+ const isVarFunction = functionName === '$' || functionName === 'var';
181
+ childHasUnit = anaylzeDeeply(newValueComponent.children, functionName !== '' && functionName !== 'calc' && (isVarFunction || Object.prototype.hasOwnProperty.call(functions, functionName)), bypassParsing || isVarFunction || unitChecking && currentHasUnit, unitChecking, isVarFunction) || functionName === 'var';
182
+ if (!childHasUnit && functionName === '$') {
183
+ const variableType = this.css.variables[newValueComponent.children[0].value]?.type;
184
+ childHasUnit = !variableType || variableType === 'string';
185
+ }
186
+ if (childHasUnit) {
187
+ hasUnit = true;
188
+ currentHasUnit = true;
189
+ }
190
+ } else if (char === ')') {
191
+ clear('');
192
+ if (hasUnit) {
193
+ for (const eachUnparsedValueComponent of unparsedValueComponents){
194
+ Object.assign(eachUnparsedValueComponent, this.parseValue(eachUnparsedValueComponent.value));
195
+ }
196
+ }
197
+ return hasUnit;
198
+ } else if (char === ',') {
199
+ clear(char, '', ' ');
200
+ } else if (char === ' ') {
201
+ clear(char);
202
+ } else {
203
+ const previousChar = value[i - 1];
204
+ switch(char){
205
+ case '+':
206
+ if (!current && previousChar !== ')') {
207
+ current += char;
208
+ } else {
209
+ clear(char, ' ', ' ');
210
+ }
211
+ break;
212
+ case '-':
213
+ if (!current && previousChar !== ')') {
214
+ current += char;
215
+ } else {
216
+ clear(char, ' ', ' ');
217
+ }
218
+ break;
219
+ case '*':
220
+ if (this.definition.unit) {
221
+ unitChecking = true;
222
+ }
223
+ clear(char, ' ', ' ');
224
+ break;
225
+ case '/':
226
+ if (this.definition.unit) {
227
+ unitChecking = true;
228
+ }
229
+ clear(char, ' ', ' ');
230
+ bypassParsing = true;
231
+ break;
232
+ default:
233
+ current += char;
234
+ break;
235
+ }
236
+ }
237
+ }
238
+ clear('');
239
+ handleUnitChecking();
240
+ };
241
+ anaylzeDeeply(valueComponents, false, false, false, false);
242
+ return 'calc(' + this.resolveValue(valueComponents, functions.calc.unit ?? this.definition.unit, bypassVariableNames, true) + ')';
243
+ }
244
+ },
245
+ translate: {
246
+ unit: 'rem'
247
+ },
248
+ translateX: {
249
+ unit: 'rem'
250
+ },
251
+ translateY: {
252
+ unit: 'rem'
253
+ },
254
+ translateZ: {
255
+ unit: 'rem'
256
+ },
257
+ translate3d: {
258
+ unit: 'rem'
259
+ },
260
+ skew: {
261
+ unit: 'deg'
262
+ },
263
+ skewX: {
264
+ unit: 'deg'
265
+ },
266
+ skewY: {
267
+ unit: 'deg'
268
+ },
269
+ skewZ: {
270
+ unit: 'deg'
271
+ },
272
+ skew3d: {
273
+ unit: 'deg'
274
+ },
275
+ rotate: {
276
+ unit: 'deg'
277
+ },
278
+ rotateX: {
279
+ unit: 'deg'
280
+ },
281
+ rotateY: {
282
+ unit: 'deg'
283
+ },
284
+ rotateZ: {
285
+ unit: 'deg'
286
+ },
287
+ rotate3d: {
288
+ unit: 'deg'
289
+ },
290
+ blur: {
291
+ unit: 'rem'
292
+ },
293
+ 'drop-shadow': {
294
+ unit: 'rem'
295
+ },
296
+ 'hue-rotate': {
297
+ unit: 'deg'
298
+ },
299
+ rgb: {
300
+ unit: ''
301
+ },
302
+ rgba: {
303
+ unit: ''
304
+ },
305
+ hsl: {
306
+ unit: ''
307
+ },
308
+ hsla: {
309
+ unit: ''
310
+ },
311
+ color: {
312
+ unit: ''
313
+ },
314
+ 'color-contrast': {
315
+ unit: ''
316
+ },
317
+ 'color-mix': {
318
+ unit: ''
319
+ },
320
+ hwb: {
321
+ unit: ''
322
+ },
323
+ lab: {
324
+ unit: ''
325
+ },
326
+ lch: {
327
+ unit: ''
328
+ },
329
+ oklab: {
330
+ unit: ''
331
+ },
332
+ oklch: {
333
+ unit: ''
334
+ },
335
+ 'light-dark': {
336
+ unit: ''
337
+ },
338
+ clamp: {
339
+ unit: ''
340
+ },
341
+ repeat: {
342
+ unit: ''
343
+ },
344
+ 'linear-gradient': {},
345
+ 'radial-gradient': {},
346
+ 'conic-gradient': {},
347
+ 'repeating-linear-gradient': {},
348
+ 'repeating-radial-gradient': {},
349
+ 'repeating-conic-gradient': {},
350
+ 'matrix': {
351
+ unit: ''
352
+ },
353
+ 'matrix3d': {
354
+ unit: ''
355
+ },
356
+ 'scale': {
357
+ unit: ''
358
+ },
359
+ 'scale3d': {
360
+ unit: ''
361
+ },
362
+ 'scaleX': {
363
+ unit: ''
364
+ },
365
+ 'scaleY': {
366
+ unit: ''
367
+ },
368
+ 'scaleZ': {
369
+ unit: ''
370
+ }
371
+ };
372
+
373
+ export { functions as default };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var at = require('./at.cjs');
4
+ var selectors = require('./selectors.cjs');
5
+ var utilities = require('./utilities.cjs');
6
+ var animations = require('./animations.cjs');
7
+ var variables = require('./variables.cjs');
8
+ var rules = require('./rules.cjs');
9
+ var modes = require('./modes.cjs');
10
+ var functions = require('./functions.cjs');
11
+
12
+ const config = {
13
+ at,
14
+ selectors,
15
+ utilities,
16
+ rules,
17
+ functions,
18
+ animations,
19
+ variables,
20
+ modes,
21
+ scope: '',
22
+ rootSize: 16,
23
+ baseUnit: 4,
24
+ override: false,
25
+ important: false,
26
+ defaultMode: 'light'
27
+ };
28
+
29
+ exports.at = at;
30
+ exports.selectors = selectors;
31
+ exports.utilities = utilities;
32
+ exports.animations = animations;
33
+ exports.variables = variables;
34
+ exports.rules = rules;
35
+ exports.modes = modes;
36
+ exports.functions = functions;
37
+ exports.config = config;
@@ -1,68 +1,11 @@
1
- import mediaQueries from './media-queries';
1
+ import at from './at';
2
2
  import selectors from './selectors';
3
- import semantics from './semantics';
3
+ import utilities from './utilities';
4
4
  import animations from './animations';
5
5
  import variables from './variables';
6
6
  import rules from './rules';
7
+ import modes from './modes';
7
8
  import functions from './functions';
8
- import type { PropertiesHyphen } from 'csstype';
9
- import type { Rule, RuleDefinition, ValueComponent } from '../rule';
9
+ import { Config } from '../types/config';
10
10
  declare const config: Config;
11
- export { config, mediaQueries, selectors, semantics, rules, functions, animations, variables };
12
- export type VariableValue = number | string | Array<number | string>;
13
- export type VariableDefinition = {
14
- [key in '' | `@${string}` | string]?: VariableValue | VariableDefinition;
15
- };
16
- export type CSSKeyframes = {
17
- [key in 'from' | 'to' | string]: PropertiesHyphen;
18
- };
19
- export type AnimationDefinitions = {
20
- [key: string]: CSSKeyframes;
21
- };
22
- export type SelectorDefinitions = {
23
- [key: string]: string | string[] | SelectorDefinitions;
24
- };
25
- export type MediaQueryDefinitions = {
26
- [key: string]: number | string | MediaQueryDefinitions;
27
- };
28
- export type StyleDefinitions = {
29
- [key: string]: string | StyleDefinitions;
30
- };
31
- export type RuleDefinitions = {
32
- [key in keyof typeof rules | string]?: RuleDefinition;
33
- };
34
- export type VariableDefinitions = {
35
- [key in keyof typeof rules]?: VariableDefinition;
36
- } & {
37
- [key: string]: VariableDefinition | VariableValue;
38
- };
39
- export type SemanticDefinitions = {
40
- [key in keyof typeof semantics]?: PropertiesHyphen;
41
- } & {
42
- [key: string]: PropertiesHyphen;
43
- };
44
- export interface FunctionDefinition {
45
- unit?: string;
46
- colored?: boolean;
47
- transform?(this: Rule, value: string, bypassVariableNames: string[]): string | ValueComponent[];
48
- }
49
- export type FunctionDefinitions = {
50
- [key: string]: FunctionDefinition;
51
- };
52
- export interface Config {
53
- extends?: (Config | any)[];
54
- styles?: StyleDefinitions;
55
- mediaQueries?: MediaQueryDefinitions;
56
- selectors?: SelectorDefinitions;
57
- semantics?: SemanticDefinitions;
58
- variables?: VariableDefinitions;
59
- rules?: RuleDefinitions;
60
- rootSize?: number;
61
- baseUnit?: number;
62
- scope?: string;
63
- important?: boolean;
64
- override?: boolean;
65
- functions?: FunctionDefinitions;
66
- animations?: AnimationDefinitions;
67
- themeDriver?: 'class' | 'media' | 'host';
68
- }
11
+ export { config, at, selectors, utilities, rules, functions, animations, variables, modes };
@@ -0,0 +1,27 @@
1
+ import at from './at.mjs';
2
+ import selectors from './selectors.mjs';
3
+ import utilities from './utilities.mjs';
4
+ import animations from './animations.mjs';
5
+ import variables from './variables.mjs';
6
+ import rules from './rules.mjs';
7
+ import modes from './modes.mjs';
8
+ import functions from './functions.mjs';
9
+
10
+ const config = {
11
+ at,
12
+ selectors,
13
+ utilities,
14
+ rules,
15
+ functions,
16
+ animations,
17
+ variables,
18
+ modes,
19
+ scope: '',
20
+ rootSize: 16,
21
+ baseUnit: 4,
22
+ override: false,
23
+ important: false,
24
+ defaultMode: 'light'
25
+ };
26
+
27
+ export { animations, at, config, functions, modes, rules, selectors, utilities, variables };
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ const modes = {
4
+ dark: 'class',
5
+ light: 'class'
6
+ };
7
+
8
+ module.exports = modes;
@@ -0,0 +1,3 @@
1
+ import { ModeDefinitions } from '../types/config';
2
+ declare const modes: ModeDefinitions;
3
+ export default modes;
@@ -0,0 +1,6 @@
1
+ const modes = {
2
+ dark: 'class',
3
+ light: 'class'
4
+ };
5
+
6
+ export { modes as default };