@arbor-css/core 0.0.141 → 0.0.143
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/cli/run.js +1 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/validate.d.ts +2 -14
- package/dist/cli/validate.d.ts.map +1 -1
- package/dist/cli/validate.js +13 -201
- package/dist/cli/validate.js.map +1 -1
- package/dist/cli/validate.test.js +20 -3
- package/dist/cli/validate.test.js.map +1 -1
- package/dist/getStructuredTokensMap.test.js +3 -3
- package/dist/getStructuredTokensMap.test.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/presets/arborPreset/preset.d.ts +184 -46
- package/dist/presets/arborPreset/preset.d.ts.map +1 -1
- package/dist/presets/arborPreset/preset.test.js +1 -1
- package/dist/presets/arborPreset/preset.test.js.map +1 -1
- package/dist/presets/basicPreset/mixins.d.ts +140 -35
- package/dist/presets/basicPreset/mixins.d.ts.map +1 -1
- package/dist/presets/basicPreset/preset.d.ts +120 -30
- package/dist/presets/basicPreset/preset.d.ts.map +1 -1
- package/dist/presets/v2/index.d.ts +3 -0
- package/dist/presets/v2/index.d.ts.map +1 -0
- package/dist/presets/v2/index.js +3 -0
- package/dist/presets/v2/index.js.map +1 -0
- package/dist/presets/v2/preset.d.ts +2680 -0
- package/dist/presets/v2/preset.d.ts.map +1 -0
- package/dist/presets/v2/preset.js +403 -0
- package/dist/presets/v2/preset.js.map +1 -0
- package/dist/presets/v2/preset.test.d.ts +2 -0
- package/dist/presets/v2/preset.test.d.ts.map +1 -0
- package/dist/presets/v2/preset.test.js +118 -0
- package/dist/presets/v2/preset.test.js.map +1 -0
- package/dist/presets/v2/schema/global.d.ts +159 -0
- package/dist/presets/v2/schema/global.d.ts.map +1 -0
- package/dist/presets/v2/schema/global.js +158 -0
- package/dist/presets/v2/schema/global.js.map +1 -0
- package/dist/presets/v2/schema/intents.d.ts +41 -0
- package/dist/presets/v2/schema/intents.d.ts.map +1 -0
- package/dist/presets/v2/schema/intents.js +42 -0
- package/dist/presets/v2/schema/intents.js.map +1 -0
- package/dist/presets/v2/schema/schema.d.ts +745 -0
- package/dist/presets/v2/schema/schema.d.ts.map +1 -0
- package/dist/presets/v2/schema/schema.js +155 -0
- package/dist/presets/v2/schema/schema.js.map +1 -0
- package/dist/presets/v2/schema/semantics.d.ts +195 -0
- package/dist/presets/v2/schema/semantics.d.ts.map +1 -0
- package/dist/presets/v2/schema/semantics.js +73 -0
- package/dist/presets/v2/schema/semantics.js.map +1 -0
- package/dist/presets/v2/values/color/color.d.ts +25 -0
- package/dist/presets/v2/values/color/color.d.ts.map +1 -0
- package/dist/presets/v2/values/color/color.js +16 -0
- package/dist/presets/v2/values/color/color.js.map +1 -0
- package/dist/presets/v2/values/color/compile.d.ts +50 -0
- package/dist/presets/v2/values/color/compile.d.ts.map +1 -0
- package/dist/presets/v2/values/color/compile.js +77 -0
- package/dist/presets/v2/values/color/compile.js.map +1 -0
- package/dist/presets/v2/values/color/compile.test.d.ts +2 -0
- package/dist/presets/v2/values/color/compile.test.d.ts.map +1 -0
- package/dist/presets/v2/values/color/compile.test.js +195 -0
- package/dist/presets/v2/values/color/compile.test.js.map +1 -0
- package/dist/presets/v2/values/color/index.d.ts +5 -0
- package/dist/presets/v2/values/color/index.d.ts.map +1 -0
- package/dist/presets/v2/values/color/index.js +5 -0
- package/dist/presets/v2/values/color/index.js.map +1 -0
- package/dist/presets/v2/values/color/ranges.d.ts +75 -0
- package/dist/presets/v2/values/color/ranges.d.ts.map +1 -0
- package/dist/presets/v2/values/color/ranges.js +128 -0
- package/dist/presets/v2/values/color/ranges.js.map +1 -0
- package/dist/presets/v2/values/color/schemes.d.ts +16 -0
- package/dist/presets/v2/values/color/schemes.d.ts.map +1 -0
- package/dist/presets/v2/values/color/schemes.js +15 -0
- package/dist/presets/v2/values/color/schemes.js.map +1 -0
- package/dist/presets/v2/values/intents.d.ts +819 -0
- package/dist/presets/v2/values/intents.d.ts.map +1 -0
- package/dist/presets/v2/values/intents.js +318 -0
- package/dist/presets/v2/values/intents.js.map +1 -0
- package/dist/presets/v2/values/semantics.d.ts +731 -0
- package/dist/presets/v2/values/semantics.d.ts.map +1 -0
- package/dist/presets/v2/values/semantics.js +181 -0
- package/dist/presets/v2/values/semantics.js.map +1 -0
- package/dist/presets/v2/values/shadow/index.d.ts +21 -0
- package/dist/presets/v2/values/shadow/index.d.ts.map +1 -0
- package/dist/presets/v2/values/shadow/index.js +62 -0
- package/dist/presets/v2/values/shadow/index.js.map +1 -0
- package/dist/presets/v2/values/spacing/index.d.ts +20 -0
- package/dist/presets/v2/values/spacing/index.d.ts.map +1 -0
- package/dist/presets/v2/values/spacing/index.js +42 -0
- package/dist/presets/v2/values/spacing/index.js.map +1 -0
- package/dist/presets/v2/values/types.d.ts +7 -0
- package/dist/presets/v2/values/types.d.ts.map +1 -0
- package/dist/presets/v2/values/types.js +2 -0
- package/dist/presets/v2/values/types.js.map +1 -0
- package/dist/presets/v2/values/typography/index.d.ts +25 -0
- package/dist/presets/v2/values/typography/index.d.ts.map +1 -0
- package/dist/presets/v2/values/typography/index.js +46 -0
- package/dist/presets/v2/values/typography/index.js.map +1 -0
- package/dist/util/tokenRegex.d.ts +6 -0
- package/dist/util/tokenRegex.d.ts.map +1 -0
- package/dist/util/tokenRegex.js +14 -0
- package/dist/util/tokenRegex.js.map +1 -0
- package/dist/util/tokenValidation.d.ts +29 -0
- package/dist/util/tokenValidation.d.ts.map +1 -0
- package/dist/util/tokenValidation.js +328 -0
- package/dist/util/tokenValidation.js.map +1 -0
- package/dist/util/tokenValidation.test.d.ts +2 -0
- package/dist/util/tokenValidation.test.d.ts.map +1 -0
- package/dist/util/tokenValidation.test.js +87 -0
- package/dist/util/tokenValidation.test.js.map +1 -0
- package/package.json +14 -8
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
export type V2SchemaConfig<TColorName extends string> = {
|
|
2
|
+
colorNames: TColorName[];
|
|
3
|
+
};
|
|
4
|
+
export declare const modeSchema: <TColorName extends string>(config: V2SchemaConfig<TColorName>) => {
|
|
5
|
+
global: {
|
|
6
|
+
color: {
|
|
7
|
+
saturation: {
|
|
8
|
+
purpose: "scalar";
|
|
9
|
+
description: "Applies global saturation adjustments to all colors";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
space: {
|
|
13
|
+
density: {
|
|
14
|
+
purpose: "scalar";
|
|
15
|
+
description: "A scaling factor for density. Higher density means smaller, tighter spacing and size";
|
|
16
|
+
};
|
|
17
|
+
baseSize: {
|
|
18
|
+
purpose: "spacing";
|
|
19
|
+
description: "Defines the base spacing unit used to derive spacing and layout tokens.";
|
|
20
|
+
};
|
|
21
|
+
scaleBase: {
|
|
22
|
+
purpose: "scalar";
|
|
23
|
+
description: "The \"base\" number of the scale equation - a linear scalar multiplier. Set this to scale by some linear factor if scaleExponent is \"1\"";
|
|
24
|
+
};
|
|
25
|
+
scaleExponentStep: {
|
|
26
|
+
purpose: "scalar";
|
|
27
|
+
description: "The exponent of the scale equation - the rate of exponential growth. `scaleBase` is raised to this exponent before being multiplied by the base spacing size. Set this to \"1\" to scale linearly by the `scaleBase` factor, or set it to a value greater than \"1\" to have exponential growth.";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
shape: {
|
|
31
|
+
roundness: {
|
|
32
|
+
purpose: "scalar";
|
|
33
|
+
description: "Controls the roundness of corners. Larger roundness values also may affect padding.";
|
|
34
|
+
};
|
|
35
|
+
lineWidth: {
|
|
36
|
+
purpose: "scalar";
|
|
37
|
+
description: "Controls the width of lines used for borders, etc.";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
shadow: {
|
|
41
|
+
spread: {
|
|
42
|
+
purpose: "scalar";
|
|
43
|
+
description: "Controls the spread size of all shadows.";
|
|
44
|
+
};
|
|
45
|
+
blur: {
|
|
46
|
+
purpose: "scalar";
|
|
47
|
+
description: "Controls the blur scaling of all shadows.";
|
|
48
|
+
};
|
|
49
|
+
color: {
|
|
50
|
+
purpose: "color";
|
|
51
|
+
description: "Provides the default shadow color used when a shadow token does not supply its own color.";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
typography: {
|
|
55
|
+
baseFontSize: {
|
|
56
|
+
purpose: "font-size";
|
|
57
|
+
description: "Defines the root font size used to derive typography tokens.";
|
|
58
|
+
};
|
|
59
|
+
size: {
|
|
60
|
+
purpose: "scalar";
|
|
61
|
+
description: "A global parameter to influence the overall font size of all typography tokens.";
|
|
62
|
+
};
|
|
63
|
+
weightStep: {
|
|
64
|
+
purpose: "scalar";
|
|
65
|
+
description: "The amount of font weight change between each typography level. This is multiplied by the level index to determine how much to adjust font weight at each level.";
|
|
66
|
+
};
|
|
67
|
+
minWeight: {
|
|
68
|
+
purpose: "scalar";
|
|
69
|
+
description: "The minimum font weight to use in the typography scale.";
|
|
70
|
+
};
|
|
71
|
+
maxWeight: {
|
|
72
|
+
purpose: "scalar";
|
|
73
|
+
description: "The maximum font weight to use in the typography scale.";
|
|
74
|
+
};
|
|
75
|
+
baseWeight: {
|
|
76
|
+
purpose: "scalar";
|
|
77
|
+
description: "The base font weight from which to calculate typography levels. This is typically the \"normal\" font weight (e.g. 400), and level adjustments are applied as positive or negative offsets from this base.";
|
|
78
|
+
};
|
|
79
|
+
lineHeightStep: {
|
|
80
|
+
purpose: "scalar";
|
|
81
|
+
description: "The amount of line height change between each typography level. This is multiplied by the level index to determine how much to adjust line height at each level.";
|
|
82
|
+
};
|
|
83
|
+
minLineHeight: {
|
|
84
|
+
purpose: "scalar";
|
|
85
|
+
description: "The minimum line height to use in the typography scale.";
|
|
86
|
+
};
|
|
87
|
+
maxLineHeight: {
|
|
88
|
+
purpose: "scalar";
|
|
89
|
+
description: "The maximum line height to use in the typography scale.";
|
|
90
|
+
};
|
|
91
|
+
baseLineHeight: {
|
|
92
|
+
purpose: "scalar";
|
|
93
|
+
description: "The base line height from which to calculate typography levels. This is typically the line height used at the default typography level, and level adjustments are applied as positive or negative offsets from this base.";
|
|
94
|
+
};
|
|
95
|
+
minFontSize: {
|
|
96
|
+
purpose: "font-size";
|
|
97
|
+
description: "The minimum font size to use in the typography scale.";
|
|
98
|
+
};
|
|
99
|
+
maxFontSize: {
|
|
100
|
+
purpose: "font-size";
|
|
101
|
+
description: "The maximum font size to use in the typography scale.";
|
|
102
|
+
};
|
|
103
|
+
fontSizeScaleBase: {
|
|
104
|
+
purpose: "scalar";
|
|
105
|
+
description: "The \"base\" number of the font size scale equation - a linear scalar multiplier. Set this to scale by some linear factor if sizeExponent is \"1\"";
|
|
106
|
+
};
|
|
107
|
+
fontSizeScaleExponentStep: {
|
|
108
|
+
purpose: "scalar";
|
|
109
|
+
description: "The exponent of the font size scale equation - the rate of exponential growth. `fontSizeScaleBase` is raised to this exponent before being multiplied by the base font size. Set this to \"1\" to scale linearly by the `fontSizeScaleBase` factor, or set it to a value greater than \"1\" to have exponential growth.";
|
|
110
|
+
};
|
|
111
|
+
letterSpacingStep: {
|
|
112
|
+
purpose: "scalar";
|
|
113
|
+
description: "The amount of letter spacing change between each typography level. This is multiplied by the level index to determine how much to adjust letter spacing at each level.";
|
|
114
|
+
};
|
|
115
|
+
minLetterSpacing: {
|
|
116
|
+
purpose: "spacing";
|
|
117
|
+
description: "The minimum letter spacing to use in the typography scale.";
|
|
118
|
+
};
|
|
119
|
+
maxLetterSpacing: {
|
|
120
|
+
purpose: "spacing";
|
|
121
|
+
description: "The maximum letter spacing to use in the typography scale.";
|
|
122
|
+
};
|
|
123
|
+
baseLetterSpacing: {
|
|
124
|
+
purpose: "spacing";
|
|
125
|
+
description: "The base letter spacing from which to calculate typography levels. This is typically the letter spacing used at the default typography level, and level adjustments are applied as positive or negative offsets from this base.";
|
|
126
|
+
};
|
|
127
|
+
darkModeWeightAdjustment: {
|
|
128
|
+
purpose: "scalar";
|
|
129
|
+
description: "An adjustment applied to font weight when in dark mode to compensate for the irradiation illusion. This is typically a negative value to reduce font weight in dark mode, but it can be positive if your theme has very light text and you want to increase weight in dark mode.";
|
|
130
|
+
};
|
|
131
|
+
boldness: {
|
|
132
|
+
purpose: "scalar";
|
|
133
|
+
description: "An overall scaling factor for how heavy font weight tokens are.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
ease: {
|
|
137
|
+
bounciness: {
|
|
138
|
+
purpose: "scalar";
|
|
139
|
+
description: "Controls the bounciness of easing functions. Higher values result in more overshoot and bounce.";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
duration: {
|
|
143
|
+
slowness: {
|
|
144
|
+
purpose: "scalar";
|
|
145
|
+
description: "Controls the overall slowness of durations. Higher values result in longer durations.";
|
|
146
|
+
};
|
|
147
|
+
base: {
|
|
148
|
+
purpose: "duration";
|
|
149
|
+
description: "The base duration used to derive all other durations. This can be thought of as the \"medium\" duration, and other durations are calculated as multiples or fractions of this base.";
|
|
150
|
+
};
|
|
151
|
+
min: {
|
|
152
|
+
purpose: "duration";
|
|
153
|
+
description: "The minimum duration to use in the duration scale.";
|
|
154
|
+
};
|
|
155
|
+
max: {
|
|
156
|
+
purpose: "duration";
|
|
157
|
+
description: "The maximum duration to use in the duration scale.";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
tint: {
|
|
162
|
+
$root: {
|
|
163
|
+
purpose: "color";
|
|
164
|
+
description: string;
|
|
165
|
+
};
|
|
166
|
+
paper: {
|
|
167
|
+
purpose: "color";
|
|
168
|
+
description: "The lightest color in the range";
|
|
169
|
+
};
|
|
170
|
+
wash: {
|
|
171
|
+
purpose: "color";
|
|
172
|
+
description: "A light color in the range, lighter than the base color";
|
|
173
|
+
};
|
|
174
|
+
light: {
|
|
175
|
+
purpose: "color";
|
|
176
|
+
description: "A light color in the range, lighter than the base color";
|
|
177
|
+
};
|
|
178
|
+
mid: {
|
|
179
|
+
purpose: "color";
|
|
180
|
+
description: "A mid-tone color in the range, similar to the base color";
|
|
181
|
+
};
|
|
182
|
+
heavy: {
|
|
183
|
+
purpose: "color";
|
|
184
|
+
description: "A dark color in the range, darker than the base color";
|
|
185
|
+
};
|
|
186
|
+
ink: {
|
|
187
|
+
purpose: "color";
|
|
188
|
+
description: "The darkest color in the range, usually used for text and other high-contrast elements";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
gray: {
|
|
192
|
+
$root: {
|
|
193
|
+
purpose: "color";
|
|
194
|
+
description: string;
|
|
195
|
+
};
|
|
196
|
+
paper: {
|
|
197
|
+
purpose: "color";
|
|
198
|
+
description: "The lightest color in the range";
|
|
199
|
+
};
|
|
200
|
+
wash: {
|
|
201
|
+
purpose: "color";
|
|
202
|
+
description: "A light color in the range, lighter than the base color";
|
|
203
|
+
};
|
|
204
|
+
light: {
|
|
205
|
+
purpose: "color";
|
|
206
|
+
description: "A light color in the range, lighter than the base color";
|
|
207
|
+
};
|
|
208
|
+
mid: {
|
|
209
|
+
purpose: "color";
|
|
210
|
+
description: "A mid-tone color in the range, similar to the base color";
|
|
211
|
+
};
|
|
212
|
+
heavy: {
|
|
213
|
+
purpose: "color";
|
|
214
|
+
description: "A dark color in the range, darker than the base color";
|
|
215
|
+
};
|
|
216
|
+
ink: {
|
|
217
|
+
purpose: "color";
|
|
218
|
+
description: "The darkest color in the range, usually used for text and other high-contrast elements";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
color: Record<TColorName, {
|
|
222
|
+
gray: {
|
|
223
|
+
$root: {
|
|
224
|
+
purpose: "color";
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
paper: {
|
|
228
|
+
purpose: "color";
|
|
229
|
+
description: "The lightest color in the range";
|
|
230
|
+
};
|
|
231
|
+
wash: {
|
|
232
|
+
purpose: "color";
|
|
233
|
+
description: "A light color in the range, lighter than the base color";
|
|
234
|
+
};
|
|
235
|
+
light: {
|
|
236
|
+
purpose: "color";
|
|
237
|
+
description: "A light color in the range, lighter than the base color";
|
|
238
|
+
};
|
|
239
|
+
mid: {
|
|
240
|
+
purpose: "color";
|
|
241
|
+
description: "A mid-tone color in the range, similar to the base color";
|
|
242
|
+
};
|
|
243
|
+
heavy: {
|
|
244
|
+
purpose: "color";
|
|
245
|
+
description: "A dark color in the range, darker than the base color";
|
|
246
|
+
};
|
|
247
|
+
ink: {
|
|
248
|
+
purpose: "color";
|
|
249
|
+
description: "The darkest color in the range, usually used for text and other high-contrast elements";
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
$root: {
|
|
253
|
+
purpose: "color";
|
|
254
|
+
description: string;
|
|
255
|
+
};
|
|
256
|
+
paper: {
|
|
257
|
+
purpose: "color";
|
|
258
|
+
description: "The lightest color in the range";
|
|
259
|
+
};
|
|
260
|
+
wash: {
|
|
261
|
+
purpose: "color";
|
|
262
|
+
description: "A light color in the range, lighter than the base color";
|
|
263
|
+
};
|
|
264
|
+
light: {
|
|
265
|
+
purpose: "color";
|
|
266
|
+
description: "A light color in the range, lighter than the base color";
|
|
267
|
+
};
|
|
268
|
+
mid: {
|
|
269
|
+
purpose: "color";
|
|
270
|
+
description: "A mid-tone color in the range, similar to the base color";
|
|
271
|
+
};
|
|
272
|
+
heavy: {
|
|
273
|
+
purpose: "color";
|
|
274
|
+
description: "A dark color in the range, darker than the base color";
|
|
275
|
+
};
|
|
276
|
+
ink: {
|
|
277
|
+
purpose: "color";
|
|
278
|
+
description: "The darkest color in the range, usually used for text and other high-contrast elements";
|
|
279
|
+
};
|
|
280
|
+
}>;
|
|
281
|
+
sp: {
|
|
282
|
+
$root: "spacing";
|
|
283
|
+
xs: "spacing";
|
|
284
|
+
sm: "spacing";
|
|
285
|
+
md: "spacing";
|
|
286
|
+
lg: "spacing";
|
|
287
|
+
xl: "spacing";
|
|
288
|
+
};
|
|
289
|
+
rd: {
|
|
290
|
+
$root: "border-radius";
|
|
291
|
+
xs: "border-radius";
|
|
292
|
+
sm: "border-radius";
|
|
293
|
+
md: "border-radius";
|
|
294
|
+
lg: "border-radius";
|
|
295
|
+
xl: "border-radius";
|
|
296
|
+
full: "border-radius";
|
|
297
|
+
};
|
|
298
|
+
lw: {
|
|
299
|
+
$root: "border-width";
|
|
300
|
+
sm: "border-width";
|
|
301
|
+
md: "border-width";
|
|
302
|
+
lg: "border-width";
|
|
303
|
+
};
|
|
304
|
+
shadow: {
|
|
305
|
+
$root: "shadow";
|
|
306
|
+
none: {
|
|
307
|
+
$root: {
|
|
308
|
+
purpose: "shadow";
|
|
309
|
+
description: string;
|
|
310
|
+
};
|
|
311
|
+
x: {
|
|
312
|
+
purpose: "shadow-x";
|
|
313
|
+
description: "Horizontal offset of the shadow";
|
|
314
|
+
};
|
|
315
|
+
y: {
|
|
316
|
+
purpose: "shadow-y";
|
|
317
|
+
description: "Vertical offset of the shadow";
|
|
318
|
+
};
|
|
319
|
+
blur: {
|
|
320
|
+
purpose: "shadow-blur";
|
|
321
|
+
description: "Blur radius of the shadow";
|
|
322
|
+
};
|
|
323
|
+
spread: {
|
|
324
|
+
purpose: "shadow-spread";
|
|
325
|
+
description: "Spread radius of the shadow";
|
|
326
|
+
};
|
|
327
|
+
color: {
|
|
328
|
+
purpose: "shadow-color";
|
|
329
|
+
description: "Color of the shadow";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
sm: {
|
|
333
|
+
$root: {
|
|
334
|
+
purpose: "shadow";
|
|
335
|
+
description: string;
|
|
336
|
+
};
|
|
337
|
+
x: {
|
|
338
|
+
purpose: "shadow-x";
|
|
339
|
+
description: "Horizontal offset of the shadow";
|
|
340
|
+
};
|
|
341
|
+
y: {
|
|
342
|
+
purpose: "shadow-y";
|
|
343
|
+
description: "Vertical offset of the shadow";
|
|
344
|
+
};
|
|
345
|
+
blur: {
|
|
346
|
+
purpose: "shadow-blur";
|
|
347
|
+
description: "Blur radius of the shadow";
|
|
348
|
+
};
|
|
349
|
+
spread: {
|
|
350
|
+
purpose: "shadow-spread";
|
|
351
|
+
description: "Spread radius of the shadow";
|
|
352
|
+
};
|
|
353
|
+
color: {
|
|
354
|
+
purpose: "shadow-color";
|
|
355
|
+
description: "Color of the shadow";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
md: {
|
|
359
|
+
$root: {
|
|
360
|
+
purpose: "shadow";
|
|
361
|
+
description: string;
|
|
362
|
+
};
|
|
363
|
+
x: {
|
|
364
|
+
purpose: "shadow-x";
|
|
365
|
+
description: "Horizontal offset of the shadow";
|
|
366
|
+
};
|
|
367
|
+
y: {
|
|
368
|
+
purpose: "shadow-y";
|
|
369
|
+
description: "Vertical offset of the shadow";
|
|
370
|
+
};
|
|
371
|
+
blur: {
|
|
372
|
+
purpose: "shadow-blur";
|
|
373
|
+
description: "Blur radius of the shadow";
|
|
374
|
+
};
|
|
375
|
+
spread: {
|
|
376
|
+
purpose: "shadow-spread";
|
|
377
|
+
description: "Spread radius of the shadow";
|
|
378
|
+
};
|
|
379
|
+
color: {
|
|
380
|
+
purpose: "shadow-color";
|
|
381
|
+
description: "Color of the shadow";
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
lg: {
|
|
385
|
+
$root: {
|
|
386
|
+
purpose: "shadow";
|
|
387
|
+
description: string;
|
|
388
|
+
};
|
|
389
|
+
x: {
|
|
390
|
+
purpose: "shadow-x";
|
|
391
|
+
description: "Horizontal offset of the shadow";
|
|
392
|
+
};
|
|
393
|
+
y: {
|
|
394
|
+
purpose: "shadow-y";
|
|
395
|
+
description: "Vertical offset of the shadow";
|
|
396
|
+
};
|
|
397
|
+
blur: {
|
|
398
|
+
purpose: "shadow-blur";
|
|
399
|
+
description: "Blur radius of the shadow";
|
|
400
|
+
};
|
|
401
|
+
spread: {
|
|
402
|
+
purpose: "shadow-spread";
|
|
403
|
+
description: "Spread radius of the shadow";
|
|
404
|
+
};
|
|
405
|
+
color: {
|
|
406
|
+
purpose: "shadow-color";
|
|
407
|
+
description: "Color of the shadow";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
xl: {
|
|
411
|
+
$root: {
|
|
412
|
+
purpose: "shadow";
|
|
413
|
+
description: string;
|
|
414
|
+
};
|
|
415
|
+
x: {
|
|
416
|
+
purpose: "shadow-x";
|
|
417
|
+
description: "Horizontal offset of the shadow";
|
|
418
|
+
};
|
|
419
|
+
y: {
|
|
420
|
+
purpose: "shadow-y";
|
|
421
|
+
description: "Vertical offset of the shadow";
|
|
422
|
+
};
|
|
423
|
+
blur: {
|
|
424
|
+
purpose: "shadow-blur";
|
|
425
|
+
description: "Blur radius of the shadow";
|
|
426
|
+
};
|
|
427
|
+
spread: {
|
|
428
|
+
purpose: "shadow-spread";
|
|
429
|
+
description: "Spread radius of the shadow";
|
|
430
|
+
};
|
|
431
|
+
color: {
|
|
432
|
+
purpose: "shadow-color";
|
|
433
|
+
description: "Color of the shadow";
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
fs: {
|
|
438
|
+
$root: "font-size";
|
|
439
|
+
sm: "font-size";
|
|
440
|
+
md: "font-size";
|
|
441
|
+
lg: "font-size";
|
|
442
|
+
};
|
|
443
|
+
fw: {
|
|
444
|
+
$root: "font-weight";
|
|
445
|
+
normal: "font-weight";
|
|
446
|
+
bold: "font-weight";
|
|
447
|
+
};
|
|
448
|
+
lh: {
|
|
449
|
+
$root: "line-height";
|
|
450
|
+
tight: "line-height";
|
|
451
|
+
normal: "line-height";
|
|
452
|
+
loose: "line-height";
|
|
453
|
+
};
|
|
454
|
+
ls: {
|
|
455
|
+
$root: "letter-spacing";
|
|
456
|
+
tight: "letter-spacing";
|
|
457
|
+
normal: "letter-spacing";
|
|
458
|
+
loose: "letter-spacing";
|
|
459
|
+
};
|
|
460
|
+
dur: {
|
|
461
|
+
$root: "duration";
|
|
462
|
+
short: "duration";
|
|
463
|
+
medium: "duration";
|
|
464
|
+
long: "duration";
|
|
465
|
+
};
|
|
466
|
+
ease: {
|
|
467
|
+
$root: "easing-function";
|
|
468
|
+
tight: "easing-function";
|
|
469
|
+
medium: "easing-function";
|
|
470
|
+
loose: "easing-function";
|
|
471
|
+
in: {
|
|
472
|
+
$root: "easing-function";
|
|
473
|
+
tight: "easing-function";
|
|
474
|
+
medium: "easing-function";
|
|
475
|
+
loose: "easing-function";
|
|
476
|
+
};
|
|
477
|
+
out: {
|
|
478
|
+
$root: "easing-function";
|
|
479
|
+
tight: "easing-function";
|
|
480
|
+
medium: "easing-function";
|
|
481
|
+
loose: "easing-function";
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
fg: {
|
|
485
|
+
$root: "color";
|
|
486
|
+
light: "color";
|
|
487
|
+
ink: "color";
|
|
488
|
+
gray: {
|
|
489
|
+
$root: "color";
|
|
490
|
+
light: "color";
|
|
491
|
+
ink: "color";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
bg: {
|
|
495
|
+
$root: "color";
|
|
496
|
+
paper: "color";
|
|
497
|
+
wash: "color";
|
|
498
|
+
light: "color";
|
|
499
|
+
bold: "color";
|
|
500
|
+
gray: {
|
|
501
|
+
$root: "color";
|
|
502
|
+
paper: "color";
|
|
503
|
+
wash: "color";
|
|
504
|
+
light: "color";
|
|
505
|
+
bold: "color";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
action: {
|
|
509
|
+
p: {
|
|
510
|
+
$root: {
|
|
511
|
+
purpose: "other";
|
|
512
|
+
description: string;
|
|
513
|
+
};
|
|
514
|
+
inline: {
|
|
515
|
+
purpose: "spacing";
|
|
516
|
+
description: "Inline (horizontal, usually) padding";
|
|
517
|
+
};
|
|
518
|
+
block: {
|
|
519
|
+
purpose: "spacing";
|
|
520
|
+
description: "Block (vertical, usually) padding";
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
rd: "border-radius";
|
|
524
|
+
text: {
|
|
525
|
+
size: "font-size";
|
|
526
|
+
weight: "font-weight";
|
|
527
|
+
lineHeight: "line-height";
|
|
528
|
+
font: "font-family";
|
|
529
|
+
letterSpacing: "letter-spacing";
|
|
530
|
+
};
|
|
531
|
+
primary: {
|
|
532
|
+
fg: {
|
|
533
|
+
purpose: "color";
|
|
534
|
+
description: "Foreground color";
|
|
535
|
+
};
|
|
536
|
+
bg: {
|
|
537
|
+
purpose: "background";
|
|
538
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
539
|
+
};
|
|
540
|
+
b: {
|
|
541
|
+
$root: {
|
|
542
|
+
purpose: "border";
|
|
543
|
+
description: string;
|
|
544
|
+
};
|
|
545
|
+
c: "color";
|
|
546
|
+
w: "border-width";
|
|
547
|
+
style: "border-style";
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
secondary: {
|
|
551
|
+
fg: {
|
|
552
|
+
purpose: "color";
|
|
553
|
+
description: "Foreground color";
|
|
554
|
+
};
|
|
555
|
+
bg: {
|
|
556
|
+
purpose: "background";
|
|
557
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
558
|
+
};
|
|
559
|
+
b: {
|
|
560
|
+
$root: {
|
|
561
|
+
purpose: "border";
|
|
562
|
+
description: string;
|
|
563
|
+
};
|
|
564
|
+
c: "color";
|
|
565
|
+
w: "border-width";
|
|
566
|
+
style: "border-style";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
ambient: {
|
|
570
|
+
fg: {
|
|
571
|
+
purpose: "color";
|
|
572
|
+
description: "Foreground color";
|
|
573
|
+
};
|
|
574
|
+
bg: {
|
|
575
|
+
purpose: "background";
|
|
576
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
577
|
+
};
|
|
578
|
+
b: {
|
|
579
|
+
$root: {
|
|
580
|
+
purpose: "border";
|
|
581
|
+
description: string;
|
|
582
|
+
};
|
|
583
|
+
c: "color";
|
|
584
|
+
w: "border-width";
|
|
585
|
+
style: "border-style";
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
config: {
|
|
589
|
+
roundness: "scalar";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
surface: {
|
|
593
|
+
p: {
|
|
594
|
+
$root: {
|
|
595
|
+
purpose: "other";
|
|
596
|
+
description: string;
|
|
597
|
+
};
|
|
598
|
+
inline: {
|
|
599
|
+
purpose: "spacing";
|
|
600
|
+
description: "Inline (horizontal, usually) padding";
|
|
601
|
+
};
|
|
602
|
+
block: {
|
|
603
|
+
purpose: "spacing";
|
|
604
|
+
description: "Block (vertical, usually) padding";
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
rd: "border-radius";
|
|
608
|
+
text: {
|
|
609
|
+
size: "font-size";
|
|
610
|
+
weight: "font-weight";
|
|
611
|
+
lineHeight: "line-height";
|
|
612
|
+
font: "font-family";
|
|
613
|
+
letterSpacing: "letter-spacing";
|
|
614
|
+
};
|
|
615
|
+
primary: {
|
|
616
|
+
fg: {
|
|
617
|
+
purpose: "color";
|
|
618
|
+
description: "Foreground color";
|
|
619
|
+
};
|
|
620
|
+
bg: {
|
|
621
|
+
purpose: "background";
|
|
622
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
623
|
+
};
|
|
624
|
+
b: {
|
|
625
|
+
$root: {
|
|
626
|
+
purpose: "border";
|
|
627
|
+
description: string;
|
|
628
|
+
};
|
|
629
|
+
c: "color";
|
|
630
|
+
w: "border-width";
|
|
631
|
+
style: "border-style";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
secondary: {
|
|
635
|
+
fg: {
|
|
636
|
+
purpose: "color";
|
|
637
|
+
description: "Foreground color";
|
|
638
|
+
};
|
|
639
|
+
bg: {
|
|
640
|
+
purpose: "background";
|
|
641
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
642
|
+
};
|
|
643
|
+
b: {
|
|
644
|
+
$root: {
|
|
645
|
+
purpose: "border";
|
|
646
|
+
description: string;
|
|
647
|
+
};
|
|
648
|
+
c: "color";
|
|
649
|
+
w: "border-width";
|
|
650
|
+
style: "border-style";
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
ambient: {
|
|
654
|
+
fg: {
|
|
655
|
+
purpose: "color";
|
|
656
|
+
description: "Foreground color";
|
|
657
|
+
};
|
|
658
|
+
bg: {
|
|
659
|
+
purpose: "background";
|
|
660
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
661
|
+
};
|
|
662
|
+
b: {
|
|
663
|
+
$root: {
|
|
664
|
+
purpose: "border";
|
|
665
|
+
description: string;
|
|
666
|
+
};
|
|
667
|
+
c: "color";
|
|
668
|
+
w: "border-width";
|
|
669
|
+
style: "border-style";
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
config: {
|
|
673
|
+
roundness: "scalar";
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
control: {
|
|
677
|
+
config: {
|
|
678
|
+
roundness: "scalar";
|
|
679
|
+
};
|
|
680
|
+
fg: {
|
|
681
|
+
purpose: "color";
|
|
682
|
+
description: "Foreground color";
|
|
683
|
+
};
|
|
684
|
+
bg: {
|
|
685
|
+
purpose: "background";
|
|
686
|
+
description: "Background - can be a color or a more complex value like a gradient or image";
|
|
687
|
+
};
|
|
688
|
+
b: {
|
|
689
|
+
$root: {
|
|
690
|
+
purpose: "border";
|
|
691
|
+
description: string;
|
|
692
|
+
};
|
|
693
|
+
c: "color";
|
|
694
|
+
w: "border-width";
|
|
695
|
+
style: "border-style";
|
|
696
|
+
};
|
|
697
|
+
p: {
|
|
698
|
+
$root: {
|
|
699
|
+
purpose: "other";
|
|
700
|
+
description: string;
|
|
701
|
+
};
|
|
702
|
+
inline: {
|
|
703
|
+
purpose: "spacing";
|
|
704
|
+
description: "Inline (horizontal, usually) padding";
|
|
705
|
+
};
|
|
706
|
+
block: {
|
|
707
|
+
purpose: "spacing";
|
|
708
|
+
description: "Block (vertical, usually) padding";
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
rd: "border-radius";
|
|
712
|
+
text: {
|
|
713
|
+
size: "font-size";
|
|
714
|
+
weight: "font-weight";
|
|
715
|
+
lineHeight: "line-height";
|
|
716
|
+
font: "font-family";
|
|
717
|
+
letterSpacing: "letter-spacing";
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
prose: {
|
|
721
|
+
primary: {
|
|
722
|
+
size: "font-size";
|
|
723
|
+
weight: "font-weight";
|
|
724
|
+
lineHeight: "line-height";
|
|
725
|
+
font: "font-family";
|
|
726
|
+
letterSpacing: "letter-spacing";
|
|
727
|
+
};
|
|
728
|
+
secondary: {
|
|
729
|
+
size: "font-size";
|
|
730
|
+
weight: "font-weight";
|
|
731
|
+
lineHeight: "line-height";
|
|
732
|
+
font: "font-family";
|
|
733
|
+
letterSpacing: "letter-spacing";
|
|
734
|
+
};
|
|
735
|
+
ambient: {
|
|
736
|
+
size: "font-size";
|
|
737
|
+
weight: "font-weight";
|
|
738
|
+
lineHeight: "line-height";
|
|
739
|
+
font: "font-family";
|
|
740
|
+
letterSpacing: "letter-spacing";
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
export type ModeSchema<TColorName extends string = string> = ReturnType<typeof modeSchema<TColorName>>;
|
|
745
|
+
//# sourceMappingURL=schema.d.ts.map
|