@master/css 2.0.0-rc.68 → 2.0.0-rc.69

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 (107) hide show
  1. package/dist/common.cjs +0 -2
  2. package/dist/common.d.ts +0 -1
  3. package/dist/common.mjs +1 -2
  4. package/dist/config/functions.cjs +9 -243
  5. package/dist/config/functions.d.ts +137 -2
  6. package/dist/config/functions.mjs +9 -243
  7. package/dist/config/index.cjs +2 -2
  8. package/dist/config/index.mjs +2 -2
  9. package/dist/config/modes.cjs +307 -3
  10. package/dist/config/modes.d.ts +306 -2
  11. package/dist/config/modes.mjs +307 -3
  12. package/dist/config/rules.cjs +740 -782
  13. package/dist/config/rules.d.ts +692 -683
  14. package/dist/config/rules.mjs +741 -783
  15. package/dist/config/utilities.cjs +328 -97
  16. package/dist/config/utilities.d.ts +247 -16
  17. package/dist/config/utilities.mjs +328 -97
  18. package/dist/config/variables.cjs +88 -460
  19. package/dist/config/variables.d.ts +358 -369
  20. package/dist/config/variables.mjs +88 -460
  21. package/dist/core.cjs +234 -234
  22. package/dist/core.d.ts +5 -3
  23. package/dist/core.mjs +234 -234
  24. package/dist/create.cjs +10 -0
  25. package/dist/create.d.ts +3 -0
  26. package/dist/create.mjs +8 -0
  27. package/dist/declarers/core.group.cjs +99 -0
  28. package/dist/declarers/core.group.d.ts +2 -0
  29. package/dist/declarers/core.group.mjs +97 -0
  30. package/dist/declarers/core.variable.cjs +9 -0
  31. package/dist/declarers/core.variable.d.ts +4 -0
  32. package/dist/declarers/core.variable.mjs +7 -0
  33. package/dist/declarers/index.cjs +13 -0
  34. package/dist/declarers/index.d.ts +10 -0
  35. package/dist/declarers/index.mjs +11 -0
  36. package/dist/declarers/pair.cjs +12 -0
  37. package/dist/declarers/pair.d.ts +4 -0
  38. package/dist/declarers/pair.mjs +10 -0
  39. package/dist/factories/with-syntax-layer.cjs +0 -2
  40. package/dist/factories/with-syntax-layer.mjs +0 -2
  41. package/dist/function-transformers/core.calc.cjs +225 -0
  42. package/dist/function-transformers/core.calc.d.ts +2 -0
  43. package/dist/function-transformers/core.calc.mjs +223 -0
  44. package/dist/function-transformers/core.variable.cjs +23 -0
  45. package/dist/function-transformers/core.variable.d.ts +7 -0
  46. package/dist/function-transformers/core.variable.mjs +21 -0
  47. package/dist/function-transformers/index.cjs +11 -0
  48. package/dist/function-transformers/index.d.ts +8 -0
  49. package/dist/function-transformers/index.mjs +9 -0
  50. package/dist/index.cjs +10 -1
  51. package/dist/index.d.ts +8 -2
  52. package/dist/index.mjs +6 -1
  53. package/dist/layer.cjs +2 -4
  54. package/dist/layer.mjs +2 -4
  55. package/dist/non-layer.cjs +2 -4
  56. package/dist/non-layer.mjs +2 -4
  57. package/dist/syntax-rule-type.cjs +8 -7
  58. package/dist/syntax-rule-type.d.ts +7 -7
  59. package/dist/syntax-rule-type.mjs +8 -7
  60. package/dist/syntax-rule.cjs +305 -258
  61. package/dist/syntax-rule.d.ts +2 -2
  62. package/dist/syntax-rule.mjs +306 -259
  63. package/dist/{utils/autofill-solid-style.cjs → transformers/auto-fill-solid.cjs} +3 -3
  64. package/dist/transformers/auto-fill-solid.d.ts +2 -0
  65. package/dist/{utils/autofill-solid-style.mjs → transformers/auto-fill-solid.mjs} +3 -3
  66. package/dist/transformers/index.cjs +9 -0
  67. package/dist/transformers/index.d.ts +6 -0
  68. package/dist/transformers/index.mjs +7 -0
  69. package/dist/types/common.d.ts +0 -2
  70. package/dist/types/config.d.ts +24 -20
  71. package/dist/types/syntax.d.ts +10 -8
  72. package/dist/utils/equal-selectors.cjs +1 -2
  73. package/dist/utils/equal-selectors.mjs +1 -2
  74. package/dist/utils/extend-config.cjs +83 -44
  75. package/dist/utils/extend-config.d.ts +10 -1
  76. package/dist/utils/extend-config.mjs +83 -44
  77. package/dist/utils/flatten-meta-object.cjs +38 -0
  78. package/dist/utils/flatten-meta-object.d.ts +13 -0
  79. package/dist/utils/flatten-meta-object.mjs +36 -0
  80. package/dist/utils/flatten-object.cjs +13 -9
  81. package/dist/utils/flatten-object.d.ts +1 -1
  82. package/dist/utils/flatten-object.mjs +13 -9
  83. package/dist/utils/generate-css.cjs +2 -2
  84. package/dist/utils/generate-css.d.ts +1 -2
  85. package/dist/utils/generate-css.mjs +2 -2
  86. package/dist/utils/minify-extended-config.cjs +64 -0
  87. package/dist/utils/minify-extended-config.d.ts +9 -0
  88. package/dist/utils/minify-extended-config.mjs +62 -0
  89. package/dist/utils/nest-meta-object.cjs +25 -0
  90. package/dist/utils/nest-meta-object.d.ts +7 -0
  91. package/dist/utils/nest-meta-object.mjs +23 -0
  92. package/dist/utils/parse-at.cjs +1 -2
  93. package/dist/utils/parse-at.d.ts +2 -2
  94. package/dist/utils/parse-at.mjs +1 -2
  95. package/dist/utils/parse-pair.cjs +3 -6
  96. package/dist/utils/parse-pair.mjs +3 -6
  97. package/dist/utils/parse-selector.cjs +2 -4
  98. package/dist/utils/parse-selector.d.ts +2 -2
  99. package/dist/utils/parse-selector.mjs +2 -4
  100. package/dist/utils/sort-readable-classes.cjs +2 -2
  101. package/dist/utils/sort-readable-classes.d.ts +1 -2
  102. package/dist/utils/sort-readable-classes.mjs +2 -2
  103. package/dist/variable-rule.cjs +35 -29
  104. package/dist/variable-rule.d.ts +16 -6
  105. package/dist/variable-rule.mjs +35 -29
  106. package/package.json +1 -1
  107. package/dist/utils/autofill-solid-style.d.ts +0 -3
@@ -1,247 +1,4 @@
1
- import { BASE_UNIT_REGEX } from '../common.mjs';
2
-
3
1
  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.get(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
2
  translate: {
246
3
  unit: 'rem'
247
4
  },
@@ -257,6 +14,9 @@ const functions = {
257
14
  translate3d: {
258
15
  unit: 'rem'
259
16
  },
17
+ perspective: {
18
+ unit: 'rem'
19
+ },
260
20
  skew: {
261
21
  unit: 'deg'
262
22
  },
@@ -367,6 +127,12 @@ const functions = {
367
127
  },
368
128
  'scaleZ': {
369
129
  unit: ''
130
+ },
131
+ $: {
132
+ transformer: 'core.variable'
133
+ },
134
+ calc: {
135
+ transformer: 'core.calc'
370
136
  }
371
137
  };
372
138
 
@@ -23,9 +23,9 @@ const config = {
23
23
  scope: '',
24
24
  rootSize: 16,
25
25
  baseUnit: 4,
26
- override: false,
27
26
  important: false,
28
- defaultMode: 'light'
27
+ defaultMode: 'light',
28
+ modeTrigger: 'media'
29
29
  };
30
30
 
31
31
  exports.at = at;
@@ -21,9 +21,9 @@ const config = {
21
21
  scope: '',
22
22
  rootSize: 16,
23
23
  baseUnit: 4,
24
- override: false,
25
24
  important: false,
26
- defaultMode: 'light'
25
+ defaultMode: 'light',
26
+ modeTrigger: 'media'
27
27
  };
28
28
 
29
29
  export { animations, at, config, functions, modes, rules, screens, selectors, utilities, variables };
@@ -1,8 +1,312 @@
1
1
  'use strict';
2
2
 
3
- const modes = {
4
- dark: 'class',
5
- light: 'class'
3
+ /* eslint-disable quotes */ const modes = {
4
+ "light": {
5
+ "color": {
6
+ "ground": "$color-grey-0",
7
+ "base": "$color-white",
8
+ "invert": "$color-black",
9
+ "stone": {
10
+ "": "$color-stone-30",
11
+ "active": "$color-stone-40",
12
+ "text": "$color-stone-90"
13
+ },
14
+ "gray": {
15
+ "": "$color-gray-30",
16
+ "active": "$color-gray-40",
17
+ "text": "$color-gray-90"
18
+ },
19
+ "grey": {
20
+ "": "$color-grey-30",
21
+ "active": "$color-grey-40",
22
+ "text": "$color-grey-90"
23
+ },
24
+ "slate": {
25
+ "": "$color-slate-30",
26
+ "active": "$color-slate-40",
27
+ "text": "$color-slate-90"
28
+ },
29
+ "brown": {
30
+ "": "$color-brown-40",
31
+ "active": "$color-brown-50",
32
+ "text": "$color-brown-90"
33
+ },
34
+ "orange": {
35
+ "": "$color-orange-40",
36
+ "active": "$color-orange-50",
37
+ "text": "$color-orange-90"
38
+ },
39
+ "amber": {
40
+ "": "$color-amber-40",
41
+ "active": "$color-amber-50",
42
+ "text": "$color-amber-90"
43
+ },
44
+ "yellow": {
45
+ "": "$color-yellow-40",
46
+ "active": "$color-yellow-50",
47
+ "text": "$color-yellow-90"
48
+ },
49
+ "lime": {
50
+ "": "$color-lime-40",
51
+ "active": "$color-lime-50",
52
+ "text": "$color-lime-90"
53
+ },
54
+ "green": {
55
+ "": "$color-green-40",
56
+ "active": "$color-green-50",
57
+ "text": "$color-green-90"
58
+ },
59
+ "beryl": {
60
+ "": "$color-beryl-40",
61
+ "active": "$color-beryl-50",
62
+ "text": "$color-beryl-90"
63
+ },
64
+ "teal": {
65
+ "": "$color-teal-40",
66
+ "active": "$color-teal-50",
67
+ "text": "$color-teal-90"
68
+ },
69
+ "cyan": {
70
+ "": "$color-cyan-40",
71
+ "active": "$color-cyan-50",
72
+ "text": "$color-cyan-90"
73
+ },
74
+ "sky": {
75
+ "": "$color-sky-60",
76
+ "active": "$color-sky-70",
77
+ "text": "$color-white"
78
+ },
79
+ "blue": {
80
+ "": "$color-blue-60",
81
+ "active": "$color-blue-70",
82
+ "text": "$color-white"
83
+ },
84
+ "indigo": {
85
+ "": "$color-indigo-60",
86
+ "active": "$color-indigo-70",
87
+ "text": "$color-white"
88
+ },
89
+ "violet": {
90
+ "": "$color-violet-60",
91
+ "active": "$color-violet-70",
92
+ "text": "$color-white"
93
+ },
94
+ "purple": {
95
+ "": "$color-purple-60",
96
+ "active": "$color-purple-70",
97
+ "text": "$color-white"
98
+ },
99
+ "fuchsia": {
100
+ "": "$color-fuchsia-60",
101
+ "active": "$color-fuchsia-70",
102
+ "text": "$color-white"
103
+ },
104
+ "pink": {
105
+ "": "$color-pink-60",
106
+ "active": "$color-pink-70",
107
+ "text": "$color-white"
108
+ },
109
+ "crimson": {
110
+ "": "$color-crimson-60",
111
+ "active": "$color-crimson-70",
112
+ "text": "$color-white"
113
+ },
114
+ "red": {
115
+ "": "$color-red-60",
116
+ "active": "$color-red-70",
117
+ "text": "$color-white"
118
+ },
119
+ "line": {
120
+ "neutral": "$color-grey-60",
121
+ "light": "oklch(0% 0 none / 0.12)",
122
+ "lighter": "oklch(0% 0 none / 0.09)",
123
+ "lightest": "oklch(0% 0 none / 0.06)"
124
+ },
125
+ "text": {
126
+ "invert": "$color-white",
127
+ "strong": "$color-grey-100",
128
+ "neutral": "$color-grey-70",
129
+ "lightest": "$color-grey-30",
130
+ "lighter": "$color-grey-40",
131
+ "light": "$color-grey-50",
132
+ "stone": "$color-stone-60",
133
+ "gray": "$color-gray-60",
134
+ "grey": "$color-grey-60",
135
+ "slate": "$color-slate-60",
136
+ "brown": "$color-brown-60",
137
+ "orange": "$color-orange-60",
138
+ "amber": "$color-amber-60",
139
+ "yellow": "$color-yellow-70",
140
+ "lime": "$color-lime-70",
141
+ "green": "$color-green-70",
142
+ "beryl": "$color-beryl-70",
143
+ "teal": "$color-teal-70",
144
+ "cyan": "$color-cyan-70",
145
+ "sky": "$color-sky-70",
146
+ "blue": "$color-blue-60",
147
+ "indigo": "$color-indigo-60",
148
+ "violet": "$color-violet-60",
149
+ "purple": "$color-purple-60",
150
+ "fuchsia": "$color-fuchsia-60",
151
+ "pink": "$color-pink-60",
152
+ "crimson": "$color-crimson-60",
153
+ "red": "$color-red-60"
154
+ }
155
+ }
156
+ },
157
+ "dark": {
158
+ "color": {
159
+ "ground": "$color-gray-100",
160
+ "base": "$color-gray-95",
161
+ "invert": "$color-white",
162
+ "stone": {
163
+ "": "$color-stone-40",
164
+ "active": "$color-stone-30",
165
+ "text": "$color-stone-95"
166
+ },
167
+ "gray": {
168
+ "": "$color-gray-40",
169
+ "active": "$color-gray-30",
170
+ "text": "$color-gray-95"
171
+ },
172
+ "grey": {
173
+ "": "$color-grey-40",
174
+ "active": "$color-grey-30",
175
+ "text": "$color-grey-95"
176
+ },
177
+ "slate": {
178
+ "": "$color-slate-40",
179
+ "active": "$color-slate-30",
180
+ "text": "$color-slate-95"
181
+ },
182
+ "brown": {
183
+ "": "$color-brown-50",
184
+ "active": "$color-brown-40",
185
+ "text": "$color-brown-95"
186
+ },
187
+ "orange": {
188
+ "": "$color-orange-50",
189
+ "active": "$color-orange-40",
190
+ "text": "$color-orange-95"
191
+ },
192
+ "amber": {
193
+ "": "$color-amber-50",
194
+ "active": "$color-amber-30",
195
+ "text": "$color-amber-95"
196
+ },
197
+ "yellow": {
198
+ "": "$color-yellow-50",
199
+ "active": "$color-yellow-30",
200
+ "text": "$color-yellow-95"
201
+ },
202
+ "lime": {
203
+ "": "$color-lime-50",
204
+ "active": "$color-lime-30",
205
+ "text": "$color-lime-95"
206
+ },
207
+ "green": {
208
+ "": "$color-green-50",
209
+ "active": "$color-green-30",
210
+ "text": "$color-green-95"
211
+ },
212
+ "beryl": {
213
+ "": "$color-beryl-50",
214
+ "active": "$color-beryl-30",
215
+ "text": "$color-beryl-95"
216
+ },
217
+ "teal": {
218
+ "": "$color-teal-50",
219
+ "active": "$color-teal-30",
220
+ "text": "$color-teal-95"
221
+ },
222
+ "cyan": {
223
+ "": "$color-cyan-50",
224
+ "active": "$color-cyan-30",
225
+ "text": "$color-cyan-95"
226
+ },
227
+ "sky": {
228
+ "": "$color-sky-50",
229
+ "active": "$color-sky-40",
230
+ "text": "$color-white"
231
+ },
232
+ "blue": {
233
+ "": "$color-blue-50",
234
+ "active": "$color-blue-40",
235
+ "text": "$color-white"
236
+ },
237
+ "indigo": {
238
+ "": "$color-indigo-50",
239
+ "active": "$color-indigo-40",
240
+ "text": "$color-white"
241
+ },
242
+ "violet": {
243
+ "": "$color-violet-50",
244
+ "active": "$color-violet-40",
245
+ "text": "$color-white"
246
+ },
247
+ "purple": {
248
+ "": "$color-purple-50",
249
+ "active": "$color-purple-40",
250
+ "text": "$color-white"
251
+ },
252
+ "fuchsia": {
253
+ "": "$color-fuchsia-50",
254
+ "active": "$color-fuchsia-40",
255
+ "text": "$color-white"
256
+ },
257
+ "pink": {
258
+ "": "$color-pink-50",
259
+ "active": "$color-pink-40",
260
+ "text": "$color-white"
261
+ },
262
+ "crimson": {
263
+ "": "$color-crimson-50",
264
+ "active": "$color-crimson-40",
265
+ "text": "$color-white"
266
+ },
267
+ "red": {
268
+ "": "$color-red-50",
269
+ "active": "$color-red-40",
270
+ "text": "$color-white"
271
+ },
272
+ "line": {
273
+ "neutral": "$color-gray-30",
274
+ "light": "oklch(100% 0 none / 0.12)",
275
+ "lighter": "oklch(100% 0 none / 0.09)",
276
+ "lightest": "oklch(100% 0 none / 0.06)"
277
+ },
278
+ "text": {
279
+ "invert": "$color-black",
280
+ "strong": "$color-white",
281
+ "neutral": "$color-gray-30",
282
+ "lightest": "$color-gray-60",
283
+ "lighter": "$color-gray-50",
284
+ "light": "$color-gray-40",
285
+ "stone": "$color-stone-30",
286
+ "gray": "$color-gray-30",
287
+ "grey": "$color-grey-30",
288
+ "slate": "$color-slate-30",
289
+ "brown": "$color-brown-30",
290
+ "orange": "$color-orange-30",
291
+ "amber": "$color-amber-40",
292
+ "yellow": "$color-yellow-40",
293
+ "lime": "$color-lime-40",
294
+ "green": "$color-green-40",
295
+ "beryl": "$color-beryl-40",
296
+ "teal": "$color-teal-40",
297
+ "cyan": "$color-cyan-40",
298
+ "sky": "$color-sky-30",
299
+ "blue": "$color-blue-30",
300
+ "indigo": "$color-indigo-30",
301
+ "violet": "$color-violet-30",
302
+ "purple": "$color-purple-30",
303
+ "fuchsia": "$color-fuchsia-30",
304
+ "pink": "$color-pink-30",
305
+ "crimson": "$color-crimson-30",
306
+ "red": "$color-red-30"
307
+ }
308
+ }
309
+ }
6
310
  };
7
311
 
8
312
  module.exports = modes;