@nxds/core 0.12.0 → 0.14.0
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/README.md +11 -2
- package/dist/runtime/catalogue.cjs +1070 -742
- package/dist/runtime/catalogue.cjs.map +1 -1
- package/dist/runtime/catalogue.d.cts +40 -16
- package/dist/runtime/catalogue.d.ts +40 -16
- package/dist/runtime/catalogue.js +1070 -742
- package/dist/runtime/catalogue.js.map +1 -1
- package/dist/runtime/index.cjs +140 -390
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +5 -5
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +137 -390
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/palette.cjs.map +1 -1
- package/dist/runtime/palette.js.map +1 -1
- package/dist/runtime/{surface-ladder-CAjRqzCx.d.ts → surface-ladder-B8LyPHC_.d.ts} +64 -3
- package/dist/runtime/{surface-ladder-tv7B_RKy.d.cts → surface-ladder-DQ9Yfwie.d.cts} +64 -3
- package/package.json +1 -1
|
@@ -1,326 +1,177 @@
|
|
|
1
|
-
//
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
"4xl": {
|
|
99
|
-
$value: {
|
|
100
|
-
value: 36,
|
|
101
|
-
unit: "px"
|
|
102
|
-
},
|
|
103
|
-
$type: "dimension"
|
|
104
|
-
},
|
|
105
|
-
"5xl": {
|
|
106
|
-
$value: {
|
|
107
|
-
value: 48,
|
|
108
|
-
unit: "px"
|
|
109
|
-
},
|
|
110
|
-
$type: "dimension"
|
|
111
|
-
},
|
|
112
|
-
"6xl": {
|
|
113
|
-
$value: {
|
|
114
|
-
value: 60,
|
|
115
|
-
unit: "px"
|
|
116
|
-
},
|
|
117
|
-
$type: "dimension"
|
|
118
|
-
},
|
|
119
|
-
"7xl": {
|
|
120
|
-
$value: {
|
|
121
|
-
value: 72,
|
|
122
|
-
unit: "px"
|
|
123
|
-
},
|
|
124
|
-
$type: "dimension"
|
|
125
|
-
},
|
|
126
|
-
"8xl": {
|
|
127
|
-
$value: {
|
|
128
|
-
value: 96,
|
|
129
|
-
unit: "px"
|
|
130
|
-
},
|
|
131
|
-
$type: "dimension"
|
|
132
|
-
},
|
|
133
|
-
"9xl": {
|
|
134
|
-
$value: {
|
|
135
|
-
value: 128,
|
|
136
|
-
unit: "px"
|
|
137
|
-
},
|
|
138
|
-
$type: "dimension"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
weight: {
|
|
142
|
-
thin: {
|
|
143
|
-
$value: 100,
|
|
144
|
-
$type: "fontWeight"
|
|
145
|
-
},
|
|
146
|
-
extralight: {
|
|
147
|
-
$value: 200,
|
|
148
|
-
$type: "fontWeight"
|
|
149
|
-
},
|
|
150
|
-
light: {
|
|
151
|
-
$value: 300,
|
|
152
|
-
$type: "fontWeight"
|
|
153
|
-
},
|
|
154
|
-
normal: {
|
|
155
|
-
$value: 400,
|
|
156
|
-
$type: "fontWeight"
|
|
157
|
-
},
|
|
158
|
-
medium: {
|
|
159
|
-
$value: 500,
|
|
160
|
-
$type: "fontWeight"
|
|
161
|
-
},
|
|
162
|
-
semibold: {
|
|
163
|
-
$value: 600,
|
|
164
|
-
$type: "fontWeight"
|
|
165
|
-
},
|
|
166
|
-
bold: {
|
|
167
|
-
$value: 700,
|
|
168
|
-
$type: "fontWeight"
|
|
169
|
-
},
|
|
170
|
-
extrabold: {
|
|
171
|
-
$value: 800,
|
|
172
|
-
$type: "fontWeight"
|
|
173
|
-
},
|
|
174
|
-
black: {
|
|
175
|
-
$value: 900,
|
|
176
|
-
$type: "fontWeight"
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"line-height": {
|
|
180
|
-
xxs: {
|
|
181
|
-
$value: {
|
|
182
|
-
value: 12,
|
|
183
|
-
unit: "px"
|
|
184
|
-
},
|
|
185
|
-
$type: "dimension"
|
|
186
|
-
},
|
|
187
|
-
xs: {
|
|
188
|
-
$value: {
|
|
189
|
-
value: 16,
|
|
190
|
-
unit: "px"
|
|
191
|
-
},
|
|
192
|
-
$type: "dimension"
|
|
193
|
-
},
|
|
194
|
-
sm: {
|
|
195
|
-
$value: {
|
|
196
|
-
value: 20,
|
|
197
|
-
unit: "px"
|
|
198
|
-
},
|
|
199
|
-
$type: "dimension"
|
|
200
|
-
},
|
|
201
|
-
base: {
|
|
202
|
-
$value: {
|
|
203
|
-
value: 24,
|
|
204
|
-
unit: "px"
|
|
205
|
-
},
|
|
206
|
-
$type: "dimension"
|
|
207
|
-
},
|
|
208
|
-
lg: {
|
|
209
|
-
$value: {
|
|
210
|
-
value: 28,
|
|
211
|
-
unit: "px"
|
|
212
|
-
},
|
|
213
|
-
$type: "dimension"
|
|
214
|
-
},
|
|
215
|
-
xl: {
|
|
216
|
-
$value: {
|
|
217
|
-
value: 28,
|
|
218
|
-
unit: "px"
|
|
219
|
-
},
|
|
220
|
-
$type: "dimension"
|
|
221
|
-
},
|
|
222
|
-
"2xl": {
|
|
223
|
-
$value: {
|
|
224
|
-
value: 32,
|
|
225
|
-
unit: "px"
|
|
226
|
-
},
|
|
227
|
-
$type: "dimension"
|
|
228
|
-
},
|
|
229
|
-
"3xl": {
|
|
230
|
-
$value: {
|
|
231
|
-
value: 36,
|
|
232
|
-
unit: "px"
|
|
233
|
-
},
|
|
234
|
-
$type: "dimension"
|
|
235
|
-
},
|
|
236
|
-
"4xl": {
|
|
237
|
-
$value: {
|
|
238
|
-
value: 48,
|
|
239
|
-
unit: "px"
|
|
240
|
-
},
|
|
241
|
-
$type: "dimension"
|
|
242
|
-
},
|
|
243
|
-
"5xl": {
|
|
244
|
-
$value: {
|
|
245
|
-
value: 48,
|
|
246
|
-
unit: "px"
|
|
247
|
-
},
|
|
248
|
-
$type: "dimension"
|
|
249
|
-
},
|
|
250
|
-
"6xl": {
|
|
251
|
-
$value: {
|
|
252
|
-
value: 60,
|
|
253
|
-
unit: "px"
|
|
254
|
-
},
|
|
255
|
-
$type: "dimension"
|
|
256
|
-
},
|
|
257
|
-
"7xl": {
|
|
258
|
-
$value: {
|
|
259
|
-
value: 72,
|
|
260
|
-
unit: "px"
|
|
261
|
-
},
|
|
262
|
-
$type: "dimension"
|
|
263
|
-
},
|
|
264
|
-
"8xl": {
|
|
265
|
-
$value: {
|
|
266
|
-
value: 96,
|
|
267
|
-
unit: "px"
|
|
268
|
-
},
|
|
269
|
-
$type: "dimension"
|
|
270
|
-
},
|
|
271
|
-
"9xl": {
|
|
272
|
-
$value: {
|
|
273
|
-
value: 128,
|
|
274
|
-
unit: "px"
|
|
275
|
-
},
|
|
276
|
-
$type: "dimension"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
letterspacing: {
|
|
280
|
-
tighter: {
|
|
281
|
-
$value: {
|
|
282
|
-
value: -0.800000011920929,
|
|
283
|
-
unit: "px"
|
|
284
|
-
},
|
|
285
|
-
$type: "dimension"
|
|
286
|
-
},
|
|
287
|
-
tight: {
|
|
288
|
-
$value: {
|
|
289
|
-
value: -0.4000000059604645,
|
|
290
|
-
unit: "px"
|
|
291
|
-
},
|
|
292
|
-
$type: "dimension"
|
|
293
|
-
},
|
|
294
|
-
normal: {
|
|
295
|
-
$value: {
|
|
296
|
-
value: 0,
|
|
297
|
-
unit: "px"
|
|
298
|
-
},
|
|
299
|
-
$type: "dimension"
|
|
300
|
-
},
|
|
301
|
-
wide: {
|
|
302
|
-
$value: {
|
|
303
|
-
value: 0.4000000059604645,
|
|
304
|
-
unit: "px"
|
|
305
|
-
},
|
|
306
|
-
$type: "dimension"
|
|
307
|
-
},
|
|
308
|
-
wider: {
|
|
309
|
-
$value: {
|
|
310
|
-
value: 0.800000011920929,
|
|
311
|
-
unit: "px"
|
|
312
|
-
},
|
|
313
|
-
$type: "dimension"
|
|
314
|
-
},
|
|
315
|
-
widest: {
|
|
316
|
-
$value: {
|
|
317
|
-
value: 1.600000023841858,
|
|
318
|
-
unit: "px"
|
|
319
|
-
},
|
|
320
|
-
$type: "dimension"
|
|
321
|
-
}
|
|
1
|
+
// src/lib/token-scales.generated.ts
|
|
2
|
+
var PRIMITIVE_PALETTE_NAMES = [
|
|
3
|
+
"green",
|
|
4
|
+
"emerald",
|
|
5
|
+
"teal",
|
|
6
|
+
"cyan",
|
|
7
|
+
"sky",
|
|
8
|
+
"indigo",
|
|
9
|
+
"violet",
|
|
10
|
+
"purple",
|
|
11
|
+
"fuchsia",
|
|
12
|
+
"pink",
|
|
13
|
+
"slate",
|
|
14
|
+
"rose",
|
|
15
|
+
"lime",
|
|
16
|
+
"yellow",
|
|
17
|
+
"blue",
|
|
18
|
+
"gray",
|
|
19
|
+
"zinc",
|
|
20
|
+
"neutral",
|
|
21
|
+
"stone",
|
|
22
|
+
"red",
|
|
23
|
+
"orange",
|
|
24
|
+
"amber"
|
|
25
|
+
];
|
|
26
|
+
var PAGE_WIDTHS_REM = {
|
|
27
|
+
"3xs": 16,
|
|
28
|
+
"2xs": 18,
|
|
29
|
+
xs: 20,
|
|
30
|
+
sm: 24,
|
|
31
|
+
md: 28,
|
|
32
|
+
lg: 32,
|
|
33
|
+
xl: 36,
|
|
34
|
+
"2xl": 42,
|
|
35
|
+
"3xl": 48,
|
|
36
|
+
"4xl": 56,
|
|
37
|
+
"5xl": 64,
|
|
38
|
+
"6xl": 72,
|
|
39
|
+
"7xl": 80
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// src/token-source/ui-scale.ts
|
|
43
|
+
var UI_SCALES = {
|
|
44
|
+
small: { spacing: 0.9, text: 12 / 14, icon: 14 / 16 },
|
|
45
|
+
default: { spacing: 1, text: 1, icon: 1 },
|
|
46
|
+
large: { spacing: 1.1, text: 16 / 14, icon: 18 / 16 },
|
|
47
|
+
larger: { spacing: 1.25, text: 18 / 14, icon: 20 / 16 }
|
|
48
|
+
};
|
|
49
|
+
var NON_DEFAULT_UI_SCALES = Object.keys(UI_SCALES).filter((scale) => scale !== "default");
|
|
50
|
+
var uiScaleSelector = (scale) => `[data-ui-scale='${scale}']`;
|
|
51
|
+
var TEXT_SIZES = [12, 13, 14, 15, 16];
|
|
52
|
+
var DEFAULT_TEXT_SIZE = 14;
|
|
53
|
+
function textSizeAttr(scale, textSize) {
|
|
54
|
+
const sizeAttr = `[data-text-size='${textSize}']`;
|
|
55
|
+
return scale === "default" ? sizeAttr : `${uiScaleSelector(scale)}${sizeAttr}`;
|
|
56
|
+
}
|
|
57
|
+
function textSizeSelector(scale, textSize) {
|
|
58
|
+
if (textSize !== DEFAULT_TEXT_SIZE) return textSizeAttr(scale, textSize);
|
|
59
|
+
return scale === "default" ? null : uiScaleSelector(scale);
|
|
60
|
+
}
|
|
61
|
+
var FULL_RADIUS = "9999px";
|
|
62
|
+
var MIN_TEXT_PX = 8;
|
|
63
|
+
var px = (value) => Number.parseFloat(value);
|
|
64
|
+
var evenPx = (value) => 2 * Math.round(value / 2);
|
|
65
|
+
function scaleLength(value, factor) {
|
|
66
|
+
const scaled = value * factor;
|
|
67
|
+
return scaled >= 16 ? evenPx(scaled) : Math.round(scaled);
|
|
68
|
+
}
|
|
69
|
+
var textFactor = (scale, textSize) => UI_SCALES[scale].text * (textSize / DEFAULT_TEXT_SIZE);
|
|
70
|
+
function scaleText(size, scale, textSize = DEFAULT_TEXT_SIZE) {
|
|
71
|
+
return Math.max(MIN_TEXT_PX, Math.round(size * textFactor(scale, textSize)));
|
|
72
|
+
}
|
|
73
|
+
function scaleLineHeight(lineHeight, scale, textSize) {
|
|
74
|
+
return Math.max(
|
|
75
|
+
MIN_TEXT_PX,
|
|
76
|
+
evenPx(lineHeight * textFactor(scale, textSize))
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function above(previous) {
|
|
80
|
+
const next = previous + 1;
|
|
81
|
+
return next >= 16 && next % 2 === 1 ? next + 1 : next;
|
|
82
|
+
}
|
|
83
|
+
var stepOf = (cssName) => Number(cssName.replace("spacing-", "").replace("_", "."));
|
|
84
|
+
function scaleMode(tokens, factor) {
|
|
85
|
+
const scaled = new Map(
|
|
86
|
+
tokens.filter(({ step }) => !step).map(({ cssName, value }) => [
|
|
87
|
+
cssName,
|
|
88
|
+
value === FULL_RADIUS ? value : `${scaleLength(px(value), factor)}px`
|
|
89
|
+
])
|
|
90
|
+
);
|
|
91
|
+
const steps = [...scaled].filter(([cssName]) => /^spacing-\d/.test(cssName)).sort(([a], [b]) => stepOf(a) - stepOf(b));
|
|
92
|
+
let previous = -1;
|
|
93
|
+
for (const [cssName, value] of steps) {
|
|
94
|
+
const length = px(value) > previous ? px(value) : above(previous);
|
|
95
|
+
scaled.set(cssName, `${length}px`);
|
|
96
|
+
previous = length;
|
|
322
97
|
}
|
|
323
|
-
}
|
|
98
|
+
return tokens.map(({ cssName, step }) => {
|
|
99
|
+
const value = scaled.get(step ?? cssName);
|
|
100
|
+
if (value === void 0) {
|
|
101
|
+
throw new Error(
|
|
102
|
+
`scaleMode: ${cssName} references ${step}, which its mode lacks`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
return { cssName, value };
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function widthTokens(widths, scale) {
|
|
109
|
+
const factor = UI_SCALES[scale].spacing;
|
|
110
|
+
return [
|
|
111
|
+
{ cssName: "ui-scale", value: String(factor) },
|
|
112
|
+
...Object.entries(widths).map(([name, rem]) => ({
|
|
113
|
+
cssName: `container-${name}`,
|
|
114
|
+
value: `${Number((rem * factor).toFixed(4))}rem`
|
|
115
|
+
}))
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
var groupValues = (group) => Object.fromEntries(
|
|
119
|
+
Object.entries(group).map(([name, token2]) => [name, token2.$value.value])
|
|
120
|
+
);
|
|
121
|
+
function uiScaleBase(typography, icon) {
|
|
122
|
+
return {
|
|
123
|
+
sizes: groupValues(typography.size),
|
|
124
|
+
lineHeights: groupValues(typography["line-height"]),
|
|
125
|
+
codeSize: typography.code.size.$value.value,
|
|
126
|
+
glyphs: groupValues(icon.glyph),
|
|
127
|
+
widths: PAGE_WIDTHS_REM
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function typeTokens({ sizes, lineHeights, codeSize }, scale, textSize) {
|
|
131
|
+
return [
|
|
132
|
+
...Object.entries(sizes).map(([name, size]) => ({
|
|
133
|
+
cssName: `typography-size-${name}`,
|
|
134
|
+
value: `${scaleText(size, scale, textSize)}px`
|
|
135
|
+
})),
|
|
136
|
+
...Object.entries(lineHeights).map(([name, lineHeight]) => ({
|
|
137
|
+
cssName: `typography-line-height-${name}`,
|
|
138
|
+
value: `${scaleLineHeight(lineHeight, scale, textSize)}px`
|
|
139
|
+
})),
|
|
140
|
+
{
|
|
141
|
+
cssName: "typography-code-size",
|
|
142
|
+
value: `${scaleText(codeSize, scale, textSize)}px`
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
}
|
|
146
|
+
function scaleBlocks(base) {
|
|
147
|
+
const { glyphs, widths } = base;
|
|
148
|
+
const root = { selectors: [":root"], tokens: widthTokens(widths, "default") };
|
|
149
|
+
return [
|
|
150
|
+
root,
|
|
151
|
+
...NON_DEFAULT_UI_SCALES.map((scale) => {
|
|
152
|
+
const { icon } = UI_SCALES[scale];
|
|
153
|
+
const tokens = [
|
|
154
|
+
...typeTokens(base, scale, DEFAULT_TEXT_SIZE),
|
|
155
|
+
...Object.entries(glyphs).map(([name, glyph]) => ({
|
|
156
|
+
cssName: `icon-glyph-${name}`,
|
|
157
|
+
value: `${evenPx(glyph * icon)}px`
|
|
158
|
+
})),
|
|
159
|
+
...widthTokens(widths, scale)
|
|
160
|
+
];
|
|
161
|
+
return { selectors: [uiScaleSelector(scale)], tokens };
|
|
162
|
+
})
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
function textSizeBlocks(base) {
|
|
166
|
+
return Object.keys(UI_SCALES).flatMap(
|
|
167
|
+
(scale) => TEXT_SIZES.filter((textSize) => textSize !== DEFAULT_TEXT_SIZE).map(
|
|
168
|
+
(textSize) => ({
|
|
169
|
+
selectors: [textSizeAttr(scale, textSize)],
|
|
170
|
+
tokens: typeTokens(base, scale, textSize)
|
|
171
|
+
})
|
|
172
|
+
)
|
|
173
|
+
);
|
|
174
|
+
}
|
|
324
175
|
|
|
325
176
|
// src/lib/contrast.ts
|
|
326
177
|
import { APCAcontrast as APCAcontrast2, sRGBtoY as sRGBtoY2 } from "apca-w3";
|
|
@@ -1074,6 +925,13 @@ var BASE_TONE_SEEDS = {
|
|
|
1074
925
|
dark: { background: "#111827", foreground: "#f9fafb" }
|
|
1075
926
|
}
|
|
1076
927
|
};
|
|
928
|
+
var UI_SCALE_OPTIONS = [
|
|
929
|
+
{ value: "small", label: "Small" },
|
|
930
|
+
{ value: "default", label: "Default" },
|
|
931
|
+
{ value: "large", label: "Large" },
|
|
932
|
+
{ value: "larger", label: "Larger" }
|
|
933
|
+
];
|
|
934
|
+
var TEXT_SIZE_OPTIONS = TEXT_SIZES.map((value) => ({ value, label: `${value}px` }));
|
|
1077
935
|
var DENSITY_OPTIONS = [
|
|
1078
936
|
{ value: "tight", label: "Tight" },
|
|
1079
937
|
{ value: "compact", label: "Compact" },
|
|
@@ -1107,6 +965,8 @@ var DEFAULT_NXDS_APPEARANCE = {
|
|
|
1107
965
|
surfaceTone: "zinc",
|
|
1108
966
|
lightContrast: 50,
|
|
1109
967
|
darkContrast: 50,
|
|
968
|
+
uiScale: "default",
|
|
969
|
+
textSize: 14,
|
|
1110
970
|
density: "default",
|
|
1111
971
|
corners: "subtle",
|
|
1112
972
|
elevation: "quiet",
|
|
@@ -1115,7 +975,6 @@ var DEFAULT_NXDS_APPEARANCE = {
|
|
|
1115
975
|
uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
1116
976
|
headingFont: null,
|
|
1117
977
|
codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
|
|
1118
|
-
uiFontSize: 14,
|
|
1119
978
|
codeFontSize: 12,
|
|
1120
979
|
reduceMotion: false,
|
|
1121
980
|
pointerCursors: false,
|
|
@@ -1125,6 +984,10 @@ var DEFAULT_NXDS_APPEARANCE = {
|
|
|
1125
984
|
var SURFACE_TONES = new Set(
|
|
1126
985
|
BASE_TONE_OPTIONS.map((option) => option.value)
|
|
1127
986
|
);
|
|
987
|
+
var SCALES = new Set(
|
|
988
|
+
UI_SCALE_OPTIONS.map((option) => option.value)
|
|
989
|
+
);
|
|
990
|
+
var TEXT_SIZE_VALUES = new Set(TEXT_SIZES);
|
|
1128
991
|
var DENSITIES = new Set(
|
|
1129
992
|
DENSITY_OPTIONS.map((option) => option.value)
|
|
1130
993
|
);
|
|
@@ -2526,32 +2389,6 @@ var color_default = {
|
|
|
2526
2389
|
}
|
|
2527
2390
|
};
|
|
2528
2391
|
|
|
2529
|
-
// src/lib/token-scales.generated.ts
|
|
2530
|
-
var PRIMITIVE_PALETTE_NAMES = [
|
|
2531
|
-
"green",
|
|
2532
|
-
"emerald",
|
|
2533
|
-
"teal",
|
|
2534
|
-
"cyan",
|
|
2535
|
-
"sky",
|
|
2536
|
-
"indigo",
|
|
2537
|
-
"violet",
|
|
2538
|
-
"purple",
|
|
2539
|
-
"fuchsia",
|
|
2540
|
-
"pink",
|
|
2541
|
-
"slate",
|
|
2542
|
-
"rose",
|
|
2543
|
-
"lime",
|
|
2544
|
-
"yellow",
|
|
2545
|
-
"blue",
|
|
2546
|
-
"gray",
|
|
2547
|
-
"zinc",
|
|
2548
|
-
"neutral",
|
|
2549
|
-
"stone",
|
|
2550
|
-
"red",
|
|
2551
|
-
"orange",
|
|
2552
|
-
"amber"
|
|
2553
|
-
];
|
|
2554
|
-
|
|
2555
2392
|
// src/lib/primitive-palette.ts
|
|
2556
2393
|
var rampCache = /* @__PURE__ */ new Map();
|
|
2557
2394
|
function getPaletteRamp(palette) {
|
|
@@ -3278,6 +3115,22 @@ function spacingTokenKind(tokenPath) {
|
|
|
3278
3115
|
`spacingTokenKind: unknown top-level key "${root}" in path [${tokenPath.join(".")}] \u2014 extend SPACING_NUMERIC_ROOTS / SPACING_ROLE_ROOTS`
|
|
3279
3116
|
);
|
|
3280
3117
|
}
|
|
3118
|
+
function referencedStep(token2, fileTokens) {
|
|
3119
|
+
if (!isReference(token2.value)) return void 0;
|
|
3120
|
+
const reference = extractRefPath(token2.value);
|
|
3121
|
+
const step = fileTokens.find(
|
|
3122
|
+
({ path }) => path.join(".") === reference && spacingTokenKind(path) === "numeric"
|
|
3123
|
+
);
|
|
3124
|
+
if (!step || isReference(step.value)) {
|
|
3125
|
+
throw new Error(
|
|
3126
|
+
`referencedStep: ${token2.path.join(".")} references {${reference}}, which is not a spacing step with a value`
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
return step;
|
|
3130
|
+
}
|
|
3131
|
+
function spacingValue(token2, fileTokens) {
|
|
3132
|
+
return (referencedStep(token2, fileTokens) ?? token2).value;
|
|
3133
|
+
}
|
|
3281
3134
|
var FAMILY_TO_UTILITY = {
|
|
3282
3135
|
"padding-x": { prefix: "px", properties: ["padding-left", "padding-right"] },
|
|
3283
3136
|
"padding-y": { prefix: "py", properties: ["padding-top", "padding-bottom"] },
|
|
@@ -3362,6 +3215,32 @@ function durationUtility(key) {
|
|
|
3362
3215
|
]
|
|
3363
3216
|
};
|
|
3364
3217
|
}
|
|
3218
|
+
function iconSizeUtility(key) {
|
|
3219
|
+
const value = `var(--nx-icon-${key})`;
|
|
3220
|
+
return {
|
|
3221
|
+
name: `size-icon-${key}`,
|
|
3222
|
+
declarations: [
|
|
3223
|
+
{ property: "width", value },
|
|
3224
|
+
{ property: "height", value },
|
|
3225
|
+
{ property: "--nx-icon-size", value }
|
|
3226
|
+
]
|
|
3227
|
+
};
|
|
3228
|
+
}
|
|
3229
|
+
var ICON_STROKE_UTILITY = {
|
|
3230
|
+
name: "icon-stroke",
|
|
3231
|
+
selectors: ["&:is(svg)", "&:is(svg) *", "& svg", "& svg *"],
|
|
3232
|
+
declarations: [
|
|
3233
|
+
{
|
|
3234
|
+
property: "stroke-width",
|
|
3235
|
+
value: "calc(var(--nx-icon-stroke-base) + var(--nx-icon-size, var(--nx-icon-glyph-default)) * var(--nx-icon-stroke-ratio))"
|
|
3236
|
+
},
|
|
3237
|
+
{ property: "vector-effect", value: "non-scaling-stroke" }
|
|
3238
|
+
]
|
|
3239
|
+
};
|
|
3240
|
+
function iconUtility(path) {
|
|
3241
|
+
if (path[0] === "stroke") return ICON_STROKE_UTILITY;
|
|
3242
|
+
return iconSizeUtility(path.join("-"));
|
|
3243
|
+
}
|
|
3365
3244
|
var DEFAULT_TRANSITION = {
|
|
3366
3245
|
duration: "default",
|
|
3367
3246
|
ease: "enter"
|
|
@@ -3582,6 +3461,67 @@ var borderwidth_strong_default = {
|
|
|
3582
3461
|
}
|
|
3583
3462
|
};
|
|
3584
3463
|
|
|
3464
|
+
// tokens/primitives/icon.json
|
|
3465
|
+
var icon_default = {
|
|
3466
|
+
glyph: {
|
|
3467
|
+
xs: {
|
|
3468
|
+
$value: {
|
|
3469
|
+
value: 12,
|
|
3470
|
+
unit: "px"
|
|
3471
|
+
},
|
|
3472
|
+
$type: "dimension",
|
|
3473
|
+
$description: "Small icon in a compact part, such as Kbd. It follows the UI scale and is the same at every density."
|
|
3474
|
+
},
|
|
3475
|
+
sm: {
|
|
3476
|
+
$value: {
|
|
3477
|
+
value: 14,
|
|
3478
|
+
unit: "px"
|
|
3479
|
+
},
|
|
3480
|
+
$type: "dimension",
|
|
3481
|
+
$description: "Small icon, such as a Badge icon or the small Switch. It follows the UI scale and is the same at every density."
|
|
3482
|
+
},
|
|
3483
|
+
default: {
|
|
3484
|
+
$value: {
|
|
3485
|
+
value: 16,
|
|
3486
|
+
unit: "px"
|
|
3487
|
+
},
|
|
3488
|
+
$type: "dimension",
|
|
3489
|
+
$description: "Icon in a control, at every control size, and the Checkbox, Radio and Switch size. It follows the UI scale and is the same at every density."
|
|
3490
|
+
},
|
|
3491
|
+
lg: {
|
|
3492
|
+
$value: {
|
|
3493
|
+
value: 24,
|
|
3494
|
+
unit: "px"
|
|
3495
|
+
},
|
|
3496
|
+
$type: "dimension",
|
|
3497
|
+
$description: "Large standalone icon, such as in an EmptyState. It follows the UI scale and is the same at every density."
|
|
3498
|
+
},
|
|
3499
|
+
xl: {
|
|
3500
|
+
$value: {
|
|
3501
|
+
value: 32,
|
|
3502
|
+
unit: "px"
|
|
3503
|
+
},
|
|
3504
|
+
$type: "dimension",
|
|
3505
|
+
$description: "Extra large standalone icon, such as in a vertical Attachment. It follows the UI scale and is the same at every density."
|
|
3506
|
+
}
|
|
3507
|
+
},
|
|
3508
|
+
stroke: {
|
|
3509
|
+
base: {
|
|
3510
|
+
$value: {
|
|
3511
|
+
value: 0.5,
|
|
3512
|
+
unit: "px"
|
|
3513
|
+
},
|
|
3514
|
+
$type: "dimension",
|
|
3515
|
+
$description: "Line a stroked icon, such as Lucide, Tabler or HugeIcons, draws before it grows with the icon. The line is this plus the icon size times the stroke ratio: 1.5px at 16px. Filled icons, such as Phosphor and Remix, keep their own line."
|
|
3516
|
+
},
|
|
3517
|
+
ratio: {
|
|
3518
|
+
$value: 0.0625,
|
|
3519
|
+
$type: "number",
|
|
3520
|
+
$description: "Line a stroked icon adds for each pixel of its size. 0.0625 adds 1px of line for every 16px of icon."
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3524
|
+
|
|
3585
3525
|
// tokens/primitives/motion/motion-snappy.json
|
|
3586
3526
|
var motion_snappy_default = {
|
|
3587
3527
|
duration: {
|
|
@@ -8707,7 +8647,147 @@ var shadow_strong_light_default = {
|
|
|
8707
8647
|
$type: "dimension"
|
|
8708
8648
|
},
|
|
8709
8649
|
color: {
|
|
8710
|
-
$value: "#0000001f",
|
|
8650
|
+
$value: "#0000001f",
|
|
8651
|
+
$type: "color"
|
|
8652
|
+
}
|
|
8653
|
+
},
|
|
8654
|
+
"layer-2": {
|
|
8655
|
+
x: {
|
|
8656
|
+
$value: {
|
|
8657
|
+
value: 0,
|
|
8658
|
+
unit: "px"
|
|
8659
|
+
},
|
|
8660
|
+
$type: "dimension"
|
|
8661
|
+
},
|
|
8662
|
+
y: {
|
|
8663
|
+
$value: {
|
|
8664
|
+
value: 4,
|
|
8665
|
+
unit: "px"
|
|
8666
|
+
},
|
|
8667
|
+
$type: "dimension"
|
|
8668
|
+
},
|
|
8669
|
+
blur: {
|
|
8670
|
+
$value: {
|
|
8671
|
+
value: 8,
|
|
8672
|
+
unit: "px"
|
|
8673
|
+
},
|
|
8674
|
+
$type: "dimension"
|
|
8675
|
+
},
|
|
8676
|
+
spread: {
|
|
8677
|
+
$value: {
|
|
8678
|
+
value: -1,
|
|
8679
|
+
unit: "px"
|
|
8680
|
+
},
|
|
8681
|
+
$type: "dimension"
|
|
8682
|
+
},
|
|
8683
|
+
color: {
|
|
8684
|
+
$value: "#0000001f",
|
|
8685
|
+
$type: "color"
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
},
|
|
8689
|
+
lg: {
|
|
8690
|
+
"layer-1": {
|
|
8691
|
+
x: {
|
|
8692
|
+
$value: {
|
|
8693
|
+
value: 0,
|
|
8694
|
+
unit: "px"
|
|
8695
|
+
},
|
|
8696
|
+
$type: "dimension"
|
|
8697
|
+
},
|
|
8698
|
+
y: {
|
|
8699
|
+
$value: {
|
|
8700
|
+
value: 1,
|
|
8701
|
+
unit: "px"
|
|
8702
|
+
},
|
|
8703
|
+
$type: "dimension"
|
|
8704
|
+
},
|
|
8705
|
+
blur: {
|
|
8706
|
+
$value: {
|
|
8707
|
+
value: 3,
|
|
8708
|
+
unit: "px"
|
|
8709
|
+
},
|
|
8710
|
+
$type: "dimension"
|
|
8711
|
+
},
|
|
8712
|
+
spread: {
|
|
8713
|
+
$value: {
|
|
8714
|
+
value: 0,
|
|
8715
|
+
unit: "px"
|
|
8716
|
+
},
|
|
8717
|
+
$type: "dimension"
|
|
8718
|
+
},
|
|
8719
|
+
color: {
|
|
8720
|
+
$value: "#00000026",
|
|
8721
|
+
$type: "color"
|
|
8722
|
+
}
|
|
8723
|
+
},
|
|
8724
|
+
"layer-2": {
|
|
8725
|
+
x: {
|
|
8726
|
+
$value: {
|
|
8727
|
+
value: 0,
|
|
8728
|
+
unit: "px"
|
|
8729
|
+
},
|
|
8730
|
+
$type: "dimension"
|
|
8731
|
+
},
|
|
8732
|
+
y: {
|
|
8733
|
+
$value: {
|
|
8734
|
+
value: 8,
|
|
8735
|
+
unit: "px"
|
|
8736
|
+
},
|
|
8737
|
+
$type: "dimension"
|
|
8738
|
+
},
|
|
8739
|
+
blur: {
|
|
8740
|
+
$value: {
|
|
8741
|
+
value: 16,
|
|
8742
|
+
unit: "px"
|
|
8743
|
+
},
|
|
8744
|
+
$type: "dimension"
|
|
8745
|
+
},
|
|
8746
|
+
spread: {
|
|
8747
|
+
$value: {
|
|
8748
|
+
value: -1,
|
|
8749
|
+
unit: "px"
|
|
8750
|
+
},
|
|
8751
|
+
$type: "dimension"
|
|
8752
|
+
},
|
|
8753
|
+
color: {
|
|
8754
|
+
$value: "#00000026",
|
|
8755
|
+
$type: "color"
|
|
8756
|
+
}
|
|
8757
|
+
}
|
|
8758
|
+
},
|
|
8759
|
+
xl: {
|
|
8760
|
+
"layer-1": {
|
|
8761
|
+
x: {
|
|
8762
|
+
$value: {
|
|
8763
|
+
value: 0,
|
|
8764
|
+
unit: "px"
|
|
8765
|
+
},
|
|
8766
|
+
$type: "dimension"
|
|
8767
|
+
},
|
|
8768
|
+
y: {
|
|
8769
|
+
$value: {
|
|
8770
|
+
value: 1,
|
|
8771
|
+
unit: "px"
|
|
8772
|
+
},
|
|
8773
|
+
$type: "dimension"
|
|
8774
|
+
},
|
|
8775
|
+
blur: {
|
|
8776
|
+
$value: {
|
|
8777
|
+
value: 3,
|
|
8778
|
+
unit: "px"
|
|
8779
|
+
},
|
|
8780
|
+
$type: "dimension"
|
|
8781
|
+
},
|
|
8782
|
+
spread: {
|
|
8783
|
+
$value: {
|
|
8784
|
+
value: 0,
|
|
8785
|
+
unit: "px"
|
|
8786
|
+
},
|
|
8787
|
+
$type: "dimension"
|
|
8788
|
+
},
|
|
8789
|
+
color: {
|
|
8790
|
+
$value: "#0000002e",
|
|
8711
8791
|
$type: "color"
|
|
8712
8792
|
}
|
|
8713
8793
|
},
|
|
@@ -8721,14 +8801,14 @@ var shadow_strong_light_default = {
|
|
|
8721
8801
|
},
|
|
8722
8802
|
y: {
|
|
8723
8803
|
$value: {
|
|
8724
|
-
value:
|
|
8804
|
+
value: 16,
|
|
8725
8805
|
unit: "px"
|
|
8726
8806
|
},
|
|
8727
8807
|
$type: "dimension"
|
|
8728
8808
|
},
|
|
8729
8809
|
blur: {
|
|
8730
8810
|
$value: {
|
|
8731
|
-
value:
|
|
8811
|
+
value: 24,
|
|
8732
8812
|
unit: "px"
|
|
8733
8813
|
},
|
|
8734
8814
|
$type: "dimension"
|
|
@@ -8741,12 +8821,12 @@ var shadow_strong_light_default = {
|
|
|
8741
8821
|
$type: "dimension"
|
|
8742
8822
|
},
|
|
8743
8823
|
color: {
|
|
8744
|
-
$value: "#
|
|
8824
|
+
$value: "#0000002e",
|
|
8745
8825
|
$type: "color"
|
|
8746
8826
|
}
|
|
8747
8827
|
}
|
|
8748
8828
|
},
|
|
8749
|
-
|
|
8829
|
+
"2xl": {
|
|
8750
8830
|
"layer-1": {
|
|
8751
8831
|
x: {
|
|
8752
8832
|
$value: {
|
|
@@ -8777,11 +8857,13 @@ var shadow_strong_light_default = {
|
|
|
8777
8857
|
$type: "dimension"
|
|
8778
8858
|
},
|
|
8779
8859
|
color: {
|
|
8780
|
-
$value: "#
|
|
8860
|
+
$value: "#0000004d",
|
|
8781
8861
|
$type: "color"
|
|
8782
8862
|
}
|
|
8783
|
-
}
|
|
8784
|
-
|
|
8863
|
+
}
|
|
8864
|
+
},
|
|
8865
|
+
inner: {
|
|
8866
|
+
"layer-1": {
|
|
8785
8867
|
x: {
|
|
8786
8868
|
$value: {
|
|
8787
8869
|
value: 0,
|
|
@@ -8791,171 +8873,363 @@ var shadow_strong_light_default = {
|
|
|
8791
8873
|
},
|
|
8792
8874
|
y: {
|
|
8793
8875
|
$value: {
|
|
8794
|
-
value:
|
|
8876
|
+
value: 2,
|
|
8795
8877
|
unit: "px"
|
|
8796
8878
|
},
|
|
8797
8879
|
$type: "dimension"
|
|
8798
8880
|
},
|
|
8799
8881
|
blur: {
|
|
8800
8882
|
$value: {
|
|
8801
|
-
value:
|
|
8883
|
+
value: 6,
|
|
8802
8884
|
unit: "px"
|
|
8803
8885
|
},
|
|
8804
8886
|
$type: "dimension"
|
|
8805
8887
|
},
|
|
8806
8888
|
spread: {
|
|
8807
8889
|
$value: {
|
|
8808
|
-
value:
|
|
8890
|
+
value: 0,
|
|
8809
8891
|
unit: "px"
|
|
8810
8892
|
},
|
|
8811
8893
|
$type: "dimension"
|
|
8812
8894
|
},
|
|
8813
8895
|
color: {
|
|
8814
|
-
$value: "#
|
|
8896
|
+
$value: "#00000014",
|
|
8815
8897
|
$type: "color"
|
|
8816
8898
|
}
|
|
8817
8899
|
}
|
|
8900
|
+
}
|
|
8901
|
+
};
|
|
8902
|
+
|
|
8903
|
+
// tokens/primitives/typography/typography-default.json
|
|
8904
|
+
var typography_default_default = {
|
|
8905
|
+
family: {
|
|
8906
|
+
"font-sans": {
|
|
8907
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8908
|
+
$type: "fontFamily",
|
|
8909
|
+
$extensions: {
|
|
8910
|
+
"nx-font-source": {
|
|
8911
|
+
type: "system"
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
},
|
|
8915
|
+
"font-heading": {
|
|
8916
|
+
$value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
8917
|
+
$type: "fontFamily",
|
|
8918
|
+
$extensions: {
|
|
8919
|
+
"nx-font-source": {
|
|
8920
|
+
type: "system"
|
|
8921
|
+
}
|
|
8922
|
+
}
|
|
8923
|
+
},
|
|
8924
|
+
"font-serif": {
|
|
8925
|
+
$value: "Georgia",
|
|
8926
|
+
$type: "fontFamily",
|
|
8927
|
+
$extensions: {
|
|
8928
|
+
"nx-font-source": {
|
|
8929
|
+
type: "system"
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8932
|
+
},
|
|
8933
|
+
"font-mono": {
|
|
8934
|
+
$value: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
8935
|
+
$type: "fontFamily",
|
|
8936
|
+
$extensions: {
|
|
8937
|
+
"nx-font-source": {
|
|
8938
|
+
type: "system"
|
|
8939
|
+
}
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8818
8942
|
},
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8943
|
+
size: {
|
|
8944
|
+
xxs: {
|
|
8945
|
+
$value: {
|
|
8946
|
+
value: 11,
|
|
8947
|
+
unit: "px"
|
|
8948
|
+
},
|
|
8949
|
+
$type: "dimension"
|
|
8950
|
+
},
|
|
8951
|
+
xs: {
|
|
8952
|
+
$value: {
|
|
8953
|
+
value: 12,
|
|
8954
|
+
unit: "px"
|
|
8955
|
+
},
|
|
8956
|
+
$type: "dimension"
|
|
8957
|
+
},
|
|
8958
|
+
sm: {
|
|
8959
|
+
$value: {
|
|
8960
|
+
value: 14,
|
|
8961
|
+
unit: "px"
|
|
8962
|
+
},
|
|
8963
|
+
$type: "dimension"
|
|
8964
|
+
},
|
|
8965
|
+
base: {
|
|
8966
|
+
$value: {
|
|
8967
|
+
value: 16,
|
|
8968
|
+
unit: "px"
|
|
8969
|
+
},
|
|
8970
|
+
$type: "dimension"
|
|
8971
|
+
},
|
|
8972
|
+
lg: {
|
|
8973
|
+
$value: {
|
|
8974
|
+
value: 18,
|
|
8975
|
+
unit: "px"
|
|
8976
|
+
},
|
|
8977
|
+
$type: "dimension"
|
|
8978
|
+
},
|
|
8979
|
+
xl: {
|
|
8980
|
+
$value: {
|
|
8981
|
+
value: 20,
|
|
8982
|
+
unit: "px"
|
|
8983
|
+
},
|
|
8984
|
+
$type: "dimension"
|
|
8985
|
+
},
|
|
8986
|
+
"2xl": {
|
|
8987
|
+
$value: {
|
|
8988
|
+
value: 24,
|
|
8989
|
+
unit: "px"
|
|
8990
|
+
},
|
|
8991
|
+
$type: "dimension"
|
|
8992
|
+
},
|
|
8993
|
+
"3xl": {
|
|
8994
|
+
$value: {
|
|
8995
|
+
value: 30,
|
|
8996
|
+
unit: "px"
|
|
8997
|
+
},
|
|
8998
|
+
$type: "dimension"
|
|
8999
|
+
},
|
|
9000
|
+
"4xl": {
|
|
9001
|
+
$value: {
|
|
9002
|
+
value: 36,
|
|
9003
|
+
unit: "px"
|
|
9004
|
+
},
|
|
9005
|
+
$type: "dimension"
|
|
9006
|
+
},
|
|
9007
|
+
"5xl": {
|
|
9008
|
+
$value: {
|
|
9009
|
+
value: 48,
|
|
9010
|
+
unit: "px"
|
|
9011
|
+
},
|
|
9012
|
+
$type: "dimension"
|
|
9013
|
+
},
|
|
9014
|
+
"6xl": {
|
|
9015
|
+
$value: {
|
|
9016
|
+
value: 60,
|
|
9017
|
+
unit: "px"
|
|
9018
|
+
},
|
|
9019
|
+
$type: "dimension"
|
|
9020
|
+
},
|
|
9021
|
+
"7xl": {
|
|
9022
|
+
$value: {
|
|
9023
|
+
value: 72,
|
|
9024
|
+
unit: "px"
|
|
9025
|
+
},
|
|
9026
|
+
$type: "dimension"
|
|
9027
|
+
},
|
|
9028
|
+
"8xl": {
|
|
9029
|
+
$value: {
|
|
9030
|
+
value: 96,
|
|
9031
|
+
unit: "px"
|
|
9032
|
+
},
|
|
9033
|
+
$type: "dimension"
|
|
9034
|
+
},
|
|
9035
|
+
"9xl": {
|
|
9036
|
+
$value: {
|
|
9037
|
+
value: 128,
|
|
9038
|
+
unit: "px"
|
|
9039
|
+
},
|
|
9040
|
+
$type: "dimension"
|
|
9041
|
+
}
|
|
9042
|
+
},
|
|
9043
|
+
weight: {
|
|
9044
|
+
thin: {
|
|
9045
|
+
$value: 100,
|
|
9046
|
+
$type: "fontWeight"
|
|
9047
|
+
},
|
|
9048
|
+
extralight: {
|
|
9049
|
+
$value: 200,
|
|
9050
|
+
$type: "fontWeight"
|
|
9051
|
+
},
|
|
9052
|
+
light: {
|
|
9053
|
+
$value: 300,
|
|
9054
|
+
$type: "fontWeight"
|
|
9055
|
+
},
|
|
9056
|
+
normal: {
|
|
9057
|
+
$value: 400,
|
|
9058
|
+
$type: "fontWeight"
|
|
9059
|
+
},
|
|
9060
|
+
medium: {
|
|
9061
|
+
$value: 500,
|
|
9062
|
+
$type: "fontWeight"
|
|
9063
|
+
},
|
|
9064
|
+
semibold: {
|
|
9065
|
+
$value: 600,
|
|
9066
|
+
$type: "fontWeight"
|
|
9067
|
+
},
|
|
9068
|
+
bold: {
|
|
9069
|
+
$value: 700,
|
|
9070
|
+
$type: "fontWeight"
|
|
9071
|
+
},
|
|
9072
|
+
extrabold: {
|
|
9073
|
+
$value: 800,
|
|
9074
|
+
$type: "fontWeight"
|
|
9075
|
+
},
|
|
9076
|
+
black: {
|
|
9077
|
+
$value: 900,
|
|
9078
|
+
$type: "fontWeight"
|
|
9079
|
+
}
|
|
9080
|
+
},
|
|
9081
|
+
"line-height": {
|
|
9082
|
+
xxs: {
|
|
9083
|
+
$value: {
|
|
9084
|
+
value: 12,
|
|
9085
|
+
unit: "px"
|
|
9086
|
+
},
|
|
9087
|
+
$type: "dimension"
|
|
9088
|
+
},
|
|
9089
|
+
xs: {
|
|
9090
|
+
$value: {
|
|
9091
|
+
value: 16,
|
|
9092
|
+
unit: "px"
|
|
9093
|
+
},
|
|
9094
|
+
$type: "dimension"
|
|
9095
|
+
},
|
|
9096
|
+
sm: {
|
|
9097
|
+
$value: {
|
|
9098
|
+
value: 20,
|
|
9099
|
+
unit: "px"
|
|
9100
|
+
},
|
|
9101
|
+
$type: "dimension"
|
|
9102
|
+
},
|
|
9103
|
+
base: {
|
|
9104
|
+
$value: {
|
|
9105
|
+
value: 24,
|
|
9106
|
+
unit: "px"
|
|
9107
|
+
},
|
|
9108
|
+
$type: "dimension"
|
|
9109
|
+
},
|
|
9110
|
+
lg: {
|
|
9111
|
+
$value: {
|
|
9112
|
+
value: 28,
|
|
9113
|
+
unit: "px"
|
|
9114
|
+
},
|
|
9115
|
+
$type: "dimension"
|
|
9116
|
+
},
|
|
9117
|
+
xl: {
|
|
9118
|
+
$value: {
|
|
9119
|
+
value: 28,
|
|
9120
|
+
unit: "px"
|
|
9121
|
+
},
|
|
9122
|
+
$type: "dimension"
|
|
9123
|
+
},
|
|
9124
|
+
"2xl": {
|
|
9125
|
+
$value: {
|
|
9126
|
+
value: 32,
|
|
9127
|
+
unit: "px"
|
|
8827
9128
|
},
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
9129
|
+
$type: "dimension"
|
|
9130
|
+
},
|
|
9131
|
+
"3xl": {
|
|
9132
|
+
$value: {
|
|
9133
|
+
value: 36,
|
|
9134
|
+
unit: "px"
|
|
8834
9135
|
},
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
9136
|
+
$type: "dimension"
|
|
9137
|
+
},
|
|
9138
|
+
"4xl": {
|
|
9139
|
+
$value: {
|
|
9140
|
+
value: 48,
|
|
9141
|
+
unit: "px"
|
|
8841
9142
|
},
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
9143
|
+
$type: "dimension"
|
|
9144
|
+
},
|
|
9145
|
+
"5xl": {
|
|
9146
|
+
$value: {
|
|
9147
|
+
value: 48,
|
|
9148
|
+
unit: "px"
|
|
8848
9149
|
},
|
|
8849
|
-
|
|
8850
|
-
$value: "#0000002e",
|
|
8851
|
-
$type: "color"
|
|
8852
|
-
}
|
|
9150
|
+
$type: "dimension"
|
|
8853
9151
|
},
|
|
8854
|
-
"
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
unit: "px"
|
|
8859
|
-
},
|
|
8860
|
-
$type: "dimension"
|
|
9152
|
+
"6xl": {
|
|
9153
|
+
$value: {
|
|
9154
|
+
value: 60,
|
|
9155
|
+
unit: "px"
|
|
8861
9156
|
},
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
9157
|
+
$type: "dimension"
|
|
9158
|
+
},
|
|
9159
|
+
"7xl": {
|
|
9160
|
+
$value: {
|
|
9161
|
+
value: 72,
|
|
9162
|
+
unit: "px"
|
|
8868
9163
|
},
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
9164
|
+
$type: "dimension"
|
|
9165
|
+
},
|
|
9166
|
+
"8xl": {
|
|
9167
|
+
$value: {
|
|
9168
|
+
value: 96,
|
|
9169
|
+
unit: "px"
|
|
8875
9170
|
},
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
9171
|
+
$type: "dimension"
|
|
9172
|
+
},
|
|
9173
|
+
"9xl": {
|
|
9174
|
+
$value: {
|
|
9175
|
+
value: 128,
|
|
9176
|
+
unit: "px"
|
|
8882
9177
|
},
|
|
8883
|
-
|
|
8884
|
-
$value: "#0000002e",
|
|
8885
|
-
$type: "color"
|
|
8886
|
-
}
|
|
9178
|
+
$type: "dimension"
|
|
8887
9179
|
}
|
|
8888
9180
|
},
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
unit: "px"
|
|
8895
|
-
},
|
|
8896
|
-
$type: "dimension"
|
|
8897
|
-
},
|
|
8898
|
-
y: {
|
|
8899
|
-
$value: {
|
|
8900
|
-
value: 1,
|
|
8901
|
-
unit: "px"
|
|
8902
|
-
},
|
|
8903
|
-
$type: "dimension"
|
|
9181
|
+
letterspacing: {
|
|
9182
|
+
tighter: {
|
|
9183
|
+
$value: {
|
|
9184
|
+
value: -0.800000011920929,
|
|
9185
|
+
unit: "px"
|
|
8904
9186
|
},
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
9187
|
+
$type: "dimension"
|
|
9188
|
+
},
|
|
9189
|
+
tight: {
|
|
9190
|
+
$value: {
|
|
9191
|
+
value: -0.4000000059604645,
|
|
9192
|
+
unit: "px"
|
|
8911
9193
|
},
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
9194
|
+
$type: "dimension"
|
|
9195
|
+
},
|
|
9196
|
+
normal: {
|
|
9197
|
+
$value: {
|
|
9198
|
+
value: 0,
|
|
9199
|
+
unit: "px"
|
|
8918
9200
|
},
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
inner: {
|
|
8926
|
-
"layer-1": {
|
|
8927
|
-
x: {
|
|
8928
|
-
$value: {
|
|
8929
|
-
value: 0,
|
|
8930
|
-
unit: "px"
|
|
8931
|
-
},
|
|
8932
|
-
$type: "dimension"
|
|
9201
|
+
$type: "dimension"
|
|
9202
|
+
},
|
|
9203
|
+
wide: {
|
|
9204
|
+
$value: {
|
|
9205
|
+
value: 0.4000000059604645,
|
|
9206
|
+
unit: "px"
|
|
8933
9207
|
},
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
9208
|
+
$type: "dimension"
|
|
9209
|
+
},
|
|
9210
|
+
wider: {
|
|
9211
|
+
$value: {
|
|
9212
|
+
value: 0.800000011920929,
|
|
9213
|
+
unit: "px"
|
|
8940
9214
|
},
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
9215
|
+
$type: "dimension"
|
|
9216
|
+
},
|
|
9217
|
+
widest: {
|
|
9218
|
+
$value: {
|
|
9219
|
+
value: 1.600000023841858,
|
|
9220
|
+
unit: "px"
|
|
8947
9221
|
},
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
9222
|
+
$type: "dimension"
|
|
9223
|
+
}
|
|
9224
|
+
},
|
|
9225
|
+
code: {
|
|
9226
|
+
size: {
|
|
9227
|
+
$value: {
|
|
9228
|
+
value: 12,
|
|
9229
|
+
unit: "px"
|
|
8954
9230
|
},
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
$type: "color"
|
|
8958
|
-
}
|
|
9231
|
+
$type: "dimension",
|
|
9232
|
+
$description: "Code text size. The code font size setting writes it, and the code text styles read it."
|
|
8959
9233
|
}
|
|
8960
9234
|
}
|
|
8961
9235
|
};
|
|
@@ -9031,189 +9305,189 @@ var spacing_comfortable_default = {
|
|
|
9031
9305
|
},
|
|
9032
9306
|
"3": {
|
|
9033
9307
|
$value: {
|
|
9034
|
-
value:
|
|
9308
|
+
value: 13,
|
|
9035
9309
|
unit: "px"
|
|
9036
9310
|
},
|
|
9037
9311
|
$type: "dimension"
|
|
9038
9312
|
},
|
|
9039
9313
|
"4": {
|
|
9040
9314
|
$value: {
|
|
9041
|
-
value:
|
|
9315
|
+
value: 17,
|
|
9042
9316
|
unit: "px"
|
|
9043
9317
|
},
|
|
9044
9318
|
$type: "dimension"
|
|
9045
9319
|
},
|
|
9046
9320
|
"5": {
|
|
9047
9321
|
$value: {
|
|
9048
|
-
value:
|
|
9322
|
+
value: 22,
|
|
9049
9323
|
unit: "px"
|
|
9050
9324
|
},
|
|
9051
9325
|
$type: "dimension"
|
|
9052
9326
|
},
|
|
9053
9327
|
"6": {
|
|
9054
9328
|
$value: {
|
|
9055
|
-
value:
|
|
9329
|
+
value: 26,
|
|
9056
9330
|
unit: "px"
|
|
9057
9331
|
},
|
|
9058
9332
|
$type: "dimension"
|
|
9059
9333
|
},
|
|
9060
9334
|
"7": {
|
|
9061
9335
|
$value: {
|
|
9062
|
-
value:
|
|
9336
|
+
value: 30,
|
|
9063
9337
|
unit: "px"
|
|
9064
9338
|
},
|
|
9065
9339
|
$type: "dimension"
|
|
9066
9340
|
},
|
|
9067
9341
|
"8": {
|
|
9068
9342
|
$value: {
|
|
9069
|
-
value:
|
|
9343
|
+
value: 34,
|
|
9070
9344
|
unit: "px"
|
|
9071
9345
|
},
|
|
9072
9346
|
$type: "dimension"
|
|
9073
9347
|
},
|
|
9074
9348
|
"9": {
|
|
9075
9349
|
$value: {
|
|
9076
|
-
value:
|
|
9350
|
+
value: 38,
|
|
9077
9351
|
unit: "px"
|
|
9078
9352
|
},
|
|
9079
9353
|
$type: "dimension"
|
|
9080
9354
|
},
|
|
9081
9355
|
"10": {
|
|
9082
9356
|
$value: {
|
|
9083
|
-
value:
|
|
9357
|
+
value: 42,
|
|
9084
9358
|
unit: "px"
|
|
9085
9359
|
},
|
|
9086
9360
|
$type: "dimension"
|
|
9087
9361
|
},
|
|
9088
9362
|
"11": {
|
|
9089
9363
|
$value: {
|
|
9090
|
-
value:
|
|
9364
|
+
value: 46,
|
|
9091
9365
|
unit: "px"
|
|
9092
9366
|
},
|
|
9093
9367
|
$type: "dimension"
|
|
9094
9368
|
},
|
|
9095
9369
|
"12": {
|
|
9096
9370
|
$value: {
|
|
9097
|
-
value:
|
|
9371
|
+
value: 50,
|
|
9098
9372
|
unit: "px"
|
|
9099
9373
|
},
|
|
9100
9374
|
$type: "dimension"
|
|
9101
9375
|
},
|
|
9102
9376
|
"14": {
|
|
9103
9377
|
$value: {
|
|
9104
|
-
value:
|
|
9378
|
+
value: 58,
|
|
9105
9379
|
unit: "px"
|
|
9106
9380
|
},
|
|
9107
9381
|
$type: "dimension"
|
|
9108
9382
|
},
|
|
9109
9383
|
"16": {
|
|
9110
9384
|
$value: {
|
|
9111
|
-
value:
|
|
9385
|
+
value: 66,
|
|
9112
9386
|
unit: "px"
|
|
9113
9387
|
},
|
|
9114
9388
|
$type: "dimension"
|
|
9115
9389
|
},
|
|
9116
9390
|
"20": {
|
|
9117
9391
|
$value: {
|
|
9118
|
-
value:
|
|
9392
|
+
value: 82,
|
|
9119
9393
|
unit: "px"
|
|
9120
9394
|
},
|
|
9121
9395
|
$type: "dimension"
|
|
9122
9396
|
},
|
|
9123
9397
|
"24": {
|
|
9124
9398
|
$value: {
|
|
9125
|
-
value:
|
|
9399
|
+
value: 98,
|
|
9126
9400
|
unit: "px"
|
|
9127
9401
|
},
|
|
9128
9402
|
$type: "dimension"
|
|
9129
9403
|
},
|
|
9130
9404
|
"28": {
|
|
9131
9405
|
$value: {
|
|
9132
|
-
value:
|
|
9406
|
+
value: 114,
|
|
9133
9407
|
unit: "px"
|
|
9134
9408
|
},
|
|
9135
9409
|
$type: "dimension"
|
|
9136
9410
|
},
|
|
9137
9411
|
"32": {
|
|
9138
9412
|
$value: {
|
|
9139
|
-
value:
|
|
9413
|
+
value: 130,
|
|
9140
9414
|
unit: "px"
|
|
9141
9415
|
},
|
|
9142
9416
|
$type: "dimension"
|
|
9143
9417
|
},
|
|
9144
9418
|
"36": {
|
|
9145
9419
|
$value: {
|
|
9146
|
-
value:
|
|
9420
|
+
value: 146,
|
|
9147
9421
|
unit: "px"
|
|
9148
9422
|
},
|
|
9149
9423
|
$type: "dimension"
|
|
9150
9424
|
},
|
|
9151
9425
|
"40": {
|
|
9152
9426
|
$value: {
|
|
9153
|
-
value:
|
|
9427
|
+
value: 162,
|
|
9154
9428
|
unit: "px"
|
|
9155
9429
|
},
|
|
9156
9430
|
$type: "dimension"
|
|
9157
9431
|
},
|
|
9158
9432
|
"44": {
|
|
9159
9433
|
$value: {
|
|
9160
|
-
value:
|
|
9434
|
+
value: 178,
|
|
9161
9435
|
unit: "px"
|
|
9162
9436
|
},
|
|
9163
9437
|
$type: "dimension"
|
|
9164
9438
|
},
|
|
9165
9439
|
"48": {
|
|
9166
9440
|
$value: {
|
|
9167
|
-
value:
|
|
9441
|
+
value: 194,
|
|
9168
9442
|
unit: "px"
|
|
9169
9443
|
},
|
|
9170
9444
|
$type: "dimension"
|
|
9171
9445
|
},
|
|
9172
9446
|
"52": {
|
|
9173
9447
|
$value: {
|
|
9174
|
-
value:
|
|
9448
|
+
value: 210,
|
|
9175
9449
|
unit: "px"
|
|
9176
9450
|
},
|
|
9177
9451
|
$type: "dimension"
|
|
9178
9452
|
},
|
|
9179
9453
|
"56": {
|
|
9180
9454
|
$value: {
|
|
9181
|
-
value:
|
|
9455
|
+
value: 226,
|
|
9182
9456
|
unit: "px"
|
|
9183
9457
|
},
|
|
9184
9458
|
$type: "dimension"
|
|
9185
9459
|
},
|
|
9186
9460
|
"60": {
|
|
9187
9461
|
$value: {
|
|
9188
|
-
value:
|
|
9462
|
+
value: 242,
|
|
9189
9463
|
unit: "px"
|
|
9190
9464
|
},
|
|
9191
9465
|
$type: "dimension"
|
|
9192
9466
|
},
|
|
9193
9467
|
"64": {
|
|
9194
9468
|
$value: {
|
|
9195
|
-
value:
|
|
9469
|
+
value: 258,
|
|
9196
9470
|
unit: "px"
|
|
9197
9471
|
},
|
|
9198
9472
|
$type: "dimension"
|
|
9199
9473
|
},
|
|
9200
9474
|
"72": {
|
|
9201
9475
|
$value: {
|
|
9202
|
-
value:
|
|
9476
|
+
value: 290,
|
|
9203
9477
|
unit: "px"
|
|
9204
9478
|
},
|
|
9205
9479
|
$type: "dimension"
|
|
9206
9480
|
},
|
|
9207
9481
|
"80": {
|
|
9208
9482
|
$value: {
|
|
9209
|
-
value:
|
|
9483
|
+
value: 322,
|
|
9210
9484
|
unit: "px"
|
|
9211
9485
|
},
|
|
9212
9486
|
$type: "dimension"
|
|
9213
9487
|
},
|
|
9214
9488
|
"96": {
|
|
9215
9489
|
$value: {
|
|
9216
|
-
value:
|
|
9490
|
+
value: 386,
|
|
9217
9491
|
unit: "px"
|
|
9218
9492
|
},
|
|
9219
9493
|
$type: "dimension"
|
|
@@ -9234,14 +9508,14 @@ var spacing_comfortable_default = {
|
|
|
9234
9508
|
},
|
|
9235
9509
|
"2_5": {
|
|
9236
9510
|
$value: {
|
|
9237
|
-
value:
|
|
9511
|
+
value: 11,
|
|
9238
9512
|
unit: "px"
|
|
9239
9513
|
},
|
|
9240
9514
|
$type: "dimension"
|
|
9241
9515
|
},
|
|
9242
9516
|
"3_5": {
|
|
9243
9517
|
$value: {
|
|
9244
|
-
value:
|
|
9518
|
+
value: 15,
|
|
9245
9519
|
unit: "px"
|
|
9246
9520
|
},
|
|
9247
9521
|
$type: "dimension"
|
|
@@ -9249,33 +9523,21 @@ var spacing_comfortable_default = {
|
|
|
9249
9523
|
},
|
|
9250
9524
|
container: {
|
|
9251
9525
|
p: {
|
|
9252
|
-
$value: {
|
|
9253
|
-
value: 28,
|
|
9254
|
-
unit: "px"
|
|
9255
|
-
},
|
|
9526
|
+
$value: "{spacing.6}",
|
|
9256
9527
|
$type: "dimension"
|
|
9257
9528
|
},
|
|
9258
9529
|
gap: {
|
|
9259
|
-
$value: {
|
|
9260
|
-
value: 20,
|
|
9261
|
-
unit: "px"
|
|
9262
|
-
},
|
|
9530
|
+
$value: "{spacing.4}",
|
|
9263
9531
|
$type: "dimension"
|
|
9264
9532
|
}
|
|
9265
9533
|
},
|
|
9266
9534
|
layout: {
|
|
9267
|
-
"section-gap": {
|
|
9268
|
-
$value: {
|
|
9269
|
-
value: 40,
|
|
9270
|
-
unit: "px"
|
|
9271
|
-
},
|
|
9535
|
+
"section-gap": {
|
|
9536
|
+
$value: "{spacing.8}",
|
|
9272
9537
|
$type: "dimension"
|
|
9273
9538
|
},
|
|
9274
9539
|
"stack-gap": {
|
|
9275
|
-
$value: {
|
|
9276
|
-
value: 10,
|
|
9277
|
-
unit: "px"
|
|
9278
|
-
},
|
|
9540
|
+
$value: "{spacing.2}",
|
|
9279
9541
|
$type: "dimension"
|
|
9280
9542
|
}
|
|
9281
9543
|
}
|
|
@@ -9307,21 +9569,21 @@ var spacing_compact_default = {
|
|
|
9307
9569
|
},
|
|
9308
9570
|
"3": {
|
|
9309
9571
|
$value: {
|
|
9310
|
-
value:
|
|
9572
|
+
value: 12,
|
|
9311
9573
|
unit: "px"
|
|
9312
9574
|
},
|
|
9313
9575
|
$type: "dimension"
|
|
9314
9576
|
},
|
|
9315
9577
|
"4": {
|
|
9316
9578
|
$value: {
|
|
9317
|
-
value:
|
|
9579
|
+
value: 15,
|
|
9318
9580
|
unit: "px"
|
|
9319
9581
|
},
|
|
9320
9582
|
$type: "dimension"
|
|
9321
9583
|
},
|
|
9322
9584
|
"5": {
|
|
9323
9585
|
$value: {
|
|
9324
|
-
value:
|
|
9586
|
+
value: 19,
|
|
9325
9587
|
unit: "px"
|
|
9326
9588
|
},
|
|
9327
9589
|
$type: "dimension"
|
|
@@ -9377,119 +9639,119 @@ var spacing_compact_default = {
|
|
|
9377
9639
|
},
|
|
9378
9640
|
"14": {
|
|
9379
9641
|
$value: {
|
|
9380
|
-
value:
|
|
9642
|
+
value: 54,
|
|
9381
9643
|
unit: "px"
|
|
9382
9644
|
},
|
|
9383
9645
|
$type: "dimension"
|
|
9384
9646
|
},
|
|
9385
9647
|
"16": {
|
|
9386
9648
|
$value: {
|
|
9387
|
-
value:
|
|
9649
|
+
value: 62,
|
|
9388
9650
|
unit: "px"
|
|
9389
9651
|
},
|
|
9390
9652
|
$type: "dimension"
|
|
9391
9653
|
},
|
|
9392
9654
|
"20": {
|
|
9393
9655
|
$value: {
|
|
9394
|
-
value:
|
|
9656
|
+
value: 78,
|
|
9395
9657
|
unit: "px"
|
|
9396
9658
|
},
|
|
9397
9659
|
$type: "dimension"
|
|
9398
9660
|
},
|
|
9399
9661
|
"24": {
|
|
9400
9662
|
$value: {
|
|
9401
|
-
value:
|
|
9663
|
+
value: 94,
|
|
9402
9664
|
unit: "px"
|
|
9403
9665
|
},
|
|
9404
9666
|
$type: "dimension"
|
|
9405
9667
|
},
|
|
9406
9668
|
"28": {
|
|
9407
9669
|
$value: {
|
|
9408
|
-
value:
|
|
9670
|
+
value: 110,
|
|
9409
9671
|
unit: "px"
|
|
9410
9672
|
},
|
|
9411
9673
|
$type: "dimension"
|
|
9412
9674
|
},
|
|
9413
9675
|
"32": {
|
|
9414
9676
|
$value: {
|
|
9415
|
-
value:
|
|
9677
|
+
value: 126,
|
|
9416
9678
|
unit: "px"
|
|
9417
9679
|
},
|
|
9418
9680
|
$type: "dimension"
|
|
9419
9681
|
},
|
|
9420
9682
|
"36": {
|
|
9421
9683
|
$value: {
|
|
9422
|
-
value:
|
|
9684
|
+
value: 142,
|
|
9423
9685
|
unit: "px"
|
|
9424
9686
|
},
|
|
9425
9687
|
$type: "dimension"
|
|
9426
9688
|
},
|
|
9427
9689
|
"40": {
|
|
9428
9690
|
$value: {
|
|
9429
|
-
value:
|
|
9691
|
+
value: 158,
|
|
9430
9692
|
unit: "px"
|
|
9431
9693
|
},
|
|
9432
9694
|
$type: "dimension"
|
|
9433
9695
|
},
|
|
9434
9696
|
"44": {
|
|
9435
9697
|
$value: {
|
|
9436
|
-
value:
|
|
9698
|
+
value: 174,
|
|
9437
9699
|
unit: "px"
|
|
9438
9700
|
},
|
|
9439
9701
|
$type: "dimension"
|
|
9440
9702
|
},
|
|
9441
9703
|
"48": {
|
|
9442
9704
|
$value: {
|
|
9443
|
-
value:
|
|
9705
|
+
value: 190,
|
|
9444
9706
|
unit: "px"
|
|
9445
9707
|
},
|
|
9446
9708
|
$type: "dimension"
|
|
9447
9709
|
},
|
|
9448
9710
|
"52": {
|
|
9449
9711
|
$value: {
|
|
9450
|
-
value:
|
|
9712
|
+
value: 206,
|
|
9451
9713
|
unit: "px"
|
|
9452
9714
|
},
|
|
9453
9715
|
$type: "dimension"
|
|
9454
9716
|
},
|
|
9455
9717
|
"56": {
|
|
9456
9718
|
$value: {
|
|
9457
|
-
value:
|
|
9719
|
+
value: 222,
|
|
9458
9720
|
unit: "px"
|
|
9459
9721
|
},
|
|
9460
9722
|
$type: "dimension"
|
|
9461
9723
|
},
|
|
9462
9724
|
"60": {
|
|
9463
9725
|
$value: {
|
|
9464
|
-
value:
|
|
9726
|
+
value: 238,
|
|
9465
9727
|
unit: "px"
|
|
9466
9728
|
},
|
|
9467
9729
|
$type: "dimension"
|
|
9468
9730
|
},
|
|
9469
9731
|
"64": {
|
|
9470
9732
|
$value: {
|
|
9471
|
-
value:
|
|
9733
|
+
value: 254,
|
|
9472
9734
|
unit: "px"
|
|
9473
9735
|
},
|
|
9474
9736
|
$type: "dimension"
|
|
9475
9737
|
},
|
|
9476
9738
|
"72": {
|
|
9477
9739
|
$value: {
|
|
9478
|
-
value:
|
|
9740
|
+
value: 286,
|
|
9479
9741
|
unit: "px"
|
|
9480
9742
|
},
|
|
9481
9743
|
$type: "dimension"
|
|
9482
9744
|
},
|
|
9483
9745
|
"80": {
|
|
9484
9746
|
$value: {
|
|
9485
|
-
value:
|
|
9747
|
+
value: 318,
|
|
9486
9748
|
unit: "px"
|
|
9487
9749
|
},
|
|
9488
9750
|
$type: "dimension"
|
|
9489
9751
|
},
|
|
9490
9752
|
"96": {
|
|
9491
9753
|
$value: {
|
|
9492
|
-
value:
|
|
9754
|
+
value: 382,
|
|
9493
9755
|
unit: "px"
|
|
9494
9756
|
},
|
|
9495
9757
|
$type: "dimension"
|
|
@@ -9510,14 +9772,14 @@ var spacing_compact_default = {
|
|
|
9510
9772
|
},
|
|
9511
9773
|
"2_5": {
|
|
9512
9774
|
$value: {
|
|
9513
|
-
value:
|
|
9775
|
+
value: 10,
|
|
9514
9776
|
unit: "px"
|
|
9515
9777
|
},
|
|
9516
9778
|
$type: "dimension"
|
|
9517
9779
|
},
|
|
9518
9780
|
"3_5": {
|
|
9519
9781
|
$value: {
|
|
9520
|
-
value:
|
|
9782
|
+
value: 14,
|
|
9521
9783
|
unit: "px"
|
|
9522
9784
|
},
|
|
9523
9785
|
$type: "dimension"
|
|
@@ -9525,33 +9787,21 @@ var spacing_compact_default = {
|
|
|
9525
9787
|
},
|
|
9526
9788
|
container: {
|
|
9527
9789
|
p: {
|
|
9528
|
-
$value: {
|
|
9529
|
-
value: 20,
|
|
9530
|
-
unit: "px"
|
|
9531
|
-
},
|
|
9790
|
+
$value: "{spacing.6}",
|
|
9532
9791
|
$type: "dimension"
|
|
9533
9792
|
},
|
|
9534
9793
|
gap: {
|
|
9535
|
-
$value: {
|
|
9536
|
-
value: 12,
|
|
9537
|
-
unit: "px"
|
|
9538
|
-
},
|
|
9794
|
+
$value: "{spacing.4}",
|
|
9539
9795
|
$type: "dimension"
|
|
9540
9796
|
}
|
|
9541
9797
|
},
|
|
9542
9798
|
layout: {
|
|
9543
9799
|
"section-gap": {
|
|
9544
|
-
$value: {
|
|
9545
|
-
value: 28,
|
|
9546
|
-
unit: "px"
|
|
9547
|
-
},
|
|
9800
|
+
$value: "{spacing.8}",
|
|
9548
9801
|
$type: "dimension"
|
|
9549
9802
|
},
|
|
9550
9803
|
"stack-gap": {
|
|
9551
|
-
$value: {
|
|
9552
|
-
value: 6,
|
|
9553
|
-
unit: "px"
|
|
9554
|
-
},
|
|
9804
|
+
$value: "{spacing.2}",
|
|
9555
9805
|
$type: "dimension"
|
|
9556
9806
|
}
|
|
9557
9807
|
}
|
|
@@ -9801,33 +10051,21 @@ var spacing_default_default = {
|
|
|
9801
10051
|
},
|
|
9802
10052
|
container: {
|
|
9803
10053
|
p: {
|
|
9804
|
-
$value: {
|
|
9805
|
-
value: 24,
|
|
9806
|
-
unit: "px"
|
|
9807
|
-
},
|
|
10054
|
+
$value: "{spacing.6}",
|
|
9808
10055
|
$type: "dimension"
|
|
9809
10056
|
},
|
|
9810
10057
|
gap: {
|
|
9811
|
-
$value: {
|
|
9812
|
-
value: 16,
|
|
9813
|
-
unit: "px"
|
|
9814
|
-
},
|
|
10058
|
+
$value: "{spacing.4}",
|
|
9815
10059
|
$type: "dimension"
|
|
9816
10060
|
}
|
|
9817
10061
|
},
|
|
9818
10062
|
layout: {
|
|
9819
10063
|
"section-gap": {
|
|
9820
|
-
$value: {
|
|
9821
|
-
value: 32,
|
|
9822
|
-
unit: "px"
|
|
9823
|
-
},
|
|
10064
|
+
$value: "{spacing.8}",
|
|
9824
10065
|
$type: "dimension"
|
|
9825
10066
|
},
|
|
9826
10067
|
"stack-gap": {
|
|
9827
|
-
$value: {
|
|
9828
|
-
value: 8,
|
|
9829
|
-
unit: "px"
|
|
9830
|
-
},
|
|
10068
|
+
$value: "{spacing.2}",
|
|
9831
10069
|
$type: "dimension"
|
|
9832
10070
|
}
|
|
9833
10071
|
}
|
|
@@ -9859,7 +10097,7 @@ var spacing_relaxed_default = {
|
|
|
9859
10097
|
},
|
|
9860
10098
|
"3": {
|
|
9861
10099
|
$value: {
|
|
9862
|
-
value:
|
|
10100
|
+
value: 13,
|
|
9863
10101
|
unit: "px"
|
|
9864
10102
|
},
|
|
9865
10103
|
$type: "dimension"
|
|
@@ -9873,7 +10111,7 @@ var spacing_relaxed_default = {
|
|
|
9873
10111
|
},
|
|
9874
10112
|
"5": {
|
|
9875
10113
|
$value: {
|
|
9876
|
-
value:
|
|
10114
|
+
value: 23,
|
|
9877
10115
|
unit: "px"
|
|
9878
10116
|
},
|
|
9879
10117
|
$type: "dimension"
|
|
@@ -10077,33 +10315,21 @@ var spacing_relaxed_default = {
|
|
|
10077
10315
|
},
|
|
10078
10316
|
container: {
|
|
10079
10317
|
p: {
|
|
10080
|
-
$value: {
|
|
10081
|
-
value: 28,
|
|
10082
|
-
unit: "px"
|
|
10083
|
-
},
|
|
10318
|
+
$value: "{spacing.6}",
|
|
10084
10319
|
$type: "dimension"
|
|
10085
10320
|
},
|
|
10086
10321
|
gap: {
|
|
10087
|
-
$value: {
|
|
10088
|
-
value: 20,
|
|
10089
|
-
unit: "px"
|
|
10090
|
-
},
|
|
10322
|
+
$value: "{spacing.4}",
|
|
10091
10323
|
$type: "dimension"
|
|
10092
10324
|
}
|
|
10093
10325
|
},
|
|
10094
10326
|
layout: {
|
|
10095
10327
|
"section-gap": {
|
|
10096
|
-
$value: {
|
|
10097
|
-
value: 40,
|
|
10098
|
-
unit: "px"
|
|
10099
|
-
},
|
|
10328
|
+
$value: "{spacing.8}",
|
|
10100
10329
|
$type: "dimension"
|
|
10101
10330
|
},
|
|
10102
10331
|
"stack-gap": {
|
|
10103
|
-
$value: {
|
|
10104
|
-
value: 10,
|
|
10105
|
-
unit: "px"
|
|
10106
|
-
},
|
|
10332
|
+
$value: "{spacing.2}",
|
|
10107
10333
|
$type: "dimension"
|
|
10108
10334
|
}
|
|
10109
10335
|
}
|
|
@@ -10135,189 +10361,189 @@ var spacing_spacious_default = {
|
|
|
10135
10361
|
},
|
|
10136
10362
|
"3": {
|
|
10137
10363
|
$value: {
|
|
10138
|
-
value:
|
|
10364
|
+
value: 14,
|
|
10139
10365
|
unit: "px"
|
|
10140
10366
|
},
|
|
10141
10367
|
$type: "dimension"
|
|
10142
10368
|
},
|
|
10143
10369
|
"4": {
|
|
10144
10370
|
$value: {
|
|
10145
|
-
value:
|
|
10371
|
+
value: 19,
|
|
10146
10372
|
unit: "px"
|
|
10147
10373
|
},
|
|
10148
10374
|
$type: "dimension"
|
|
10149
10375
|
},
|
|
10150
10376
|
"5": {
|
|
10151
10377
|
$value: {
|
|
10152
|
-
value:
|
|
10378
|
+
value: 25,
|
|
10153
10379
|
unit: "px"
|
|
10154
10380
|
},
|
|
10155
10381
|
$type: "dimension"
|
|
10156
10382
|
},
|
|
10157
10383
|
"6": {
|
|
10158
10384
|
$value: {
|
|
10159
|
-
value:
|
|
10385
|
+
value: 30,
|
|
10160
10386
|
unit: "px"
|
|
10161
10387
|
},
|
|
10162
10388
|
$type: "dimension"
|
|
10163
10389
|
},
|
|
10164
10390
|
"7": {
|
|
10165
10391
|
$value: {
|
|
10166
|
-
value:
|
|
10392
|
+
value: 34,
|
|
10167
10393
|
unit: "px"
|
|
10168
10394
|
},
|
|
10169
10395
|
$type: "dimension"
|
|
10170
10396
|
},
|
|
10171
10397
|
"8": {
|
|
10172
10398
|
$value: {
|
|
10173
|
-
value:
|
|
10399
|
+
value: 38,
|
|
10174
10400
|
unit: "px"
|
|
10175
10401
|
},
|
|
10176
10402
|
$type: "dimension"
|
|
10177
10403
|
},
|
|
10178
10404
|
"9": {
|
|
10179
10405
|
$value: {
|
|
10180
|
-
value:
|
|
10406
|
+
value: 42,
|
|
10181
10407
|
unit: "px"
|
|
10182
10408
|
},
|
|
10183
10409
|
$type: "dimension"
|
|
10184
10410
|
},
|
|
10185
10411
|
"10": {
|
|
10186
10412
|
$value: {
|
|
10187
|
-
value:
|
|
10413
|
+
value: 46,
|
|
10188
10414
|
unit: "px"
|
|
10189
10415
|
},
|
|
10190
10416
|
$type: "dimension"
|
|
10191
10417
|
},
|
|
10192
10418
|
"11": {
|
|
10193
10419
|
$value: {
|
|
10194
|
-
value:
|
|
10420
|
+
value: 50,
|
|
10195
10421
|
unit: "px"
|
|
10196
10422
|
},
|
|
10197
10423
|
$type: "dimension"
|
|
10198
10424
|
},
|
|
10199
10425
|
"12": {
|
|
10200
10426
|
$value: {
|
|
10201
|
-
value:
|
|
10427
|
+
value: 54,
|
|
10202
10428
|
unit: "px"
|
|
10203
10429
|
},
|
|
10204
10430
|
$type: "dimension"
|
|
10205
10431
|
},
|
|
10206
10432
|
"14": {
|
|
10207
10433
|
$value: {
|
|
10208
|
-
value:
|
|
10434
|
+
value: 62,
|
|
10209
10435
|
unit: "px"
|
|
10210
10436
|
},
|
|
10211
10437
|
$type: "dimension"
|
|
10212
10438
|
},
|
|
10213
10439
|
"16": {
|
|
10214
10440
|
$value: {
|
|
10215
|
-
value:
|
|
10441
|
+
value: 70,
|
|
10216
10442
|
unit: "px"
|
|
10217
10443
|
},
|
|
10218
10444
|
$type: "dimension"
|
|
10219
10445
|
},
|
|
10220
10446
|
"20": {
|
|
10221
10447
|
$value: {
|
|
10222
|
-
value:
|
|
10448
|
+
value: 86,
|
|
10223
10449
|
unit: "px"
|
|
10224
10450
|
},
|
|
10225
10451
|
$type: "dimension"
|
|
10226
10452
|
},
|
|
10227
10453
|
"24": {
|
|
10228
10454
|
$value: {
|
|
10229
|
-
value:
|
|
10455
|
+
value: 102,
|
|
10230
10456
|
unit: "px"
|
|
10231
10457
|
},
|
|
10232
10458
|
$type: "dimension"
|
|
10233
10459
|
},
|
|
10234
10460
|
"28": {
|
|
10235
10461
|
$value: {
|
|
10236
|
-
value:
|
|
10462
|
+
value: 118,
|
|
10237
10463
|
unit: "px"
|
|
10238
10464
|
},
|
|
10239
10465
|
$type: "dimension"
|
|
10240
10466
|
},
|
|
10241
10467
|
"32": {
|
|
10242
10468
|
$value: {
|
|
10243
|
-
value:
|
|
10469
|
+
value: 134,
|
|
10244
10470
|
unit: "px"
|
|
10245
10471
|
},
|
|
10246
10472
|
$type: "dimension"
|
|
10247
10473
|
},
|
|
10248
10474
|
"36": {
|
|
10249
10475
|
$value: {
|
|
10250
|
-
value:
|
|
10476
|
+
value: 150,
|
|
10251
10477
|
unit: "px"
|
|
10252
10478
|
},
|
|
10253
10479
|
$type: "dimension"
|
|
10254
10480
|
},
|
|
10255
10481
|
"40": {
|
|
10256
10482
|
$value: {
|
|
10257
|
-
value:
|
|
10483
|
+
value: 166,
|
|
10258
10484
|
unit: "px"
|
|
10259
10485
|
},
|
|
10260
10486
|
$type: "dimension"
|
|
10261
10487
|
},
|
|
10262
10488
|
"44": {
|
|
10263
10489
|
$value: {
|
|
10264
|
-
value:
|
|
10490
|
+
value: 182,
|
|
10265
10491
|
unit: "px"
|
|
10266
10492
|
},
|
|
10267
10493
|
$type: "dimension"
|
|
10268
10494
|
},
|
|
10269
10495
|
"48": {
|
|
10270
10496
|
$value: {
|
|
10271
|
-
value:
|
|
10497
|
+
value: 198,
|
|
10272
10498
|
unit: "px"
|
|
10273
10499
|
},
|
|
10274
10500
|
$type: "dimension"
|
|
10275
10501
|
},
|
|
10276
10502
|
"52": {
|
|
10277
10503
|
$value: {
|
|
10278
|
-
value:
|
|
10504
|
+
value: 214,
|
|
10279
10505
|
unit: "px"
|
|
10280
10506
|
},
|
|
10281
10507
|
$type: "dimension"
|
|
10282
10508
|
},
|
|
10283
10509
|
"56": {
|
|
10284
10510
|
$value: {
|
|
10285
|
-
value:
|
|
10511
|
+
value: 230,
|
|
10286
10512
|
unit: "px"
|
|
10287
10513
|
},
|
|
10288
10514
|
$type: "dimension"
|
|
10289
10515
|
},
|
|
10290
10516
|
"60": {
|
|
10291
10517
|
$value: {
|
|
10292
|
-
value:
|
|
10518
|
+
value: 246,
|
|
10293
10519
|
unit: "px"
|
|
10294
10520
|
},
|
|
10295
10521
|
$type: "dimension"
|
|
10296
10522
|
},
|
|
10297
10523
|
"64": {
|
|
10298
10524
|
$value: {
|
|
10299
|
-
value:
|
|
10525
|
+
value: 262,
|
|
10300
10526
|
unit: "px"
|
|
10301
10527
|
},
|
|
10302
10528
|
$type: "dimension"
|
|
10303
10529
|
},
|
|
10304
10530
|
"72": {
|
|
10305
10531
|
$value: {
|
|
10306
|
-
value:
|
|
10532
|
+
value: 294,
|
|
10307
10533
|
unit: "px"
|
|
10308
10534
|
},
|
|
10309
10535
|
$type: "dimension"
|
|
10310
10536
|
},
|
|
10311
10537
|
"80": {
|
|
10312
10538
|
$value: {
|
|
10313
|
-
value:
|
|
10539
|
+
value: 326,
|
|
10314
10540
|
unit: "px"
|
|
10315
10541
|
},
|
|
10316
10542
|
$type: "dimension"
|
|
10317
10543
|
},
|
|
10318
10544
|
"96": {
|
|
10319
10545
|
$value: {
|
|
10320
|
-
value:
|
|
10546
|
+
value: 390,
|
|
10321
10547
|
unit: "px"
|
|
10322
10548
|
},
|
|
10323
10549
|
$type: "dimension"
|
|
@@ -10338,14 +10564,14 @@ var spacing_spacious_default = {
|
|
|
10338
10564
|
},
|
|
10339
10565
|
"2_5": {
|
|
10340
10566
|
$value: {
|
|
10341
|
-
value:
|
|
10567
|
+
value: 11,
|
|
10342
10568
|
unit: "px"
|
|
10343
10569
|
},
|
|
10344
10570
|
$type: "dimension"
|
|
10345
10571
|
},
|
|
10346
10572
|
"3_5": {
|
|
10347
10573
|
$value: {
|
|
10348
|
-
value:
|
|
10574
|
+
value: 17,
|
|
10349
10575
|
unit: "px"
|
|
10350
10576
|
},
|
|
10351
10577
|
$type: "dimension"
|
|
@@ -10353,33 +10579,21 @@ var spacing_spacious_default = {
|
|
|
10353
10579
|
},
|
|
10354
10580
|
container: {
|
|
10355
10581
|
p: {
|
|
10356
|
-
$value: {
|
|
10357
|
-
value: 40,
|
|
10358
|
-
unit: "px"
|
|
10359
|
-
},
|
|
10582
|
+
$value: "{spacing.6}",
|
|
10360
10583
|
$type: "dimension"
|
|
10361
10584
|
},
|
|
10362
10585
|
gap: {
|
|
10363
|
-
$value: {
|
|
10364
|
-
value: 24,
|
|
10365
|
-
unit: "px"
|
|
10366
|
-
},
|
|
10586
|
+
$value: "{spacing.4}",
|
|
10367
10587
|
$type: "dimension"
|
|
10368
10588
|
}
|
|
10369
10589
|
},
|
|
10370
10590
|
layout: {
|
|
10371
10591
|
"section-gap": {
|
|
10372
|
-
$value: {
|
|
10373
|
-
value: 56,
|
|
10374
|
-
unit: "px"
|
|
10375
|
-
},
|
|
10592
|
+
$value: "{spacing.8}",
|
|
10376
10593
|
$type: "dimension"
|
|
10377
10594
|
},
|
|
10378
10595
|
"stack-gap": {
|
|
10379
|
-
$value: {
|
|
10380
|
-
value: 16,
|
|
10381
|
-
unit: "px"
|
|
10382
|
-
},
|
|
10596
|
+
$value: "{spacing.2}",
|
|
10383
10597
|
$type: "dimension"
|
|
10384
10598
|
}
|
|
10385
10599
|
}
|
|
@@ -10411,189 +10625,189 @@ var spacing_tight_default = {
|
|
|
10411
10625
|
},
|
|
10412
10626
|
"3": {
|
|
10413
10627
|
$value: {
|
|
10414
|
-
value:
|
|
10628
|
+
value: 11,
|
|
10415
10629
|
unit: "px"
|
|
10416
10630
|
},
|
|
10417
10631
|
$type: "dimension"
|
|
10418
10632
|
},
|
|
10419
10633
|
"4": {
|
|
10420
10634
|
$value: {
|
|
10421
|
-
value:
|
|
10635
|
+
value: 14,
|
|
10422
10636
|
unit: "px"
|
|
10423
10637
|
},
|
|
10424
10638
|
$type: "dimension"
|
|
10425
10639
|
},
|
|
10426
10640
|
"5": {
|
|
10427
10641
|
$value: {
|
|
10428
|
-
value:
|
|
10642
|
+
value: 17,
|
|
10429
10643
|
unit: "px"
|
|
10430
10644
|
},
|
|
10431
10645
|
$type: "dimension"
|
|
10432
10646
|
},
|
|
10433
10647
|
"6": {
|
|
10434
10648
|
$value: {
|
|
10435
|
-
value:
|
|
10649
|
+
value: 20,
|
|
10436
10650
|
unit: "px"
|
|
10437
10651
|
},
|
|
10438
10652
|
$type: "dimension"
|
|
10439
10653
|
},
|
|
10440
10654
|
"7": {
|
|
10441
10655
|
$value: {
|
|
10442
|
-
value:
|
|
10656
|
+
value: 24,
|
|
10443
10657
|
unit: "px"
|
|
10444
10658
|
},
|
|
10445
10659
|
$type: "dimension"
|
|
10446
10660
|
},
|
|
10447
10661
|
"8": {
|
|
10448
10662
|
$value: {
|
|
10449
|
-
value:
|
|
10663
|
+
value: 28,
|
|
10450
10664
|
unit: "px"
|
|
10451
10665
|
},
|
|
10452
10666
|
$type: "dimension"
|
|
10453
10667
|
},
|
|
10454
10668
|
"9": {
|
|
10455
10669
|
$value: {
|
|
10456
|
-
value:
|
|
10670
|
+
value: 32,
|
|
10457
10671
|
unit: "px"
|
|
10458
10672
|
},
|
|
10459
10673
|
$type: "dimension"
|
|
10460
10674
|
},
|
|
10461
10675
|
"10": {
|
|
10462
10676
|
$value: {
|
|
10463
|
-
value:
|
|
10677
|
+
value: 36,
|
|
10464
10678
|
unit: "px"
|
|
10465
10679
|
},
|
|
10466
10680
|
$type: "dimension"
|
|
10467
10681
|
},
|
|
10468
10682
|
"11": {
|
|
10469
10683
|
$value: {
|
|
10470
|
-
value:
|
|
10684
|
+
value: 40,
|
|
10471
10685
|
unit: "px"
|
|
10472
10686
|
},
|
|
10473
10687
|
$type: "dimension"
|
|
10474
10688
|
},
|
|
10475
10689
|
"12": {
|
|
10476
10690
|
$value: {
|
|
10477
|
-
value:
|
|
10691
|
+
value: 44,
|
|
10478
10692
|
unit: "px"
|
|
10479
10693
|
},
|
|
10480
10694
|
$type: "dimension"
|
|
10481
10695
|
},
|
|
10482
10696
|
"14": {
|
|
10483
10697
|
$value: {
|
|
10484
|
-
value:
|
|
10698
|
+
value: 52,
|
|
10485
10699
|
unit: "px"
|
|
10486
10700
|
},
|
|
10487
10701
|
$type: "dimension"
|
|
10488
10702
|
},
|
|
10489
10703
|
"16": {
|
|
10490
10704
|
$value: {
|
|
10491
|
-
value:
|
|
10705
|
+
value: 60,
|
|
10492
10706
|
unit: "px"
|
|
10493
10707
|
},
|
|
10494
10708
|
$type: "dimension"
|
|
10495
10709
|
},
|
|
10496
10710
|
"20": {
|
|
10497
10711
|
$value: {
|
|
10498
|
-
value:
|
|
10712
|
+
value: 76,
|
|
10499
10713
|
unit: "px"
|
|
10500
10714
|
},
|
|
10501
10715
|
$type: "dimension"
|
|
10502
10716
|
},
|
|
10503
10717
|
"24": {
|
|
10504
10718
|
$value: {
|
|
10505
|
-
value:
|
|
10719
|
+
value: 92,
|
|
10506
10720
|
unit: "px"
|
|
10507
10721
|
},
|
|
10508
10722
|
$type: "dimension"
|
|
10509
10723
|
},
|
|
10510
10724
|
"28": {
|
|
10511
10725
|
$value: {
|
|
10512
|
-
value:
|
|
10726
|
+
value: 108,
|
|
10513
10727
|
unit: "px"
|
|
10514
10728
|
},
|
|
10515
10729
|
$type: "dimension"
|
|
10516
10730
|
},
|
|
10517
10731
|
"32": {
|
|
10518
10732
|
$value: {
|
|
10519
|
-
value:
|
|
10733
|
+
value: 124,
|
|
10520
10734
|
unit: "px"
|
|
10521
10735
|
},
|
|
10522
10736
|
$type: "dimension"
|
|
10523
10737
|
},
|
|
10524
10738
|
"36": {
|
|
10525
10739
|
$value: {
|
|
10526
|
-
value:
|
|
10740
|
+
value: 140,
|
|
10527
10741
|
unit: "px"
|
|
10528
10742
|
},
|
|
10529
10743
|
$type: "dimension"
|
|
10530
10744
|
},
|
|
10531
10745
|
"40": {
|
|
10532
10746
|
$value: {
|
|
10533
|
-
value:
|
|
10747
|
+
value: 156,
|
|
10534
10748
|
unit: "px"
|
|
10535
10749
|
},
|
|
10536
10750
|
$type: "dimension"
|
|
10537
10751
|
},
|
|
10538
10752
|
"44": {
|
|
10539
10753
|
$value: {
|
|
10540
|
-
value:
|
|
10754
|
+
value: 172,
|
|
10541
10755
|
unit: "px"
|
|
10542
10756
|
},
|
|
10543
10757
|
$type: "dimension"
|
|
10544
10758
|
},
|
|
10545
10759
|
"48": {
|
|
10546
10760
|
$value: {
|
|
10547
|
-
value:
|
|
10761
|
+
value: 188,
|
|
10548
10762
|
unit: "px"
|
|
10549
10763
|
},
|
|
10550
10764
|
$type: "dimension"
|
|
10551
10765
|
},
|
|
10552
10766
|
"52": {
|
|
10553
10767
|
$value: {
|
|
10554
|
-
value:
|
|
10768
|
+
value: 204,
|
|
10555
10769
|
unit: "px"
|
|
10556
10770
|
},
|
|
10557
10771
|
$type: "dimension"
|
|
10558
10772
|
},
|
|
10559
10773
|
"56": {
|
|
10560
10774
|
$value: {
|
|
10561
|
-
value:
|
|
10775
|
+
value: 220,
|
|
10562
10776
|
unit: "px"
|
|
10563
10777
|
},
|
|
10564
10778
|
$type: "dimension"
|
|
10565
10779
|
},
|
|
10566
10780
|
"60": {
|
|
10567
10781
|
$value: {
|
|
10568
|
-
value:
|
|
10782
|
+
value: 236,
|
|
10569
10783
|
unit: "px"
|
|
10570
10784
|
},
|
|
10571
10785
|
$type: "dimension"
|
|
10572
10786
|
},
|
|
10573
10787
|
"64": {
|
|
10574
10788
|
$value: {
|
|
10575
|
-
value:
|
|
10789
|
+
value: 252,
|
|
10576
10790
|
unit: "px"
|
|
10577
10791
|
},
|
|
10578
10792
|
$type: "dimension"
|
|
10579
10793
|
},
|
|
10580
10794
|
"72": {
|
|
10581
10795
|
$value: {
|
|
10582
|
-
value:
|
|
10796
|
+
value: 284,
|
|
10583
10797
|
unit: "px"
|
|
10584
10798
|
},
|
|
10585
10799
|
$type: "dimension"
|
|
10586
10800
|
},
|
|
10587
10801
|
"80": {
|
|
10588
10802
|
$value: {
|
|
10589
|
-
value:
|
|
10803
|
+
value: 316,
|
|
10590
10804
|
unit: "px"
|
|
10591
10805
|
},
|
|
10592
10806
|
$type: "dimension"
|
|
10593
10807
|
},
|
|
10594
10808
|
"96": {
|
|
10595
10809
|
$value: {
|
|
10596
|
-
value:
|
|
10810
|
+
value: 380,
|
|
10597
10811
|
unit: "px"
|
|
10598
10812
|
},
|
|
10599
10813
|
$type: "dimension"
|
|
@@ -10621,7 +10835,7 @@ var spacing_tight_default = {
|
|
|
10621
10835
|
},
|
|
10622
10836
|
"3_5": {
|
|
10623
10837
|
$value: {
|
|
10624
|
-
value:
|
|
10838
|
+
value: 13,
|
|
10625
10839
|
unit: "px"
|
|
10626
10840
|
},
|
|
10627
10841
|
$type: "dimension"
|
|
@@ -10629,33 +10843,21 @@ var spacing_tight_default = {
|
|
|
10629
10843
|
},
|
|
10630
10844
|
container: {
|
|
10631
10845
|
p: {
|
|
10632
|
-
$value: {
|
|
10633
|
-
value: 24,
|
|
10634
|
-
unit: "px"
|
|
10635
|
-
},
|
|
10846
|
+
$value: "{spacing.6}",
|
|
10636
10847
|
$type: "dimension"
|
|
10637
10848
|
},
|
|
10638
10849
|
gap: {
|
|
10639
|
-
$value: {
|
|
10640
|
-
value: 16,
|
|
10641
|
-
unit: "px"
|
|
10642
|
-
},
|
|
10850
|
+
$value: "{spacing.4}",
|
|
10643
10851
|
$type: "dimension"
|
|
10644
10852
|
}
|
|
10645
10853
|
},
|
|
10646
10854
|
layout: {
|
|
10647
10855
|
"section-gap": {
|
|
10648
|
-
$value: {
|
|
10649
|
-
value: 32,
|
|
10650
|
-
unit: "px"
|
|
10651
|
-
},
|
|
10856
|
+
$value: "{spacing.8}",
|
|
10652
10857
|
$type: "dimension"
|
|
10653
10858
|
},
|
|
10654
10859
|
"stack-gap": {
|
|
10655
|
-
$value: {
|
|
10656
|
-
value: 8,
|
|
10657
|
-
unit: "px"
|
|
10658
|
-
},
|
|
10860
|
+
$value: "{spacing.2}",
|
|
10659
10861
|
$type: "dimension"
|
|
10660
10862
|
}
|
|
10661
10863
|
}
|
|
@@ -11003,7 +11205,7 @@ var typography_default = {
|
|
|
11003
11205
|
$type: "typography",
|
|
11004
11206
|
$value: {
|
|
11005
11207
|
fontFamily: "{family.font-mono}",
|
|
11006
|
-
fontSize: "{size
|
|
11208
|
+
fontSize: "{code.size}",
|
|
11007
11209
|
fontWeight: "{weight.normal}",
|
|
11008
11210
|
lineHeight: "{line-height.sm}",
|
|
11009
11211
|
letterSpacing: {
|
|
@@ -11016,7 +11218,7 @@ var typography_default = {
|
|
|
11016
11218
|
$type: "typography",
|
|
11017
11219
|
$value: {
|
|
11018
11220
|
fontFamily: "{family.font-mono}",
|
|
11019
|
-
fontSize: "{size
|
|
11221
|
+
fontSize: "{code.size}",
|
|
11020
11222
|
fontWeight: "{weight.semibold}",
|
|
11021
11223
|
lineHeight: "auto",
|
|
11022
11224
|
letterSpacing: {
|
|
@@ -11034,6 +11236,7 @@ var TOKEN_FILES = {
|
|
|
11034
11236
|
"primitives/borderwidth/borderwidth-normal.json": borderwidth_normal_default,
|
|
11035
11237
|
"primitives/borderwidth/borderwidth-strong.json": borderwidth_strong_default,
|
|
11036
11238
|
"primitives/color.json": color_default,
|
|
11239
|
+
"primitives/icon.json": icon_default,
|
|
11037
11240
|
"primitives/motion/motion-snappy.json": motion_snappy_default,
|
|
11038
11241
|
"primitives/radius/radius-extra-round.json": radius_extra_round_default,
|
|
11039
11242
|
"primitives/radius/radius-round.json": radius_round_default,
|
|
@@ -11067,6 +11270,7 @@ var TOKEN_FILES = {
|
|
|
11067
11270
|
var PRIMITIVE_FAMILIES = [
|
|
11068
11271
|
"borderwidth",
|
|
11069
11272
|
"color",
|
|
11273
|
+
"icon",
|
|
11070
11274
|
"motion",
|
|
11071
11275
|
"radius",
|
|
11072
11276
|
"shadow",
|
|
@@ -11078,34 +11282,40 @@ var BREAKPOINTS_FILE = "semantic/breakpoints.json";
|
|
|
11078
11282
|
var TYPOGRAPHY_STYLES_FILE = "styles/typography.json";
|
|
11079
11283
|
var SHADOW_STYLES_FILE = "styles/shadows.json";
|
|
11080
11284
|
var SINGLE_SOURCE = { mode: null, preset: null };
|
|
11081
|
-
var
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11285
|
+
var UI_SCALE = { kind: "scale", field: "uiScale" };
|
|
11286
|
+
var TEXT_SIZE = { kind: "scale", field: "textSize" };
|
|
11287
|
+
var FAMILY_CONTROLS = {
|
|
11288
|
+
spacing: [{ kind: "preset", field: "density" }, UI_SCALE],
|
|
11289
|
+
radius: [{ kind: "preset", field: "corners" }, UI_SCALE],
|
|
11290
|
+
borderwidth: [{ kind: "preset", field: "stroke" }],
|
|
11291
|
+
shadow: [{ kind: "preset", field: "elevation" }]
|
|
11086
11292
|
};
|
|
11087
|
-
function
|
|
11293
|
+
function typographyControls(path) {
|
|
11088
11294
|
const [group, key] = path;
|
|
11295
|
+
if (group === "code" && key === "size") {
|
|
11296
|
+
return [{ kind: "pref", field: "codeFontSize" }, UI_SCALE, TEXT_SIZE];
|
|
11297
|
+
}
|
|
11089
11298
|
if (group === "size" || group === "line-height") {
|
|
11090
|
-
return
|
|
11299
|
+
return [UI_SCALE, TEXT_SIZE];
|
|
11091
11300
|
}
|
|
11092
|
-
if (group !== "family") return
|
|
11093
|
-
if (key === "font-sans") return { kind: "pref", field: "uiFont" };
|
|
11094
|
-
if (key === "font-heading") return { kind: "pref", field: "headingFont" };
|
|
11095
|
-
if (key === "font-mono") return { kind: "pref", field: "codeFont" };
|
|
11096
|
-
return
|
|
11301
|
+
if (group !== "family") return [];
|
|
11302
|
+
if (key === "font-sans") return [{ kind: "pref", field: "uiFont" }];
|
|
11303
|
+
if (key === "font-heading") return [{ kind: "pref", field: "headingFont" }];
|
|
11304
|
+
if (key === "font-mono") return [{ kind: "pref", field: "codeFont" }];
|
|
11305
|
+
return [];
|
|
11097
11306
|
}
|
|
11098
|
-
function
|
|
11307
|
+
function leafControls({
|
|
11099
11308
|
family,
|
|
11100
11309
|
file,
|
|
11101
11310
|
preset,
|
|
11102
11311
|
leaf
|
|
11103
11312
|
}) {
|
|
11104
11313
|
if (family === "typography" && file.startsWith("primitives/")) {
|
|
11105
|
-
return
|
|
11314
|
+
return typographyControls(leaf.path);
|
|
11106
11315
|
}
|
|
11107
|
-
if (
|
|
11108
|
-
return
|
|
11316
|
+
if (family === "icon") return leaf.path[0] === "glyph" ? [UI_SCALE] : [];
|
|
11317
|
+
if (preset === null) return [];
|
|
11318
|
+
return FAMILY_CONTROLS[family] ?? [];
|
|
11109
11319
|
}
|
|
11110
11320
|
var cssVariable = (name) => ({
|
|
11111
11321
|
kind: "css-variable",
|
|
@@ -11208,7 +11418,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11208
11418
|
type: leaf.type,
|
|
11209
11419
|
description: leaf.description ?? null,
|
|
11210
11420
|
aliases,
|
|
11211
|
-
|
|
11421
|
+
controls: leafControls(authored),
|
|
11212
11422
|
variants: []
|
|
11213
11423
|
};
|
|
11214
11424
|
token2.variants.push({
|
|
@@ -11226,6 +11436,7 @@ function authoredTokens(leaves, lookup, entryFor) {
|
|
|
11226
11436
|
}
|
|
11227
11437
|
function primitiveAliases(family, path) {
|
|
11228
11438
|
const key = path.join("-");
|
|
11439
|
+
if (family === "icon") return [utility(iconUtility(path).name)];
|
|
11229
11440
|
if (family === "radius") return [cssVariable(`--radius-${key}`)];
|
|
11230
11441
|
if (family === "borderwidth") {
|
|
11231
11442
|
return [
|
|
@@ -11272,18 +11483,29 @@ function primitiveEntry(lookup) {
|
|
|
11272
11483
|
};
|
|
11273
11484
|
};
|
|
11274
11485
|
}
|
|
11275
|
-
function
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11486
|
+
function spacingName(path) {
|
|
11487
|
+
return `--nx-${path.join("-")}`;
|
|
11488
|
+
}
|
|
11489
|
+
function spacingStepLookup(leaves) {
|
|
11490
|
+
return new Map(
|
|
11491
|
+
leaves.filter(({ leaf }) => spacingTokenKind(leaf.path) === "numeric").map(({ leaf }) => {
|
|
11492
|
+
const name = spacingName(leaf.path);
|
|
11493
|
+
return [
|
|
11494
|
+
leaf.path.join("."),
|
|
11495
|
+
{ cssName: name.slice("--".length), name }
|
|
11496
|
+
];
|
|
11497
|
+
})
|
|
11498
|
+
);
|
|
11499
|
+
}
|
|
11500
|
+
function spacingEntry({ file, leaf }) {
|
|
11501
|
+
const name = spacingName(leaf.path);
|
|
11502
|
+
const alias = spacingTokenKind(leaf.path) === "role" ? utility(spacingRoleUtility(leaf.path).name) : cssVariable(`--${leaf.path.join("-")}`);
|
|
11503
|
+
const value = spacingValue(leaf, extractTokens(TOKEN_FILES[file]));
|
|
11279
11504
|
return {
|
|
11280
11505
|
name,
|
|
11281
11506
|
aliases: [alias],
|
|
11282
11507
|
declarations: [
|
|
11283
|
-
{
|
|
11284
|
-
property: name,
|
|
11285
|
-
value: formatTokenValue(leaf.value, leaf.type, leaf.path)
|
|
11286
|
-
}
|
|
11508
|
+
{ property: name, value: formatTokenValue(value, leaf.type, leaf.path) }
|
|
11287
11509
|
]
|
|
11288
11510
|
};
|
|
11289
11511
|
}
|
|
@@ -11348,7 +11570,7 @@ function shadowStyleTokens(layers, lookup) {
|
|
|
11348
11570
|
type: leaf.type,
|
|
11349
11571
|
description: leaf.description ?? null,
|
|
11350
11572
|
aliases: [cssVariable(`--${key}`)],
|
|
11351
|
-
|
|
11573
|
+
controls: FAMILY_CONTROLS.shadow ?? [],
|
|
11352
11574
|
variants: sets.map(({ preset, mode, values }) => ({
|
|
11353
11575
|
mode,
|
|
11354
11576
|
preset,
|
|
@@ -11368,13 +11590,6 @@ function styleLeaves(family, file) {
|
|
|
11368
11590
|
({ leaf }) => leaf.type === family
|
|
11369
11591
|
);
|
|
11370
11592
|
}
|
|
11371
|
-
function runtimeAppearance(mode) {
|
|
11372
|
-
return {
|
|
11373
|
-
...DEFAULT_NXDS_APPEARANCE,
|
|
11374
|
-
prefs: { ...DEFAULT_NXDS_APPEARANCE.prefs },
|
|
11375
|
-
mode
|
|
11376
|
-
};
|
|
11377
|
-
}
|
|
11378
11593
|
function runtimeColorAliases(name) {
|
|
11379
11594
|
const aliases = [cssVariable(`--color-${name}`)];
|
|
11380
11595
|
const borderName = borderColorAliasName(name);
|
|
@@ -11383,15 +11598,14 @@ function runtimeColorAliases(name) {
|
|
|
11383
11598
|
}
|
|
11384
11599
|
return aliases;
|
|
11385
11600
|
}
|
|
11386
|
-
function runtimeColorTokens() {
|
|
11387
|
-
const
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
});
|
|
11601
|
+
function runtimeColorTokens(appearance) {
|
|
11602
|
+
const { brandColor, surfaceTone, lightContrast, darkContrast } = appearance;
|
|
11603
|
+
const colors = { brandColor, surfaceTone, lightContrast, darkContrast };
|
|
11604
|
+
const themes = RUNTIME_MODES.map((mode) => ({
|
|
11605
|
+
mode,
|
|
11606
|
+
appearance: { ...colors, mode },
|
|
11607
|
+
values: deriveThemeMode(createNxdsThemeContract(colors), mode)
|
|
11608
|
+
}));
|
|
11395
11609
|
return SEMANTIC_TOKEN_REGISTRY.map(({ name, category }) => {
|
|
11396
11610
|
const property = `--nx-color-${name}`;
|
|
11397
11611
|
return {
|
|
@@ -11401,8 +11615,8 @@ function runtimeColorTokens() {
|
|
|
11401
11615
|
type: "color",
|
|
11402
11616
|
description: RUNTIME_COLOR_DESCRIPTIONS[name] ?? null,
|
|
11403
11617
|
aliases: runtimeColorAliases(name),
|
|
11404
|
-
|
|
11405
|
-
variants: themes.map(({ mode, appearance, values }) => {
|
|
11618
|
+
controls: [],
|
|
11619
|
+
variants: themes.map(({ mode, appearance: appearance2, values }) => {
|
|
11406
11620
|
const value = values[property];
|
|
11407
11621
|
if (value === void 0) {
|
|
11408
11622
|
throw new Error(`catalogue: deriveTheme emitted no ${property}`);
|
|
@@ -11411,7 +11625,7 @@ function runtimeColorTokens() {
|
|
|
11411
11625
|
mode,
|
|
11412
11626
|
preset: null,
|
|
11413
11627
|
source: null,
|
|
11414
|
-
appearance,
|
|
11628
|
+
appearance: appearance2,
|
|
11415
11629
|
authoredValue: null,
|
|
11416
11630
|
declarations: [{ property, value }],
|
|
11417
11631
|
references: []
|
|
@@ -11420,18 +11634,130 @@ function runtimeColorTokens() {
|
|
|
11420
11634
|
};
|
|
11421
11635
|
});
|
|
11422
11636
|
}
|
|
11423
|
-
function
|
|
11637
|
+
function uiScaleToken({ cssName, value }, {
|
|
11638
|
+
family,
|
|
11639
|
+
type,
|
|
11640
|
+
description
|
|
11641
|
+
}) {
|
|
11642
|
+
const name = `--nx-${cssName}`;
|
|
11643
|
+
return {
|
|
11644
|
+
name,
|
|
11645
|
+
family,
|
|
11646
|
+
group: family,
|
|
11647
|
+
type,
|
|
11648
|
+
description,
|
|
11649
|
+
aliases: [],
|
|
11650
|
+
controls: [UI_SCALE],
|
|
11651
|
+
variants: [
|
|
11652
|
+
{
|
|
11653
|
+
mode: null,
|
|
11654
|
+
preset: null,
|
|
11655
|
+
source: null,
|
|
11656
|
+
appearance: null,
|
|
11657
|
+
authoredValue: null,
|
|
11658
|
+
declarations: [{ property: name, value }],
|
|
11659
|
+
references: []
|
|
11660
|
+
}
|
|
11661
|
+
]
|
|
11662
|
+
};
|
|
11663
|
+
}
|
|
11664
|
+
function uiScaleEntry(token2) {
|
|
11665
|
+
if (token2.cssName === "ui-scale") {
|
|
11666
|
+
return uiScaleToken(token2, {
|
|
11667
|
+
family: "ui-scale",
|
|
11668
|
+
type: "number",
|
|
11669
|
+
description: "The UI scale as a factor of the Default scale. Multiply a fixed size by it, such as `calc(16rem*var(--nx-ui-scale))`, so the size follows the UI scale."
|
|
11670
|
+
});
|
|
11671
|
+
}
|
|
11672
|
+
const width = token2.cssName.replace("container-", "");
|
|
11673
|
+
return uiScaleToken(token2, {
|
|
11674
|
+
family: "width",
|
|
11675
|
+
type: "dimension",
|
|
11676
|
+
description: `The \`nx:max-w-${width}\` and \`nx:w-${width}\` width. It follows the UI scale.`
|
|
11677
|
+
});
|
|
11678
|
+
}
|
|
11679
|
+
var CSS_NAME_START = "--nx-".length;
|
|
11680
|
+
function variantValue(variant) {
|
|
11681
|
+
return variant?.declarations[0]?.value;
|
|
11682
|
+
}
|
|
11683
|
+
function scaledPresets(tokens, family, factor) {
|
|
11684
|
+
const modes = /* @__PURE__ */ new Map();
|
|
11685
|
+
for (const token2 of tokens.filter((each) => each.family === family)) {
|
|
11686
|
+
for (const variant of token2.variants) {
|
|
11687
|
+
const value = variantValue(variant);
|
|
11688
|
+
if (variant.preset === null || value === void 0) continue;
|
|
11689
|
+
const target = variant.references[0]?.target;
|
|
11690
|
+
const mode = modes.get(variant.preset) ?? [];
|
|
11691
|
+
mode.push({
|
|
11692
|
+
cssName: token2.name.slice(CSS_NAME_START),
|
|
11693
|
+
value,
|
|
11694
|
+
...target && { step: target.slice(CSS_NAME_START) }
|
|
11695
|
+
});
|
|
11696
|
+
modes.set(variant.preset, mode);
|
|
11697
|
+
}
|
|
11698
|
+
}
|
|
11699
|
+
return [...modes].flatMap(
|
|
11700
|
+
([preset, mode]) => scaleMode(mode, factor).map(({ cssName, value }) => [
|
|
11701
|
+
`${preset}/--nx-${cssName}`,
|
|
11702
|
+
value
|
|
11703
|
+
])
|
|
11704
|
+
);
|
|
11705
|
+
}
|
|
11706
|
+
function sizeValues(tokens, { uiScale, textSize }) {
|
|
11707
|
+
const base = uiScaleBase(
|
|
11708
|
+
TOKEN_FILES["primitives/typography/typography-default.json"],
|
|
11709
|
+
TOKEN_FILES["primitives/icon.json"]
|
|
11710
|
+
);
|
|
11711
|
+
const selectors = [
|
|
11712
|
+
uiScaleSelector(uiScale),
|
|
11713
|
+
textSizeSelector(uiScale, textSize)
|
|
11714
|
+
];
|
|
11715
|
+
const values = [...scaleBlocks(base), ...textSizeBlocks(base)].filter((block) => block.selectors.some((each) => selectors.includes(each))).flatMap((block) => block.tokens).map(({ cssName, value }) => [`--nx-${cssName}`, value]);
|
|
11716
|
+
if (uiScale === "default") return values;
|
|
11717
|
+
const { spacing } = UI_SCALES[uiScale];
|
|
11718
|
+
return [
|
|
11719
|
+
...values,
|
|
11720
|
+
...scaledPresets(tokens, "spacing", spacing),
|
|
11721
|
+
...scaledPresets(tokens, "radius", spacing)
|
|
11722
|
+
];
|
|
11723
|
+
}
|
|
11724
|
+
function atSizes(tokens, appearance) {
|
|
11725
|
+
const { uiScale, textSize, prefs } = appearance;
|
|
11726
|
+
const scaled = new Map([
|
|
11727
|
+
...sizeValues(tokens, appearance),
|
|
11728
|
+
[
|
|
11729
|
+
"--nx-typography-code-size",
|
|
11730
|
+
`${scaleText(prefs.codeFontSize, uiScale, textSize)}px`
|
|
11731
|
+
]
|
|
11732
|
+
]);
|
|
11733
|
+
return tokens.map((token2) => ({
|
|
11734
|
+
...token2,
|
|
11735
|
+
variants: token2.variants.map((variant) => {
|
|
11736
|
+
const value = scaled.get(`${variant.preset}/${token2.name}`) ?? scaled.get(token2.name);
|
|
11737
|
+
if (value === void 0) return variant;
|
|
11738
|
+
return {
|
|
11739
|
+
...variant,
|
|
11740
|
+
declarations: variant.declarations.map((each) => ({
|
|
11741
|
+
...each,
|
|
11742
|
+
value
|
|
11743
|
+
}))
|
|
11744
|
+
};
|
|
11745
|
+
})
|
|
11746
|
+
}));
|
|
11747
|
+
}
|
|
11748
|
+
function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
|
|
11424
11749
|
const primitives = PRIMITIVE_FAMILIES.flatMap(primitiveLeaves);
|
|
11425
11750
|
const lookup = primitiveLookup(primitives);
|
|
11426
11751
|
const shadowLayers = primitives.filter(({ family }) => family === "shadow");
|
|
11427
|
-
|
|
11752
|
+
const spacing = spacingLeaves();
|
|
11753
|
+
const tokens = [
|
|
11428
11754
|
...authoredTokens(
|
|
11429
11755
|
primitives.filter((leaf) => leaf.family !== "shadow"),
|
|
11430
11756
|
lookup,
|
|
11431
11757
|
primitiveEntry(lookup)
|
|
11432
11758
|
),
|
|
11433
|
-
...runtimeColorTokens(),
|
|
11434
|
-
...authoredTokens(
|
|
11759
|
+
...runtimeColorTokens(appearance),
|
|
11760
|
+
...authoredTokens(spacing, spacingStepLookup(spacing), spacingEntry),
|
|
11435
11761
|
...authoredTokens(
|
|
11436
11762
|
fileLeaves("z-index", Z_INDEX_FILE, SINGLE_SOURCE),
|
|
11437
11763
|
lookup,
|
|
@@ -11447,8 +11773,10 @@ function createTokenCatalogue() {
|
|
|
11447
11773
|
lookup,
|
|
11448
11774
|
typographyStyleEntry(lookup)
|
|
11449
11775
|
),
|
|
11450
|
-
...shadowStyleTokens(shadowLayers, lookup)
|
|
11776
|
+
...shadowStyleTokens(shadowLayers, lookup),
|
|
11777
|
+
...widthTokens(PAGE_WIDTHS_REM, "default").map(uiScaleEntry)
|
|
11451
11778
|
];
|
|
11779
|
+
return atSizes(tokens, appearance);
|
|
11452
11780
|
}
|
|
11453
11781
|
export {
|
|
11454
11782
|
DARK_SURFACE_LADDER,
|