@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.
@@ -27,329 +27,180 @@ __export(catalogue_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(catalogue_exports);
29
29
 
30
- // tokens/primitives/typography/typography-default.json
31
- var typography_default_default = {
32
- family: {
33
- "font-sans": {
34
- $value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
35
- $type: "fontFamily",
36
- $extensions: {
37
- "nx-font-source": {
38
- type: "system"
39
- }
40
- }
41
- },
42
- "font-heading": {
43
- $value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
44
- $type: "fontFamily",
45
- $extensions: {
46
- "nx-font-source": {
47
- type: "system"
48
- }
49
- }
50
- },
51
- "font-serif": {
52
- $value: "Georgia",
53
- $type: "fontFamily",
54
- $extensions: {
55
- "nx-font-source": {
56
- type: "system"
57
- }
58
- }
59
- },
60
- "font-mono": {
61
- $value: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
62
- $type: "fontFamily",
63
- $extensions: {
64
- "nx-font-source": {
65
- type: "system"
66
- }
67
- }
68
- }
69
- },
70
- size: {
71
- xxs: {
72
- $value: {
73
- value: 11,
74
- unit: "px"
75
- },
76
- $type: "dimension"
77
- },
78
- xs: {
79
- $value: {
80
- value: 12,
81
- unit: "px"
82
- },
83
- $type: "dimension"
84
- },
85
- sm: {
86
- $value: {
87
- value: 14,
88
- unit: "px"
89
- },
90
- $type: "dimension"
91
- },
92
- base: {
93
- $value: {
94
- value: 16,
95
- unit: "px"
96
- },
97
- $type: "dimension"
98
- },
99
- lg: {
100
- $value: {
101
- value: 18,
102
- unit: "px"
103
- },
104
- $type: "dimension"
105
- },
106
- xl: {
107
- $value: {
108
- value: 20,
109
- unit: "px"
110
- },
111
- $type: "dimension"
112
- },
113
- "2xl": {
114
- $value: {
115
- value: 24,
116
- unit: "px"
117
- },
118
- $type: "dimension"
119
- },
120
- "3xl": {
121
- $value: {
122
- value: 30,
123
- unit: "px"
124
- },
125
- $type: "dimension"
126
- },
127
- "4xl": {
128
- $value: {
129
- value: 36,
130
- unit: "px"
131
- },
132
- $type: "dimension"
133
- },
134
- "5xl": {
135
- $value: {
136
- value: 48,
137
- unit: "px"
138
- },
139
- $type: "dimension"
140
- },
141
- "6xl": {
142
- $value: {
143
- value: 60,
144
- unit: "px"
145
- },
146
- $type: "dimension"
147
- },
148
- "7xl": {
149
- $value: {
150
- value: 72,
151
- unit: "px"
152
- },
153
- $type: "dimension"
154
- },
155
- "8xl": {
156
- $value: {
157
- value: 96,
158
- unit: "px"
159
- },
160
- $type: "dimension"
161
- },
162
- "9xl": {
163
- $value: {
164
- value: 128,
165
- unit: "px"
166
- },
167
- $type: "dimension"
168
- }
169
- },
170
- weight: {
171
- thin: {
172
- $value: 100,
173
- $type: "fontWeight"
174
- },
175
- extralight: {
176
- $value: 200,
177
- $type: "fontWeight"
178
- },
179
- light: {
180
- $value: 300,
181
- $type: "fontWeight"
182
- },
183
- normal: {
184
- $value: 400,
185
- $type: "fontWeight"
186
- },
187
- medium: {
188
- $value: 500,
189
- $type: "fontWeight"
190
- },
191
- semibold: {
192
- $value: 600,
193
- $type: "fontWeight"
194
- },
195
- bold: {
196
- $value: 700,
197
- $type: "fontWeight"
198
- },
199
- extrabold: {
200
- $value: 800,
201
- $type: "fontWeight"
202
- },
203
- black: {
204
- $value: 900,
205
- $type: "fontWeight"
206
- }
207
- },
208
- "line-height": {
209
- xxs: {
210
- $value: {
211
- value: 12,
212
- unit: "px"
213
- },
214
- $type: "dimension"
215
- },
216
- xs: {
217
- $value: {
218
- value: 16,
219
- unit: "px"
220
- },
221
- $type: "dimension"
222
- },
223
- sm: {
224
- $value: {
225
- value: 20,
226
- unit: "px"
227
- },
228
- $type: "dimension"
229
- },
230
- base: {
231
- $value: {
232
- value: 24,
233
- unit: "px"
234
- },
235
- $type: "dimension"
236
- },
237
- lg: {
238
- $value: {
239
- value: 28,
240
- unit: "px"
241
- },
242
- $type: "dimension"
243
- },
244
- xl: {
245
- $value: {
246
- value: 28,
247
- unit: "px"
248
- },
249
- $type: "dimension"
250
- },
251
- "2xl": {
252
- $value: {
253
- value: 32,
254
- unit: "px"
255
- },
256
- $type: "dimension"
257
- },
258
- "3xl": {
259
- $value: {
260
- value: 36,
261
- unit: "px"
262
- },
263
- $type: "dimension"
264
- },
265
- "4xl": {
266
- $value: {
267
- value: 48,
268
- unit: "px"
269
- },
270
- $type: "dimension"
271
- },
272
- "5xl": {
273
- $value: {
274
- value: 48,
275
- unit: "px"
276
- },
277
- $type: "dimension"
278
- },
279
- "6xl": {
280
- $value: {
281
- value: 60,
282
- unit: "px"
283
- },
284
- $type: "dimension"
285
- },
286
- "7xl": {
287
- $value: {
288
- value: 72,
289
- unit: "px"
290
- },
291
- $type: "dimension"
292
- },
293
- "8xl": {
294
- $value: {
295
- value: 96,
296
- unit: "px"
297
- },
298
- $type: "dimension"
299
- },
300
- "9xl": {
301
- $value: {
302
- value: 128,
303
- unit: "px"
304
- },
305
- $type: "dimension"
306
- }
307
- },
308
- letterspacing: {
309
- tighter: {
310
- $value: {
311
- value: -0.800000011920929,
312
- unit: "px"
313
- },
314
- $type: "dimension"
315
- },
316
- tight: {
317
- $value: {
318
- value: -0.4000000059604645,
319
- unit: "px"
320
- },
321
- $type: "dimension"
322
- },
323
- normal: {
324
- $value: {
325
- value: 0,
326
- unit: "px"
327
- },
328
- $type: "dimension"
329
- },
330
- wide: {
331
- $value: {
332
- value: 0.4000000059604645,
333
- unit: "px"
334
- },
335
- $type: "dimension"
336
- },
337
- wider: {
338
- $value: {
339
- value: 0.800000011920929,
340
- unit: "px"
341
- },
342
- $type: "dimension"
343
- },
344
- widest: {
345
- $value: {
346
- value: 1.600000023841858,
347
- unit: "px"
348
- },
349
- $type: "dimension"
350
- }
30
+ // src/lib/token-scales.generated.ts
31
+ var PRIMITIVE_PALETTE_NAMES = [
32
+ "green",
33
+ "emerald",
34
+ "teal",
35
+ "cyan",
36
+ "sky",
37
+ "indigo",
38
+ "violet",
39
+ "purple",
40
+ "fuchsia",
41
+ "pink",
42
+ "slate",
43
+ "rose",
44
+ "lime",
45
+ "yellow",
46
+ "blue",
47
+ "gray",
48
+ "zinc",
49
+ "neutral",
50
+ "stone",
51
+ "red",
52
+ "orange",
53
+ "amber"
54
+ ];
55
+ var PAGE_WIDTHS_REM = {
56
+ "3xs": 16,
57
+ "2xs": 18,
58
+ xs: 20,
59
+ sm: 24,
60
+ md: 28,
61
+ lg: 32,
62
+ xl: 36,
63
+ "2xl": 42,
64
+ "3xl": 48,
65
+ "4xl": 56,
66
+ "5xl": 64,
67
+ "6xl": 72,
68
+ "7xl": 80
69
+ };
70
+
71
+ // src/token-source/ui-scale.ts
72
+ var UI_SCALES = {
73
+ small: { spacing: 0.9, text: 12 / 14, icon: 14 / 16 },
74
+ default: { spacing: 1, text: 1, icon: 1 },
75
+ large: { spacing: 1.1, text: 16 / 14, icon: 18 / 16 },
76
+ larger: { spacing: 1.25, text: 18 / 14, icon: 20 / 16 }
77
+ };
78
+ var NON_DEFAULT_UI_SCALES = Object.keys(UI_SCALES).filter((scale) => scale !== "default");
79
+ var uiScaleSelector = (scale) => `[data-ui-scale='${scale}']`;
80
+ var TEXT_SIZES = [12, 13, 14, 15, 16];
81
+ var DEFAULT_TEXT_SIZE = 14;
82
+ function textSizeAttr(scale, textSize) {
83
+ const sizeAttr = `[data-text-size='${textSize}']`;
84
+ return scale === "default" ? sizeAttr : `${uiScaleSelector(scale)}${sizeAttr}`;
85
+ }
86
+ function textSizeSelector(scale, textSize) {
87
+ if (textSize !== DEFAULT_TEXT_SIZE) return textSizeAttr(scale, textSize);
88
+ return scale === "default" ? null : uiScaleSelector(scale);
89
+ }
90
+ var FULL_RADIUS = "9999px";
91
+ var MIN_TEXT_PX = 8;
92
+ var px = (value) => Number.parseFloat(value);
93
+ var evenPx = (value) => 2 * Math.round(value / 2);
94
+ function scaleLength(value, factor) {
95
+ const scaled = value * factor;
96
+ return scaled >= 16 ? evenPx(scaled) : Math.round(scaled);
97
+ }
98
+ var textFactor = (scale, textSize) => UI_SCALES[scale].text * (textSize / DEFAULT_TEXT_SIZE);
99
+ function scaleText(size, scale, textSize = DEFAULT_TEXT_SIZE) {
100
+ return Math.max(MIN_TEXT_PX, Math.round(size * textFactor(scale, textSize)));
101
+ }
102
+ function scaleLineHeight(lineHeight, scale, textSize) {
103
+ return Math.max(
104
+ MIN_TEXT_PX,
105
+ evenPx(lineHeight * textFactor(scale, textSize))
106
+ );
107
+ }
108
+ function above(previous) {
109
+ const next = previous + 1;
110
+ return next >= 16 && next % 2 === 1 ? next + 1 : next;
111
+ }
112
+ var stepOf = (cssName) => Number(cssName.replace("spacing-", "").replace("_", "."));
113
+ function scaleMode(tokens, factor) {
114
+ const scaled = new Map(
115
+ tokens.filter(({ step }) => !step).map(({ cssName, value }) => [
116
+ cssName,
117
+ value === FULL_RADIUS ? value : `${scaleLength(px(value), factor)}px`
118
+ ])
119
+ );
120
+ const steps = [...scaled].filter(([cssName]) => /^spacing-\d/.test(cssName)).sort(([a], [b]) => stepOf(a) - stepOf(b));
121
+ let previous = -1;
122
+ for (const [cssName, value] of steps) {
123
+ const length = px(value) > previous ? px(value) : above(previous);
124
+ scaled.set(cssName, `${length}px`);
125
+ previous = length;
351
126
  }
352
- };
127
+ return tokens.map(({ cssName, step }) => {
128
+ const value = scaled.get(step ?? cssName);
129
+ if (value === void 0) {
130
+ throw new Error(
131
+ `scaleMode: ${cssName} references ${step}, which its mode lacks`
132
+ );
133
+ }
134
+ return { cssName, value };
135
+ });
136
+ }
137
+ function widthTokens(widths, scale) {
138
+ const factor = UI_SCALES[scale].spacing;
139
+ return [
140
+ { cssName: "ui-scale", value: String(factor) },
141
+ ...Object.entries(widths).map(([name, rem]) => ({
142
+ cssName: `container-${name}`,
143
+ value: `${Number((rem * factor).toFixed(4))}rem`
144
+ }))
145
+ ];
146
+ }
147
+ var groupValues = (group) => Object.fromEntries(
148
+ Object.entries(group).map(([name, token2]) => [name, token2.$value.value])
149
+ );
150
+ function uiScaleBase(typography, icon) {
151
+ return {
152
+ sizes: groupValues(typography.size),
153
+ lineHeights: groupValues(typography["line-height"]),
154
+ codeSize: typography.code.size.$value.value,
155
+ glyphs: groupValues(icon.glyph),
156
+ widths: PAGE_WIDTHS_REM
157
+ };
158
+ }
159
+ function typeTokens({ sizes, lineHeights, codeSize }, scale, textSize) {
160
+ return [
161
+ ...Object.entries(sizes).map(([name, size]) => ({
162
+ cssName: `typography-size-${name}`,
163
+ value: `${scaleText(size, scale, textSize)}px`
164
+ })),
165
+ ...Object.entries(lineHeights).map(([name, lineHeight]) => ({
166
+ cssName: `typography-line-height-${name}`,
167
+ value: `${scaleLineHeight(lineHeight, scale, textSize)}px`
168
+ })),
169
+ {
170
+ cssName: "typography-code-size",
171
+ value: `${scaleText(codeSize, scale, textSize)}px`
172
+ }
173
+ ];
174
+ }
175
+ function scaleBlocks(base) {
176
+ const { glyphs, widths } = base;
177
+ const root = { selectors: [":root"], tokens: widthTokens(widths, "default") };
178
+ return [
179
+ root,
180
+ ...NON_DEFAULT_UI_SCALES.map((scale) => {
181
+ const { icon } = UI_SCALES[scale];
182
+ const tokens = [
183
+ ...typeTokens(base, scale, DEFAULT_TEXT_SIZE),
184
+ ...Object.entries(glyphs).map(([name, glyph]) => ({
185
+ cssName: `icon-glyph-${name}`,
186
+ value: `${evenPx(glyph * icon)}px`
187
+ })),
188
+ ...widthTokens(widths, scale)
189
+ ];
190
+ return { selectors: [uiScaleSelector(scale)], tokens };
191
+ })
192
+ ];
193
+ }
194
+ function textSizeBlocks(base) {
195
+ return Object.keys(UI_SCALES).flatMap(
196
+ (scale) => TEXT_SIZES.filter((textSize) => textSize !== DEFAULT_TEXT_SIZE).map(
197
+ (textSize) => ({
198
+ selectors: [textSizeAttr(scale, textSize)],
199
+ tokens: typeTokens(base, scale, textSize)
200
+ })
201
+ )
202
+ );
203
+ }
353
204
 
354
205
  // src/lib/contrast.ts
355
206
  var import_apca_w32 = require("apca-w3");
@@ -1103,6 +954,13 @@ var BASE_TONE_SEEDS = {
1103
954
  dark: { background: "#111827", foreground: "#f9fafb" }
1104
955
  }
1105
956
  };
957
+ var UI_SCALE_OPTIONS = [
958
+ { value: "small", label: "Small" },
959
+ { value: "default", label: "Default" },
960
+ { value: "large", label: "Large" },
961
+ { value: "larger", label: "Larger" }
962
+ ];
963
+ var TEXT_SIZE_OPTIONS = TEXT_SIZES.map((value) => ({ value, label: `${value}px` }));
1106
964
  var DENSITY_OPTIONS = [
1107
965
  { value: "tight", label: "Tight" },
1108
966
  { value: "compact", label: "Compact" },
@@ -1136,6 +994,8 @@ var DEFAULT_NXDS_APPEARANCE = {
1136
994
  surfaceTone: "zinc",
1137
995
  lightContrast: 50,
1138
996
  darkContrast: 50,
997
+ uiScale: "default",
998
+ textSize: 14,
1139
999
  density: "default",
1140
1000
  corners: "subtle",
1141
1001
  elevation: "quiet",
@@ -1144,7 +1004,6 @@ var DEFAULT_NXDS_APPEARANCE = {
1144
1004
  uiFont: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
1145
1005
  headingFont: null,
1146
1006
  codeFont: 'ui-monospace, "SF Mono", Menlo, monospace',
1147
- uiFontSize: 14,
1148
1007
  codeFontSize: 12,
1149
1008
  reduceMotion: false,
1150
1009
  pointerCursors: false,
@@ -1154,6 +1013,10 @@ var DEFAULT_NXDS_APPEARANCE = {
1154
1013
  var SURFACE_TONES = new Set(
1155
1014
  BASE_TONE_OPTIONS.map((option) => option.value)
1156
1015
  );
1016
+ var SCALES = new Set(
1017
+ UI_SCALE_OPTIONS.map((option) => option.value)
1018
+ );
1019
+ var TEXT_SIZE_VALUES = new Set(TEXT_SIZES);
1157
1020
  var DENSITIES = new Set(
1158
1021
  DENSITY_OPTIONS.map((option) => option.value)
1159
1022
  );
@@ -2555,32 +2418,6 @@ var color_default = {
2555
2418
  }
2556
2419
  };
2557
2420
 
2558
- // src/lib/token-scales.generated.ts
2559
- var PRIMITIVE_PALETTE_NAMES = [
2560
- "green",
2561
- "emerald",
2562
- "teal",
2563
- "cyan",
2564
- "sky",
2565
- "indigo",
2566
- "violet",
2567
- "purple",
2568
- "fuchsia",
2569
- "pink",
2570
- "slate",
2571
- "rose",
2572
- "lime",
2573
- "yellow",
2574
- "blue",
2575
- "gray",
2576
- "zinc",
2577
- "neutral",
2578
- "stone",
2579
- "red",
2580
- "orange",
2581
- "amber"
2582
- ];
2583
-
2584
2421
  // src/lib/primitive-palette.ts
2585
2422
  var rampCache = /* @__PURE__ */ new Map();
2586
2423
  function getPaletteRamp(palette) {
@@ -3307,6 +3144,22 @@ function spacingTokenKind(tokenPath) {
3307
3144
  `spacingTokenKind: unknown top-level key "${root}" in path [${tokenPath.join(".")}] \u2014 extend SPACING_NUMERIC_ROOTS / SPACING_ROLE_ROOTS`
3308
3145
  );
3309
3146
  }
3147
+ function referencedStep(token2, fileTokens) {
3148
+ if (!isReference(token2.value)) return void 0;
3149
+ const reference = extractRefPath(token2.value);
3150
+ const step = fileTokens.find(
3151
+ ({ path }) => path.join(".") === reference && spacingTokenKind(path) === "numeric"
3152
+ );
3153
+ if (!step || isReference(step.value)) {
3154
+ throw new Error(
3155
+ `referencedStep: ${token2.path.join(".")} references {${reference}}, which is not a spacing step with a value`
3156
+ );
3157
+ }
3158
+ return step;
3159
+ }
3160
+ function spacingValue(token2, fileTokens) {
3161
+ return (referencedStep(token2, fileTokens) ?? token2).value;
3162
+ }
3310
3163
  var FAMILY_TO_UTILITY = {
3311
3164
  "padding-x": { prefix: "px", properties: ["padding-left", "padding-right"] },
3312
3165
  "padding-y": { prefix: "py", properties: ["padding-top", "padding-bottom"] },
@@ -3391,6 +3244,32 @@ function durationUtility(key) {
3391
3244
  ]
3392
3245
  };
3393
3246
  }
3247
+ function iconSizeUtility(key) {
3248
+ const value = `var(--nx-icon-${key})`;
3249
+ return {
3250
+ name: `size-icon-${key}`,
3251
+ declarations: [
3252
+ { property: "width", value },
3253
+ { property: "height", value },
3254
+ { property: "--nx-icon-size", value }
3255
+ ]
3256
+ };
3257
+ }
3258
+ var ICON_STROKE_UTILITY = {
3259
+ name: "icon-stroke",
3260
+ selectors: ["&:is(svg)", "&:is(svg) *", "& svg", "& svg *"],
3261
+ declarations: [
3262
+ {
3263
+ property: "stroke-width",
3264
+ value: "calc(var(--nx-icon-stroke-base) + var(--nx-icon-size, var(--nx-icon-glyph-default)) * var(--nx-icon-stroke-ratio))"
3265
+ },
3266
+ { property: "vector-effect", value: "non-scaling-stroke" }
3267
+ ]
3268
+ };
3269
+ function iconUtility(path) {
3270
+ if (path[0] === "stroke") return ICON_STROKE_UTILITY;
3271
+ return iconSizeUtility(path.join("-"));
3272
+ }
3394
3273
  var DEFAULT_TRANSITION = {
3395
3274
  duration: "default",
3396
3275
  ease: "enter"
@@ -3611,6 +3490,67 @@ var borderwidth_strong_default = {
3611
3490
  }
3612
3491
  };
3613
3492
 
3493
+ // tokens/primitives/icon.json
3494
+ var icon_default = {
3495
+ glyph: {
3496
+ xs: {
3497
+ $value: {
3498
+ value: 12,
3499
+ unit: "px"
3500
+ },
3501
+ $type: "dimension",
3502
+ $description: "Small icon in a compact part, such as Kbd. It follows the UI scale and is the same at every density."
3503
+ },
3504
+ sm: {
3505
+ $value: {
3506
+ value: 14,
3507
+ unit: "px"
3508
+ },
3509
+ $type: "dimension",
3510
+ $description: "Small icon, such as a Badge icon or the small Switch. It follows the UI scale and is the same at every density."
3511
+ },
3512
+ default: {
3513
+ $value: {
3514
+ value: 16,
3515
+ unit: "px"
3516
+ },
3517
+ $type: "dimension",
3518
+ $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."
3519
+ },
3520
+ lg: {
3521
+ $value: {
3522
+ value: 24,
3523
+ unit: "px"
3524
+ },
3525
+ $type: "dimension",
3526
+ $description: "Large standalone icon, such as in an EmptyState. It follows the UI scale and is the same at every density."
3527
+ },
3528
+ xl: {
3529
+ $value: {
3530
+ value: 32,
3531
+ unit: "px"
3532
+ },
3533
+ $type: "dimension",
3534
+ $description: "Extra large standalone icon, such as in a vertical Attachment. It follows the UI scale and is the same at every density."
3535
+ }
3536
+ },
3537
+ stroke: {
3538
+ base: {
3539
+ $value: {
3540
+ value: 0.5,
3541
+ unit: "px"
3542
+ },
3543
+ $type: "dimension",
3544
+ $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."
3545
+ },
3546
+ ratio: {
3547
+ $value: 0.0625,
3548
+ $type: "number",
3549
+ $description: "Line a stroked icon adds for each pixel of its size. 0.0625 adds 1px of line for every 16px of icon."
3550
+ }
3551
+ }
3552
+ };
3553
+
3614
3554
  // tokens/primitives/motion/motion-snappy.json
3615
3555
  var motion_snappy_default = {
3616
3556
  duration: {
@@ -8736,7 +8676,147 @@ var shadow_strong_light_default = {
8736
8676
  $type: "dimension"
8737
8677
  },
8738
8678
  color: {
8739
- $value: "#0000001f",
8679
+ $value: "#0000001f",
8680
+ $type: "color"
8681
+ }
8682
+ },
8683
+ "layer-2": {
8684
+ x: {
8685
+ $value: {
8686
+ value: 0,
8687
+ unit: "px"
8688
+ },
8689
+ $type: "dimension"
8690
+ },
8691
+ y: {
8692
+ $value: {
8693
+ value: 4,
8694
+ unit: "px"
8695
+ },
8696
+ $type: "dimension"
8697
+ },
8698
+ blur: {
8699
+ $value: {
8700
+ value: 8,
8701
+ unit: "px"
8702
+ },
8703
+ $type: "dimension"
8704
+ },
8705
+ spread: {
8706
+ $value: {
8707
+ value: -1,
8708
+ unit: "px"
8709
+ },
8710
+ $type: "dimension"
8711
+ },
8712
+ color: {
8713
+ $value: "#0000001f",
8714
+ $type: "color"
8715
+ }
8716
+ }
8717
+ },
8718
+ lg: {
8719
+ "layer-1": {
8720
+ x: {
8721
+ $value: {
8722
+ value: 0,
8723
+ unit: "px"
8724
+ },
8725
+ $type: "dimension"
8726
+ },
8727
+ y: {
8728
+ $value: {
8729
+ value: 1,
8730
+ unit: "px"
8731
+ },
8732
+ $type: "dimension"
8733
+ },
8734
+ blur: {
8735
+ $value: {
8736
+ value: 3,
8737
+ unit: "px"
8738
+ },
8739
+ $type: "dimension"
8740
+ },
8741
+ spread: {
8742
+ $value: {
8743
+ value: 0,
8744
+ unit: "px"
8745
+ },
8746
+ $type: "dimension"
8747
+ },
8748
+ color: {
8749
+ $value: "#00000026",
8750
+ $type: "color"
8751
+ }
8752
+ },
8753
+ "layer-2": {
8754
+ x: {
8755
+ $value: {
8756
+ value: 0,
8757
+ unit: "px"
8758
+ },
8759
+ $type: "dimension"
8760
+ },
8761
+ y: {
8762
+ $value: {
8763
+ value: 8,
8764
+ unit: "px"
8765
+ },
8766
+ $type: "dimension"
8767
+ },
8768
+ blur: {
8769
+ $value: {
8770
+ value: 16,
8771
+ unit: "px"
8772
+ },
8773
+ $type: "dimension"
8774
+ },
8775
+ spread: {
8776
+ $value: {
8777
+ value: -1,
8778
+ unit: "px"
8779
+ },
8780
+ $type: "dimension"
8781
+ },
8782
+ color: {
8783
+ $value: "#00000026",
8784
+ $type: "color"
8785
+ }
8786
+ }
8787
+ },
8788
+ xl: {
8789
+ "layer-1": {
8790
+ x: {
8791
+ $value: {
8792
+ value: 0,
8793
+ unit: "px"
8794
+ },
8795
+ $type: "dimension"
8796
+ },
8797
+ y: {
8798
+ $value: {
8799
+ value: 1,
8800
+ unit: "px"
8801
+ },
8802
+ $type: "dimension"
8803
+ },
8804
+ blur: {
8805
+ $value: {
8806
+ value: 3,
8807
+ unit: "px"
8808
+ },
8809
+ $type: "dimension"
8810
+ },
8811
+ spread: {
8812
+ $value: {
8813
+ value: 0,
8814
+ unit: "px"
8815
+ },
8816
+ $type: "dimension"
8817
+ },
8818
+ color: {
8819
+ $value: "#0000002e",
8740
8820
  $type: "color"
8741
8821
  }
8742
8822
  },
@@ -8750,14 +8830,14 @@ var shadow_strong_light_default = {
8750
8830
  },
8751
8831
  y: {
8752
8832
  $value: {
8753
- value: 4,
8833
+ value: 16,
8754
8834
  unit: "px"
8755
8835
  },
8756
8836
  $type: "dimension"
8757
8837
  },
8758
8838
  blur: {
8759
8839
  $value: {
8760
- value: 8,
8840
+ value: 24,
8761
8841
  unit: "px"
8762
8842
  },
8763
8843
  $type: "dimension"
@@ -8770,12 +8850,12 @@ var shadow_strong_light_default = {
8770
8850
  $type: "dimension"
8771
8851
  },
8772
8852
  color: {
8773
- $value: "#0000001f",
8853
+ $value: "#0000002e",
8774
8854
  $type: "color"
8775
8855
  }
8776
8856
  }
8777
8857
  },
8778
- lg: {
8858
+ "2xl": {
8779
8859
  "layer-1": {
8780
8860
  x: {
8781
8861
  $value: {
@@ -8806,11 +8886,13 @@ var shadow_strong_light_default = {
8806
8886
  $type: "dimension"
8807
8887
  },
8808
8888
  color: {
8809
- $value: "#00000026",
8889
+ $value: "#0000004d",
8810
8890
  $type: "color"
8811
8891
  }
8812
- },
8813
- "layer-2": {
8892
+ }
8893
+ },
8894
+ inner: {
8895
+ "layer-1": {
8814
8896
  x: {
8815
8897
  $value: {
8816
8898
  value: 0,
@@ -8820,171 +8902,363 @@ var shadow_strong_light_default = {
8820
8902
  },
8821
8903
  y: {
8822
8904
  $value: {
8823
- value: 8,
8905
+ value: 2,
8824
8906
  unit: "px"
8825
8907
  },
8826
8908
  $type: "dimension"
8827
8909
  },
8828
8910
  blur: {
8829
8911
  $value: {
8830
- value: 16,
8912
+ value: 6,
8831
8913
  unit: "px"
8832
8914
  },
8833
8915
  $type: "dimension"
8834
8916
  },
8835
8917
  spread: {
8836
8918
  $value: {
8837
- value: -1,
8919
+ value: 0,
8838
8920
  unit: "px"
8839
8921
  },
8840
8922
  $type: "dimension"
8841
8923
  },
8842
8924
  color: {
8843
- $value: "#00000026",
8925
+ $value: "#00000014",
8844
8926
  $type: "color"
8845
8927
  }
8846
8928
  }
8929
+ }
8930
+ };
8931
+
8932
+ // tokens/primitives/typography/typography-default.json
8933
+ var typography_default_default = {
8934
+ family: {
8935
+ "font-sans": {
8936
+ $value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
8937
+ $type: "fontFamily",
8938
+ $extensions: {
8939
+ "nx-font-source": {
8940
+ type: "system"
8941
+ }
8942
+ }
8943
+ },
8944
+ "font-heading": {
8945
+ $value: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
8946
+ $type: "fontFamily",
8947
+ $extensions: {
8948
+ "nx-font-source": {
8949
+ type: "system"
8950
+ }
8951
+ }
8952
+ },
8953
+ "font-serif": {
8954
+ $value: "Georgia",
8955
+ $type: "fontFamily",
8956
+ $extensions: {
8957
+ "nx-font-source": {
8958
+ type: "system"
8959
+ }
8960
+ }
8961
+ },
8962
+ "font-mono": {
8963
+ $value: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
8964
+ $type: "fontFamily",
8965
+ $extensions: {
8966
+ "nx-font-source": {
8967
+ type: "system"
8968
+ }
8969
+ }
8970
+ }
8847
8971
  },
8848
- xl: {
8849
- "layer-1": {
8850
- x: {
8851
- $value: {
8852
- value: 0,
8853
- unit: "px"
8854
- },
8855
- $type: "dimension"
8972
+ size: {
8973
+ xxs: {
8974
+ $value: {
8975
+ value: 11,
8976
+ unit: "px"
8977
+ },
8978
+ $type: "dimension"
8979
+ },
8980
+ xs: {
8981
+ $value: {
8982
+ value: 12,
8983
+ unit: "px"
8984
+ },
8985
+ $type: "dimension"
8986
+ },
8987
+ sm: {
8988
+ $value: {
8989
+ value: 14,
8990
+ unit: "px"
8991
+ },
8992
+ $type: "dimension"
8993
+ },
8994
+ base: {
8995
+ $value: {
8996
+ value: 16,
8997
+ unit: "px"
8998
+ },
8999
+ $type: "dimension"
9000
+ },
9001
+ lg: {
9002
+ $value: {
9003
+ value: 18,
9004
+ unit: "px"
9005
+ },
9006
+ $type: "dimension"
9007
+ },
9008
+ xl: {
9009
+ $value: {
9010
+ value: 20,
9011
+ unit: "px"
9012
+ },
9013
+ $type: "dimension"
9014
+ },
9015
+ "2xl": {
9016
+ $value: {
9017
+ value: 24,
9018
+ unit: "px"
9019
+ },
9020
+ $type: "dimension"
9021
+ },
9022
+ "3xl": {
9023
+ $value: {
9024
+ value: 30,
9025
+ unit: "px"
9026
+ },
9027
+ $type: "dimension"
9028
+ },
9029
+ "4xl": {
9030
+ $value: {
9031
+ value: 36,
9032
+ unit: "px"
9033
+ },
9034
+ $type: "dimension"
9035
+ },
9036
+ "5xl": {
9037
+ $value: {
9038
+ value: 48,
9039
+ unit: "px"
9040
+ },
9041
+ $type: "dimension"
9042
+ },
9043
+ "6xl": {
9044
+ $value: {
9045
+ value: 60,
9046
+ unit: "px"
9047
+ },
9048
+ $type: "dimension"
9049
+ },
9050
+ "7xl": {
9051
+ $value: {
9052
+ value: 72,
9053
+ unit: "px"
9054
+ },
9055
+ $type: "dimension"
9056
+ },
9057
+ "8xl": {
9058
+ $value: {
9059
+ value: 96,
9060
+ unit: "px"
9061
+ },
9062
+ $type: "dimension"
9063
+ },
9064
+ "9xl": {
9065
+ $value: {
9066
+ value: 128,
9067
+ unit: "px"
9068
+ },
9069
+ $type: "dimension"
9070
+ }
9071
+ },
9072
+ weight: {
9073
+ thin: {
9074
+ $value: 100,
9075
+ $type: "fontWeight"
9076
+ },
9077
+ extralight: {
9078
+ $value: 200,
9079
+ $type: "fontWeight"
9080
+ },
9081
+ light: {
9082
+ $value: 300,
9083
+ $type: "fontWeight"
9084
+ },
9085
+ normal: {
9086
+ $value: 400,
9087
+ $type: "fontWeight"
9088
+ },
9089
+ medium: {
9090
+ $value: 500,
9091
+ $type: "fontWeight"
9092
+ },
9093
+ semibold: {
9094
+ $value: 600,
9095
+ $type: "fontWeight"
9096
+ },
9097
+ bold: {
9098
+ $value: 700,
9099
+ $type: "fontWeight"
9100
+ },
9101
+ extrabold: {
9102
+ $value: 800,
9103
+ $type: "fontWeight"
9104
+ },
9105
+ black: {
9106
+ $value: 900,
9107
+ $type: "fontWeight"
9108
+ }
9109
+ },
9110
+ "line-height": {
9111
+ xxs: {
9112
+ $value: {
9113
+ value: 12,
9114
+ unit: "px"
9115
+ },
9116
+ $type: "dimension"
9117
+ },
9118
+ xs: {
9119
+ $value: {
9120
+ value: 16,
9121
+ unit: "px"
9122
+ },
9123
+ $type: "dimension"
9124
+ },
9125
+ sm: {
9126
+ $value: {
9127
+ value: 20,
9128
+ unit: "px"
9129
+ },
9130
+ $type: "dimension"
9131
+ },
9132
+ base: {
9133
+ $value: {
9134
+ value: 24,
9135
+ unit: "px"
9136
+ },
9137
+ $type: "dimension"
9138
+ },
9139
+ lg: {
9140
+ $value: {
9141
+ value: 28,
9142
+ unit: "px"
9143
+ },
9144
+ $type: "dimension"
9145
+ },
9146
+ xl: {
9147
+ $value: {
9148
+ value: 28,
9149
+ unit: "px"
9150
+ },
9151
+ $type: "dimension"
9152
+ },
9153
+ "2xl": {
9154
+ $value: {
9155
+ value: 32,
9156
+ unit: "px"
8856
9157
  },
8857
- y: {
8858
- $value: {
8859
- value: 1,
8860
- unit: "px"
8861
- },
8862
- $type: "dimension"
9158
+ $type: "dimension"
9159
+ },
9160
+ "3xl": {
9161
+ $value: {
9162
+ value: 36,
9163
+ unit: "px"
8863
9164
  },
8864
- blur: {
8865
- $value: {
8866
- value: 3,
8867
- unit: "px"
8868
- },
8869
- $type: "dimension"
9165
+ $type: "dimension"
9166
+ },
9167
+ "4xl": {
9168
+ $value: {
9169
+ value: 48,
9170
+ unit: "px"
8870
9171
  },
8871
- spread: {
8872
- $value: {
8873
- value: 0,
8874
- unit: "px"
8875
- },
8876
- $type: "dimension"
9172
+ $type: "dimension"
9173
+ },
9174
+ "5xl": {
9175
+ $value: {
9176
+ value: 48,
9177
+ unit: "px"
8877
9178
  },
8878
- color: {
8879
- $value: "#0000002e",
8880
- $type: "color"
8881
- }
9179
+ $type: "dimension"
8882
9180
  },
8883
- "layer-2": {
8884
- x: {
8885
- $value: {
8886
- value: 0,
8887
- unit: "px"
8888
- },
8889
- $type: "dimension"
9181
+ "6xl": {
9182
+ $value: {
9183
+ value: 60,
9184
+ unit: "px"
8890
9185
  },
8891
- y: {
8892
- $value: {
8893
- value: 16,
8894
- unit: "px"
8895
- },
8896
- $type: "dimension"
9186
+ $type: "dimension"
9187
+ },
9188
+ "7xl": {
9189
+ $value: {
9190
+ value: 72,
9191
+ unit: "px"
8897
9192
  },
8898
- blur: {
8899
- $value: {
8900
- value: 24,
8901
- unit: "px"
8902
- },
8903
- $type: "dimension"
9193
+ $type: "dimension"
9194
+ },
9195
+ "8xl": {
9196
+ $value: {
9197
+ value: 96,
9198
+ unit: "px"
8904
9199
  },
8905
- spread: {
8906
- $value: {
8907
- value: -1,
8908
- unit: "px"
8909
- },
8910
- $type: "dimension"
9200
+ $type: "dimension"
9201
+ },
9202
+ "9xl": {
9203
+ $value: {
9204
+ value: 128,
9205
+ unit: "px"
8911
9206
  },
8912
- color: {
8913
- $value: "#0000002e",
8914
- $type: "color"
8915
- }
9207
+ $type: "dimension"
8916
9208
  }
8917
9209
  },
8918
- "2xl": {
8919
- "layer-1": {
8920
- x: {
8921
- $value: {
8922
- value: 0,
8923
- unit: "px"
8924
- },
8925
- $type: "dimension"
8926
- },
8927
- y: {
8928
- $value: {
8929
- value: 1,
8930
- unit: "px"
8931
- },
8932
- $type: "dimension"
9210
+ letterspacing: {
9211
+ tighter: {
9212
+ $value: {
9213
+ value: -0.800000011920929,
9214
+ unit: "px"
8933
9215
  },
8934
- blur: {
8935
- $value: {
8936
- value: 3,
8937
- unit: "px"
8938
- },
8939
- $type: "dimension"
9216
+ $type: "dimension"
9217
+ },
9218
+ tight: {
9219
+ $value: {
9220
+ value: -0.4000000059604645,
9221
+ unit: "px"
8940
9222
  },
8941
- spread: {
8942
- $value: {
8943
- value: 0,
8944
- unit: "px"
8945
- },
8946
- $type: "dimension"
9223
+ $type: "dimension"
9224
+ },
9225
+ normal: {
9226
+ $value: {
9227
+ value: 0,
9228
+ unit: "px"
8947
9229
  },
8948
- color: {
8949
- $value: "#0000004d",
8950
- $type: "color"
8951
- }
8952
- }
8953
- },
8954
- inner: {
8955
- "layer-1": {
8956
- x: {
8957
- $value: {
8958
- value: 0,
8959
- unit: "px"
8960
- },
8961
- $type: "dimension"
9230
+ $type: "dimension"
9231
+ },
9232
+ wide: {
9233
+ $value: {
9234
+ value: 0.4000000059604645,
9235
+ unit: "px"
8962
9236
  },
8963
- y: {
8964
- $value: {
8965
- value: 2,
8966
- unit: "px"
8967
- },
8968
- $type: "dimension"
9237
+ $type: "dimension"
9238
+ },
9239
+ wider: {
9240
+ $value: {
9241
+ value: 0.800000011920929,
9242
+ unit: "px"
8969
9243
  },
8970
- blur: {
8971
- $value: {
8972
- value: 6,
8973
- unit: "px"
8974
- },
8975
- $type: "dimension"
9244
+ $type: "dimension"
9245
+ },
9246
+ widest: {
9247
+ $value: {
9248
+ value: 1.600000023841858,
9249
+ unit: "px"
8976
9250
  },
8977
- spread: {
8978
- $value: {
8979
- value: 0,
8980
- unit: "px"
8981
- },
8982
- $type: "dimension"
9251
+ $type: "dimension"
9252
+ }
9253
+ },
9254
+ code: {
9255
+ size: {
9256
+ $value: {
9257
+ value: 12,
9258
+ unit: "px"
8983
9259
  },
8984
- color: {
8985
- $value: "#00000014",
8986
- $type: "color"
8987
- }
9260
+ $type: "dimension",
9261
+ $description: "Code text size. The code font size setting writes it, and the code text styles read it."
8988
9262
  }
8989
9263
  }
8990
9264
  };
@@ -9060,189 +9334,189 @@ var spacing_comfortable_default = {
9060
9334
  },
9061
9335
  "3": {
9062
9336
  $value: {
9063
- value: 12,
9337
+ value: 13,
9064
9338
  unit: "px"
9065
9339
  },
9066
9340
  $type: "dimension"
9067
9341
  },
9068
9342
  "4": {
9069
9343
  $value: {
9070
- value: 16,
9344
+ value: 17,
9071
9345
  unit: "px"
9072
9346
  },
9073
9347
  $type: "dimension"
9074
9348
  },
9075
9349
  "5": {
9076
9350
  $value: {
9077
- value: 20,
9351
+ value: 22,
9078
9352
  unit: "px"
9079
9353
  },
9080
9354
  $type: "dimension"
9081
9355
  },
9082
9356
  "6": {
9083
9357
  $value: {
9084
- value: 24,
9358
+ value: 26,
9085
9359
  unit: "px"
9086
9360
  },
9087
9361
  $type: "dimension"
9088
9362
  },
9089
9363
  "7": {
9090
9364
  $value: {
9091
- value: 28,
9365
+ value: 30,
9092
9366
  unit: "px"
9093
9367
  },
9094
9368
  $type: "dimension"
9095
9369
  },
9096
9370
  "8": {
9097
9371
  $value: {
9098
- value: 32,
9372
+ value: 34,
9099
9373
  unit: "px"
9100
9374
  },
9101
9375
  $type: "dimension"
9102
9376
  },
9103
9377
  "9": {
9104
9378
  $value: {
9105
- value: 36,
9379
+ value: 38,
9106
9380
  unit: "px"
9107
9381
  },
9108
9382
  $type: "dimension"
9109
9383
  },
9110
9384
  "10": {
9111
9385
  $value: {
9112
- value: 40,
9386
+ value: 42,
9113
9387
  unit: "px"
9114
9388
  },
9115
9389
  $type: "dimension"
9116
9390
  },
9117
9391
  "11": {
9118
9392
  $value: {
9119
- value: 44,
9393
+ value: 46,
9120
9394
  unit: "px"
9121
9395
  },
9122
9396
  $type: "dimension"
9123
9397
  },
9124
9398
  "12": {
9125
9399
  $value: {
9126
- value: 48,
9400
+ value: 50,
9127
9401
  unit: "px"
9128
9402
  },
9129
9403
  $type: "dimension"
9130
9404
  },
9131
9405
  "14": {
9132
9406
  $value: {
9133
- value: 56,
9407
+ value: 58,
9134
9408
  unit: "px"
9135
9409
  },
9136
9410
  $type: "dimension"
9137
9411
  },
9138
9412
  "16": {
9139
9413
  $value: {
9140
- value: 64,
9414
+ value: 66,
9141
9415
  unit: "px"
9142
9416
  },
9143
9417
  $type: "dimension"
9144
9418
  },
9145
9419
  "20": {
9146
9420
  $value: {
9147
- value: 80,
9421
+ value: 82,
9148
9422
  unit: "px"
9149
9423
  },
9150
9424
  $type: "dimension"
9151
9425
  },
9152
9426
  "24": {
9153
9427
  $value: {
9154
- value: 96,
9428
+ value: 98,
9155
9429
  unit: "px"
9156
9430
  },
9157
9431
  $type: "dimension"
9158
9432
  },
9159
9433
  "28": {
9160
9434
  $value: {
9161
- value: 112,
9435
+ value: 114,
9162
9436
  unit: "px"
9163
9437
  },
9164
9438
  $type: "dimension"
9165
9439
  },
9166
9440
  "32": {
9167
9441
  $value: {
9168
- value: 128,
9442
+ value: 130,
9169
9443
  unit: "px"
9170
9444
  },
9171
9445
  $type: "dimension"
9172
9446
  },
9173
9447
  "36": {
9174
9448
  $value: {
9175
- value: 144,
9449
+ value: 146,
9176
9450
  unit: "px"
9177
9451
  },
9178
9452
  $type: "dimension"
9179
9453
  },
9180
9454
  "40": {
9181
9455
  $value: {
9182
- value: 160,
9456
+ value: 162,
9183
9457
  unit: "px"
9184
9458
  },
9185
9459
  $type: "dimension"
9186
9460
  },
9187
9461
  "44": {
9188
9462
  $value: {
9189
- value: 176,
9463
+ value: 178,
9190
9464
  unit: "px"
9191
9465
  },
9192
9466
  $type: "dimension"
9193
9467
  },
9194
9468
  "48": {
9195
9469
  $value: {
9196
- value: 192,
9470
+ value: 194,
9197
9471
  unit: "px"
9198
9472
  },
9199
9473
  $type: "dimension"
9200
9474
  },
9201
9475
  "52": {
9202
9476
  $value: {
9203
- value: 208,
9477
+ value: 210,
9204
9478
  unit: "px"
9205
9479
  },
9206
9480
  $type: "dimension"
9207
9481
  },
9208
9482
  "56": {
9209
9483
  $value: {
9210
- value: 224,
9484
+ value: 226,
9211
9485
  unit: "px"
9212
9486
  },
9213
9487
  $type: "dimension"
9214
9488
  },
9215
9489
  "60": {
9216
9490
  $value: {
9217
- value: 240,
9491
+ value: 242,
9218
9492
  unit: "px"
9219
9493
  },
9220
9494
  $type: "dimension"
9221
9495
  },
9222
9496
  "64": {
9223
9497
  $value: {
9224
- value: 256,
9498
+ value: 258,
9225
9499
  unit: "px"
9226
9500
  },
9227
9501
  $type: "dimension"
9228
9502
  },
9229
9503
  "72": {
9230
9504
  $value: {
9231
- value: 288,
9505
+ value: 290,
9232
9506
  unit: "px"
9233
9507
  },
9234
9508
  $type: "dimension"
9235
9509
  },
9236
9510
  "80": {
9237
9511
  $value: {
9238
- value: 320,
9512
+ value: 322,
9239
9513
  unit: "px"
9240
9514
  },
9241
9515
  $type: "dimension"
9242
9516
  },
9243
9517
  "96": {
9244
9518
  $value: {
9245
- value: 384,
9519
+ value: 386,
9246
9520
  unit: "px"
9247
9521
  },
9248
9522
  $type: "dimension"
@@ -9263,14 +9537,14 @@ var spacing_comfortable_default = {
9263
9537
  },
9264
9538
  "2_5": {
9265
9539
  $value: {
9266
- value: 10,
9540
+ value: 11,
9267
9541
  unit: "px"
9268
9542
  },
9269
9543
  $type: "dimension"
9270
9544
  },
9271
9545
  "3_5": {
9272
9546
  $value: {
9273
- value: 14,
9547
+ value: 15,
9274
9548
  unit: "px"
9275
9549
  },
9276
9550
  $type: "dimension"
@@ -9278,33 +9552,21 @@ var spacing_comfortable_default = {
9278
9552
  },
9279
9553
  container: {
9280
9554
  p: {
9281
- $value: {
9282
- value: 28,
9283
- unit: "px"
9284
- },
9555
+ $value: "{spacing.6}",
9285
9556
  $type: "dimension"
9286
9557
  },
9287
9558
  gap: {
9288
- $value: {
9289
- value: 20,
9290
- unit: "px"
9291
- },
9559
+ $value: "{spacing.4}",
9292
9560
  $type: "dimension"
9293
9561
  }
9294
9562
  },
9295
9563
  layout: {
9296
- "section-gap": {
9297
- $value: {
9298
- value: 40,
9299
- unit: "px"
9300
- },
9564
+ "section-gap": {
9565
+ $value: "{spacing.8}",
9301
9566
  $type: "dimension"
9302
9567
  },
9303
9568
  "stack-gap": {
9304
- $value: {
9305
- value: 10,
9306
- unit: "px"
9307
- },
9569
+ $value: "{spacing.2}",
9308
9570
  $type: "dimension"
9309
9571
  }
9310
9572
  }
@@ -9336,21 +9598,21 @@ var spacing_compact_default = {
9336
9598
  },
9337
9599
  "3": {
9338
9600
  $value: {
9339
- value: 10,
9601
+ value: 12,
9340
9602
  unit: "px"
9341
9603
  },
9342
9604
  $type: "dimension"
9343
9605
  },
9344
9606
  "4": {
9345
9607
  $value: {
9346
- value: 14,
9608
+ value: 15,
9347
9609
  unit: "px"
9348
9610
  },
9349
9611
  $type: "dimension"
9350
9612
  },
9351
9613
  "5": {
9352
9614
  $value: {
9353
- value: 18,
9615
+ value: 19,
9354
9616
  unit: "px"
9355
9617
  },
9356
9618
  $type: "dimension"
@@ -9406,119 +9668,119 @@ var spacing_compact_default = {
9406
9668
  },
9407
9669
  "14": {
9408
9670
  $value: {
9409
- value: 52,
9671
+ value: 54,
9410
9672
  unit: "px"
9411
9673
  },
9412
9674
  $type: "dimension"
9413
9675
  },
9414
9676
  "16": {
9415
9677
  $value: {
9416
- value: 60,
9678
+ value: 62,
9417
9679
  unit: "px"
9418
9680
  },
9419
9681
  $type: "dimension"
9420
9682
  },
9421
9683
  "20": {
9422
9684
  $value: {
9423
- value: 76,
9685
+ value: 78,
9424
9686
  unit: "px"
9425
9687
  },
9426
9688
  $type: "dimension"
9427
9689
  },
9428
9690
  "24": {
9429
9691
  $value: {
9430
- value: 92,
9692
+ value: 94,
9431
9693
  unit: "px"
9432
9694
  },
9433
9695
  $type: "dimension"
9434
9696
  },
9435
9697
  "28": {
9436
9698
  $value: {
9437
- value: 108,
9699
+ value: 110,
9438
9700
  unit: "px"
9439
9701
  },
9440
9702
  $type: "dimension"
9441
9703
  },
9442
9704
  "32": {
9443
9705
  $value: {
9444
- value: 124,
9706
+ value: 126,
9445
9707
  unit: "px"
9446
9708
  },
9447
9709
  $type: "dimension"
9448
9710
  },
9449
9711
  "36": {
9450
9712
  $value: {
9451
- value: 140,
9713
+ value: 142,
9452
9714
  unit: "px"
9453
9715
  },
9454
9716
  $type: "dimension"
9455
9717
  },
9456
9718
  "40": {
9457
9719
  $value: {
9458
- value: 156,
9720
+ value: 158,
9459
9721
  unit: "px"
9460
9722
  },
9461
9723
  $type: "dimension"
9462
9724
  },
9463
9725
  "44": {
9464
9726
  $value: {
9465
- value: 172,
9727
+ value: 174,
9466
9728
  unit: "px"
9467
9729
  },
9468
9730
  $type: "dimension"
9469
9731
  },
9470
9732
  "48": {
9471
9733
  $value: {
9472
- value: 188,
9734
+ value: 190,
9473
9735
  unit: "px"
9474
9736
  },
9475
9737
  $type: "dimension"
9476
9738
  },
9477
9739
  "52": {
9478
9740
  $value: {
9479
- value: 204,
9741
+ value: 206,
9480
9742
  unit: "px"
9481
9743
  },
9482
9744
  $type: "dimension"
9483
9745
  },
9484
9746
  "56": {
9485
9747
  $value: {
9486
- value: 220,
9748
+ value: 222,
9487
9749
  unit: "px"
9488
9750
  },
9489
9751
  $type: "dimension"
9490
9752
  },
9491
9753
  "60": {
9492
9754
  $value: {
9493
- value: 236,
9755
+ value: 238,
9494
9756
  unit: "px"
9495
9757
  },
9496
9758
  $type: "dimension"
9497
9759
  },
9498
9760
  "64": {
9499
9761
  $value: {
9500
- value: 252,
9762
+ value: 254,
9501
9763
  unit: "px"
9502
9764
  },
9503
9765
  $type: "dimension"
9504
9766
  },
9505
9767
  "72": {
9506
9768
  $value: {
9507
- value: 284,
9769
+ value: 286,
9508
9770
  unit: "px"
9509
9771
  },
9510
9772
  $type: "dimension"
9511
9773
  },
9512
9774
  "80": {
9513
9775
  $value: {
9514
- value: 316,
9776
+ value: 318,
9515
9777
  unit: "px"
9516
9778
  },
9517
9779
  $type: "dimension"
9518
9780
  },
9519
9781
  "96": {
9520
9782
  $value: {
9521
- value: 380,
9783
+ value: 382,
9522
9784
  unit: "px"
9523
9785
  },
9524
9786
  $type: "dimension"
@@ -9539,14 +9801,14 @@ var spacing_compact_default = {
9539
9801
  },
9540
9802
  "2_5": {
9541
9803
  $value: {
9542
- value: 9,
9804
+ value: 10,
9543
9805
  unit: "px"
9544
9806
  },
9545
9807
  $type: "dimension"
9546
9808
  },
9547
9809
  "3_5": {
9548
9810
  $value: {
9549
- value: 12,
9811
+ value: 14,
9550
9812
  unit: "px"
9551
9813
  },
9552
9814
  $type: "dimension"
@@ -9554,33 +9816,21 @@ var spacing_compact_default = {
9554
9816
  },
9555
9817
  container: {
9556
9818
  p: {
9557
- $value: {
9558
- value: 20,
9559
- unit: "px"
9560
- },
9819
+ $value: "{spacing.6}",
9561
9820
  $type: "dimension"
9562
9821
  },
9563
9822
  gap: {
9564
- $value: {
9565
- value: 12,
9566
- unit: "px"
9567
- },
9823
+ $value: "{spacing.4}",
9568
9824
  $type: "dimension"
9569
9825
  }
9570
9826
  },
9571
9827
  layout: {
9572
9828
  "section-gap": {
9573
- $value: {
9574
- value: 28,
9575
- unit: "px"
9576
- },
9829
+ $value: "{spacing.8}",
9577
9830
  $type: "dimension"
9578
9831
  },
9579
9832
  "stack-gap": {
9580
- $value: {
9581
- value: 6,
9582
- unit: "px"
9583
- },
9833
+ $value: "{spacing.2}",
9584
9834
  $type: "dimension"
9585
9835
  }
9586
9836
  }
@@ -9830,33 +10080,21 @@ var spacing_default_default = {
9830
10080
  },
9831
10081
  container: {
9832
10082
  p: {
9833
- $value: {
9834
- value: 24,
9835
- unit: "px"
9836
- },
10083
+ $value: "{spacing.6}",
9837
10084
  $type: "dimension"
9838
10085
  },
9839
10086
  gap: {
9840
- $value: {
9841
- value: 16,
9842
- unit: "px"
9843
- },
10087
+ $value: "{spacing.4}",
9844
10088
  $type: "dimension"
9845
10089
  }
9846
10090
  },
9847
10091
  layout: {
9848
10092
  "section-gap": {
9849
- $value: {
9850
- value: 32,
9851
- unit: "px"
9852
- },
10093
+ $value: "{spacing.8}",
9853
10094
  $type: "dimension"
9854
10095
  },
9855
10096
  "stack-gap": {
9856
- $value: {
9857
- value: 8,
9858
- unit: "px"
9859
- },
10097
+ $value: "{spacing.2}",
9860
10098
  $type: "dimension"
9861
10099
  }
9862
10100
  }
@@ -9888,7 +10126,7 @@ var spacing_relaxed_default = {
9888
10126
  },
9889
10127
  "3": {
9890
10128
  $value: {
9891
- value: 14,
10129
+ value: 13,
9892
10130
  unit: "px"
9893
10131
  },
9894
10132
  $type: "dimension"
@@ -9902,7 +10140,7 @@ var spacing_relaxed_default = {
9902
10140
  },
9903
10141
  "5": {
9904
10142
  $value: {
9905
- value: 22,
10143
+ value: 23,
9906
10144
  unit: "px"
9907
10145
  },
9908
10146
  $type: "dimension"
@@ -10106,33 +10344,21 @@ var spacing_relaxed_default = {
10106
10344
  },
10107
10345
  container: {
10108
10346
  p: {
10109
- $value: {
10110
- value: 28,
10111
- unit: "px"
10112
- },
10347
+ $value: "{spacing.6}",
10113
10348
  $type: "dimension"
10114
10349
  },
10115
10350
  gap: {
10116
- $value: {
10117
- value: 20,
10118
- unit: "px"
10119
- },
10351
+ $value: "{spacing.4}",
10120
10352
  $type: "dimension"
10121
10353
  }
10122
10354
  },
10123
10355
  layout: {
10124
10356
  "section-gap": {
10125
- $value: {
10126
- value: 40,
10127
- unit: "px"
10128
- },
10357
+ $value: "{spacing.8}",
10129
10358
  $type: "dimension"
10130
10359
  },
10131
10360
  "stack-gap": {
10132
- $value: {
10133
- value: 10,
10134
- unit: "px"
10135
- },
10361
+ $value: "{spacing.2}",
10136
10362
  $type: "dimension"
10137
10363
  }
10138
10364
  }
@@ -10164,189 +10390,189 @@ var spacing_spacious_default = {
10164
10390
  },
10165
10391
  "3": {
10166
10392
  $value: {
10167
- value: 12,
10393
+ value: 14,
10168
10394
  unit: "px"
10169
10395
  },
10170
10396
  $type: "dimension"
10171
10397
  },
10172
10398
  "4": {
10173
10399
  $value: {
10174
- value: 16,
10400
+ value: 19,
10175
10401
  unit: "px"
10176
10402
  },
10177
10403
  $type: "dimension"
10178
10404
  },
10179
10405
  "5": {
10180
10406
  $value: {
10181
- value: 20,
10407
+ value: 25,
10182
10408
  unit: "px"
10183
10409
  },
10184
10410
  $type: "dimension"
10185
10411
  },
10186
10412
  "6": {
10187
10413
  $value: {
10188
- value: 24,
10414
+ value: 30,
10189
10415
  unit: "px"
10190
10416
  },
10191
10417
  $type: "dimension"
10192
10418
  },
10193
10419
  "7": {
10194
10420
  $value: {
10195
- value: 28,
10421
+ value: 34,
10196
10422
  unit: "px"
10197
10423
  },
10198
10424
  $type: "dimension"
10199
10425
  },
10200
10426
  "8": {
10201
10427
  $value: {
10202
- value: 32,
10428
+ value: 38,
10203
10429
  unit: "px"
10204
10430
  },
10205
10431
  $type: "dimension"
10206
10432
  },
10207
10433
  "9": {
10208
10434
  $value: {
10209
- value: 36,
10435
+ value: 42,
10210
10436
  unit: "px"
10211
10437
  },
10212
10438
  $type: "dimension"
10213
10439
  },
10214
10440
  "10": {
10215
10441
  $value: {
10216
- value: 40,
10442
+ value: 46,
10217
10443
  unit: "px"
10218
10444
  },
10219
10445
  $type: "dimension"
10220
10446
  },
10221
10447
  "11": {
10222
10448
  $value: {
10223
- value: 44,
10449
+ value: 50,
10224
10450
  unit: "px"
10225
10451
  },
10226
10452
  $type: "dimension"
10227
10453
  },
10228
10454
  "12": {
10229
10455
  $value: {
10230
- value: 48,
10456
+ value: 54,
10231
10457
  unit: "px"
10232
10458
  },
10233
10459
  $type: "dimension"
10234
10460
  },
10235
10461
  "14": {
10236
10462
  $value: {
10237
- value: 56,
10463
+ value: 62,
10238
10464
  unit: "px"
10239
10465
  },
10240
10466
  $type: "dimension"
10241
10467
  },
10242
10468
  "16": {
10243
10469
  $value: {
10244
- value: 64,
10470
+ value: 70,
10245
10471
  unit: "px"
10246
10472
  },
10247
10473
  $type: "dimension"
10248
10474
  },
10249
10475
  "20": {
10250
10476
  $value: {
10251
- value: 80,
10477
+ value: 86,
10252
10478
  unit: "px"
10253
10479
  },
10254
10480
  $type: "dimension"
10255
10481
  },
10256
10482
  "24": {
10257
10483
  $value: {
10258
- value: 96,
10484
+ value: 102,
10259
10485
  unit: "px"
10260
10486
  },
10261
10487
  $type: "dimension"
10262
10488
  },
10263
10489
  "28": {
10264
10490
  $value: {
10265
- value: 112,
10491
+ value: 118,
10266
10492
  unit: "px"
10267
10493
  },
10268
10494
  $type: "dimension"
10269
10495
  },
10270
10496
  "32": {
10271
10497
  $value: {
10272
- value: 128,
10498
+ value: 134,
10273
10499
  unit: "px"
10274
10500
  },
10275
10501
  $type: "dimension"
10276
10502
  },
10277
10503
  "36": {
10278
10504
  $value: {
10279
- value: 144,
10505
+ value: 150,
10280
10506
  unit: "px"
10281
10507
  },
10282
10508
  $type: "dimension"
10283
10509
  },
10284
10510
  "40": {
10285
10511
  $value: {
10286
- value: 160,
10512
+ value: 166,
10287
10513
  unit: "px"
10288
10514
  },
10289
10515
  $type: "dimension"
10290
10516
  },
10291
10517
  "44": {
10292
10518
  $value: {
10293
- value: 176,
10519
+ value: 182,
10294
10520
  unit: "px"
10295
10521
  },
10296
10522
  $type: "dimension"
10297
10523
  },
10298
10524
  "48": {
10299
10525
  $value: {
10300
- value: 192,
10526
+ value: 198,
10301
10527
  unit: "px"
10302
10528
  },
10303
10529
  $type: "dimension"
10304
10530
  },
10305
10531
  "52": {
10306
10532
  $value: {
10307
- value: 208,
10533
+ value: 214,
10308
10534
  unit: "px"
10309
10535
  },
10310
10536
  $type: "dimension"
10311
10537
  },
10312
10538
  "56": {
10313
10539
  $value: {
10314
- value: 224,
10540
+ value: 230,
10315
10541
  unit: "px"
10316
10542
  },
10317
10543
  $type: "dimension"
10318
10544
  },
10319
10545
  "60": {
10320
10546
  $value: {
10321
- value: 240,
10547
+ value: 246,
10322
10548
  unit: "px"
10323
10549
  },
10324
10550
  $type: "dimension"
10325
10551
  },
10326
10552
  "64": {
10327
10553
  $value: {
10328
- value: 256,
10554
+ value: 262,
10329
10555
  unit: "px"
10330
10556
  },
10331
10557
  $type: "dimension"
10332
10558
  },
10333
10559
  "72": {
10334
10560
  $value: {
10335
- value: 288,
10561
+ value: 294,
10336
10562
  unit: "px"
10337
10563
  },
10338
10564
  $type: "dimension"
10339
10565
  },
10340
10566
  "80": {
10341
10567
  $value: {
10342
- value: 320,
10568
+ value: 326,
10343
10569
  unit: "px"
10344
10570
  },
10345
10571
  $type: "dimension"
10346
10572
  },
10347
10573
  "96": {
10348
10574
  $value: {
10349
- value: 384,
10575
+ value: 390,
10350
10576
  unit: "px"
10351
10577
  },
10352
10578
  $type: "dimension"
@@ -10367,14 +10593,14 @@ var spacing_spacious_default = {
10367
10593
  },
10368
10594
  "2_5": {
10369
10595
  $value: {
10370
- value: 10,
10596
+ value: 11,
10371
10597
  unit: "px"
10372
10598
  },
10373
10599
  $type: "dimension"
10374
10600
  },
10375
10601
  "3_5": {
10376
10602
  $value: {
10377
- value: 14,
10603
+ value: 17,
10378
10604
  unit: "px"
10379
10605
  },
10380
10606
  $type: "dimension"
@@ -10382,33 +10608,21 @@ var spacing_spacious_default = {
10382
10608
  },
10383
10609
  container: {
10384
10610
  p: {
10385
- $value: {
10386
- value: 40,
10387
- unit: "px"
10388
- },
10611
+ $value: "{spacing.6}",
10389
10612
  $type: "dimension"
10390
10613
  },
10391
10614
  gap: {
10392
- $value: {
10393
- value: 24,
10394
- unit: "px"
10395
- },
10615
+ $value: "{spacing.4}",
10396
10616
  $type: "dimension"
10397
10617
  }
10398
10618
  },
10399
10619
  layout: {
10400
10620
  "section-gap": {
10401
- $value: {
10402
- value: 56,
10403
- unit: "px"
10404
- },
10621
+ $value: "{spacing.8}",
10405
10622
  $type: "dimension"
10406
10623
  },
10407
10624
  "stack-gap": {
10408
- $value: {
10409
- value: 16,
10410
- unit: "px"
10411
- },
10625
+ $value: "{spacing.2}",
10412
10626
  $type: "dimension"
10413
10627
  }
10414
10628
  }
@@ -10440,189 +10654,189 @@ var spacing_tight_default = {
10440
10654
  },
10441
10655
  "3": {
10442
10656
  $value: {
10443
- value: 12,
10657
+ value: 11,
10444
10658
  unit: "px"
10445
10659
  },
10446
10660
  $type: "dimension"
10447
10661
  },
10448
10662
  "4": {
10449
10663
  $value: {
10450
- value: 16,
10664
+ value: 14,
10451
10665
  unit: "px"
10452
10666
  },
10453
10667
  $type: "dimension"
10454
10668
  },
10455
10669
  "5": {
10456
10670
  $value: {
10457
- value: 20,
10671
+ value: 17,
10458
10672
  unit: "px"
10459
10673
  },
10460
10674
  $type: "dimension"
10461
10675
  },
10462
10676
  "6": {
10463
10677
  $value: {
10464
- value: 24,
10678
+ value: 20,
10465
10679
  unit: "px"
10466
10680
  },
10467
10681
  $type: "dimension"
10468
10682
  },
10469
10683
  "7": {
10470
10684
  $value: {
10471
- value: 30,
10685
+ value: 24,
10472
10686
  unit: "px"
10473
10687
  },
10474
10688
  $type: "dimension"
10475
10689
  },
10476
10690
  "8": {
10477
10691
  $value: {
10478
- value: 32,
10692
+ value: 28,
10479
10693
  unit: "px"
10480
10694
  },
10481
10695
  $type: "dimension"
10482
10696
  },
10483
10697
  "9": {
10484
10698
  $value: {
10485
- value: 36,
10699
+ value: 32,
10486
10700
  unit: "px"
10487
10701
  },
10488
10702
  $type: "dimension"
10489
10703
  },
10490
10704
  "10": {
10491
10705
  $value: {
10492
- value: 42,
10706
+ value: 36,
10493
10707
  unit: "px"
10494
10708
  },
10495
10709
  $type: "dimension"
10496
10710
  },
10497
10711
  "11": {
10498
10712
  $value: {
10499
- value: 48,
10713
+ value: 40,
10500
10714
  unit: "px"
10501
10715
  },
10502
10716
  $type: "dimension"
10503
10717
  },
10504
10718
  "12": {
10505
10719
  $value: {
10506
- value: 48,
10720
+ value: 44,
10507
10721
  unit: "px"
10508
10722
  },
10509
10723
  $type: "dimension"
10510
10724
  },
10511
10725
  "14": {
10512
10726
  $value: {
10513
- value: 60,
10727
+ value: 52,
10514
10728
  unit: "px"
10515
10729
  },
10516
10730
  $type: "dimension"
10517
10731
  },
10518
10732
  "16": {
10519
10733
  $value: {
10520
- value: 64,
10734
+ value: 60,
10521
10735
  unit: "px"
10522
10736
  },
10523
10737
  $type: "dimension"
10524
10738
  },
10525
10739
  "20": {
10526
10740
  $value: {
10527
- value: 80,
10741
+ value: 76,
10528
10742
  unit: "px"
10529
10743
  },
10530
10744
  $type: "dimension"
10531
10745
  },
10532
10746
  "24": {
10533
10747
  $value: {
10534
- value: 96,
10748
+ value: 92,
10535
10749
  unit: "px"
10536
10750
  },
10537
10751
  $type: "dimension"
10538
10752
  },
10539
10753
  "28": {
10540
10754
  $value: {
10541
- value: 120,
10755
+ value: 108,
10542
10756
  unit: "px"
10543
10757
  },
10544
10758
  $type: "dimension"
10545
10759
  },
10546
10760
  "32": {
10547
10761
  $value: {
10548
- value: 128,
10762
+ value: 124,
10549
10763
  unit: "px"
10550
10764
  },
10551
10765
  $type: "dimension"
10552
10766
  },
10553
10767
  "36": {
10554
10768
  $value: {
10555
- value: 144,
10769
+ value: 140,
10556
10770
  unit: "px"
10557
10771
  },
10558
10772
  $type: "dimension"
10559
10773
  },
10560
10774
  "40": {
10561
10775
  $value: {
10562
- value: 160,
10776
+ value: 156,
10563
10777
  unit: "px"
10564
10778
  },
10565
10779
  $type: "dimension"
10566
10780
  },
10567
10781
  "44": {
10568
10782
  $value: {
10569
- value: 180,
10783
+ value: 172,
10570
10784
  unit: "px"
10571
10785
  },
10572
10786
  $type: "dimension"
10573
10787
  },
10574
10788
  "48": {
10575
10789
  $value: {
10576
- value: 192,
10790
+ value: 188,
10577
10791
  unit: "px"
10578
10792
  },
10579
10793
  $type: "dimension"
10580
10794
  },
10581
10795
  "52": {
10582
10796
  $value: {
10583
- value: 210,
10797
+ value: 204,
10584
10798
  unit: "px"
10585
10799
  },
10586
10800
  $type: "dimension"
10587
10801
  },
10588
10802
  "56": {
10589
10803
  $value: {
10590
- value: 224,
10804
+ value: 220,
10591
10805
  unit: "px"
10592
10806
  },
10593
10807
  $type: "dimension"
10594
10808
  },
10595
10809
  "60": {
10596
10810
  $value: {
10597
- value: 240,
10811
+ value: 236,
10598
10812
  unit: "px"
10599
10813
  },
10600
10814
  $type: "dimension"
10601
10815
  },
10602
10816
  "64": {
10603
10817
  $value: {
10604
- value: 256,
10818
+ value: 252,
10605
10819
  unit: "px"
10606
10820
  },
10607
10821
  $type: "dimension"
10608
10822
  },
10609
10823
  "72": {
10610
10824
  $value: {
10611
- value: 288,
10825
+ value: 284,
10612
10826
  unit: "px"
10613
10827
  },
10614
10828
  $type: "dimension"
10615
10829
  },
10616
10830
  "80": {
10617
10831
  $value: {
10618
- value: 320,
10832
+ value: 316,
10619
10833
  unit: "px"
10620
10834
  },
10621
10835
  $type: "dimension"
10622
10836
  },
10623
10837
  "96": {
10624
10838
  $value: {
10625
- value: 384,
10839
+ value: 380,
10626
10840
  unit: "px"
10627
10841
  },
10628
10842
  $type: "dimension"
@@ -10650,7 +10864,7 @@ var spacing_tight_default = {
10650
10864
  },
10651
10865
  "3_5": {
10652
10866
  $value: {
10653
- value: 15,
10867
+ value: 13,
10654
10868
  unit: "px"
10655
10869
  },
10656
10870
  $type: "dimension"
@@ -10658,33 +10872,21 @@ var spacing_tight_default = {
10658
10872
  },
10659
10873
  container: {
10660
10874
  p: {
10661
- $value: {
10662
- value: 24,
10663
- unit: "px"
10664
- },
10875
+ $value: "{spacing.6}",
10665
10876
  $type: "dimension"
10666
10877
  },
10667
10878
  gap: {
10668
- $value: {
10669
- value: 16,
10670
- unit: "px"
10671
- },
10879
+ $value: "{spacing.4}",
10672
10880
  $type: "dimension"
10673
10881
  }
10674
10882
  },
10675
10883
  layout: {
10676
10884
  "section-gap": {
10677
- $value: {
10678
- value: 32,
10679
- unit: "px"
10680
- },
10885
+ $value: "{spacing.8}",
10681
10886
  $type: "dimension"
10682
10887
  },
10683
10888
  "stack-gap": {
10684
- $value: {
10685
- value: 8,
10686
- unit: "px"
10687
- },
10889
+ $value: "{spacing.2}",
10688
10890
  $type: "dimension"
10689
10891
  }
10690
10892
  }
@@ -11032,7 +11234,7 @@ var typography_default = {
11032
11234
  $type: "typography",
11033
11235
  $value: {
11034
11236
  fontFamily: "{family.font-mono}",
11035
- fontSize: "{size.sm}",
11237
+ fontSize: "{code.size}",
11036
11238
  fontWeight: "{weight.normal}",
11037
11239
  lineHeight: "{line-height.sm}",
11038
11240
  letterSpacing: {
@@ -11045,7 +11247,7 @@ var typography_default = {
11045
11247
  $type: "typography",
11046
11248
  $value: {
11047
11249
  fontFamily: "{family.font-mono}",
11048
- fontSize: "{size.sm}",
11250
+ fontSize: "{code.size}",
11049
11251
  fontWeight: "{weight.semibold}",
11050
11252
  lineHeight: "auto",
11051
11253
  letterSpacing: {
@@ -11063,6 +11265,7 @@ var TOKEN_FILES = {
11063
11265
  "primitives/borderwidth/borderwidth-normal.json": borderwidth_normal_default,
11064
11266
  "primitives/borderwidth/borderwidth-strong.json": borderwidth_strong_default,
11065
11267
  "primitives/color.json": color_default,
11268
+ "primitives/icon.json": icon_default,
11066
11269
  "primitives/motion/motion-snappy.json": motion_snappy_default,
11067
11270
  "primitives/radius/radius-extra-round.json": radius_extra_round_default,
11068
11271
  "primitives/radius/radius-round.json": radius_round_default,
@@ -11096,6 +11299,7 @@ var TOKEN_FILES = {
11096
11299
  var PRIMITIVE_FAMILIES = [
11097
11300
  "borderwidth",
11098
11301
  "color",
11302
+ "icon",
11099
11303
  "motion",
11100
11304
  "radius",
11101
11305
  "shadow",
@@ -11107,34 +11311,40 @@ var BREAKPOINTS_FILE = "semantic/breakpoints.json";
11107
11311
  var TYPOGRAPHY_STYLES_FILE = "styles/typography.json";
11108
11312
  var SHADOW_STYLES_FILE = "styles/shadows.json";
11109
11313
  var SINGLE_SOURCE = { mode: null, preset: null };
11110
- var PRESET_CONTROLS = {
11111
- spacing: { kind: "preset", field: "density" },
11112
- radius: { kind: "preset", field: "corners" },
11113
- borderwidth: { kind: "preset", field: "stroke" },
11114
- shadow: { kind: "preset", field: "elevation" }
11314
+ var UI_SCALE = { kind: "scale", field: "uiScale" };
11315
+ var TEXT_SIZE = { kind: "scale", field: "textSize" };
11316
+ var FAMILY_CONTROLS = {
11317
+ spacing: [{ kind: "preset", field: "density" }, UI_SCALE],
11318
+ radius: [{ kind: "preset", field: "corners" }, UI_SCALE],
11319
+ borderwidth: [{ kind: "preset", field: "stroke" }],
11320
+ shadow: [{ kind: "preset", field: "elevation" }]
11115
11321
  };
11116
- function typographyControl(path) {
11322
+ function typographyControls(path) {
11117
11323
  const [group, key] = path;
11324
+ if (group === "code" && key === "size") {
11325
+ return [{ kind: "pref", field: "codeFontSize" }, UI_SCALE, TEXT_SIZE];
11326
+ }
11118
11327
  if (group === "size" || group === "line-height") {
11119
- return { kind: "pref", field: "uiFontSize" };
11328
+ return [UI_SCALE, TEXT_SIZE];
11120
11329
  }
11121
- if (group !== "family") return null;
11122
- if (key === "font-sans") return { kind: "pref", field: "uiFont" };
11123
- if (key === "font-heading") return { kind: "pref", field: "headingFont" };
11124
- if (key === "font-mono") return { kind: "pref", field: "codeFont" };
11125
- return null;
11330
+ if (group !== "family") return [];
11331
+ if (key === "font-sans") return [{ kind: "pref", field: "uiFont" }];
11332
+ if (key === "font-heading") return [{ kind: "pref", field: "headingFont" }];
11333
+ if (key === "font-mono") return [{ kind: "pref", field: "codeFont" }];
11334
+ return [];
11126
11335
  }
11127
- function leafControl({
11336
+ function leafControls({
11128
11337
  family,
11129
11338
  file,
11130
11339
  preset,
11131
11340
  leaf
11132
11341
  }) {
11133
11342
  if (family === "typography" && file.startsWith("primitives/")) {
11134
- return typographyControl(leaf.path);
11343
+ return typographyControls(leaf.path);
11135
11344
  }
11136
- if (preset === null) return null;
11137
- return PRESET_CONTROLS[family] ?? null;
11345
+ if (family === "icon") return leaf.path[0] === "glyph" ? [UI_SCALE] : [];
11346
+ if (preset === null) return [];
11347
+ return FAMILY_CONTROLS[family] ?? [];
11138
11348
  }
11139
11349
  var cssVariable = (name) => ({
11140
11350
  kind: "css-variable",
@@ -11237,7 +11447,7 @@ function authoredTokens(leaves, lookup, entryFor) {
11237
11447
  type: leaf.type,
11238
11448
  description: leaf.description ?? null,
11239
11449
  aliases,
11240
- control: leafControl(authored),
11450
+ controls: leafControls(authored),
11241
11451
  variants: []
11242
11452
  };
11243
11453
  token2.variants.push({
@@ -11255,6 +11465,7 @@ function authoredTokens(leaves, lookup, entryFor) {
11255
11465
  }
11256
11466
  function primitiveAliases(family, path) {
11257
11467
  const key = path.join("-");
11468
+ if (family === "icon") return [utility(iconUtility(path).name)];
11258
11469
  if (family === "radius") return [cssVariable(`--radius-${key}`)];
11259
11470
  if (family === "borderwidth") {
11260
11471
  return [
@@ -11301,18 +11512,29 @@ function primitiveEntry(lookup) {
11301
11512
  };
11302
11513
  };
11303
11514
  }
11304
- function spacingEntry({ leaf }) {
11305
- const key = leaf.path.join("-");
11306
- const name = `--nx-${key}`;
11307
- const alias = spacingTokenKind(leaf.path) === "role" ? utility(spacingRoleUtility(leaf.path).name) : cssVariable(`--${key}`);
11515
+ function spacingName(path) {
11516
+ return `--nx-${path.join("-")}`;
11517
+ }
11518
+ function spacingStepLookup(leaves) {
11519
+ return new Map(
11520
+ leaves.filter(({ leaf }) => spacingTokenKind(leaf.path) === "numeric").map(({ leaf }) => {
11521
+ const name = spacingName(leaf.path);
11522
+ return [
11523
+ leaf.path.join("."),
11524
+ { cssName: name.slice("--".length), name }
11525
+ ];
11526
+ })
11527
+ );
11528
+ }
11529
+ function spacingEntry({ file, leaf }) {
11530
+ const name = spacingName(leaf.path);
11531
+ const alias = spacingTokenKind(leaf.path) === "role" ? utility(spacingRoleUtility(leaf.path).name) : cssVariable(`--${leaf.path.join("-")}`);
11532
+ const value = spacingValue(leaf, extractTokens(TOKEN_FILES[file]));
11308
11533
  return {
11309
11534
  name,
11310
11535
  aliases: [alias],
11311
11536
  declarations: [
11312
- {
11313
- property: name,
11314
- value: formatTokenValue(leaf.value, leaf.type, leaf.path)
11315
- }
11537
+ { property: name, value: formatTokenValue(value, leaf.type, leaf.path) }
11316
11538
  ]
11317
11539
  };
11318
11540
  }
@@ -11377,7 +11599,7 @@ function shadowStyleTokens(layers, lookup) {
11377
11599
  type: leaf.type,
11378
11600
  description: leaf.description ?? null,
11379
11601
  aliases: [cssVariable(`--${key}`)],
11380
- control: PRESET_CONTROLS.shadow ?? null,
11602
+ controls: FAMILY_CONTROLS.shadow ?? [],
11381
11603
  variants: sets.map(({ preset, mode, values }) => ({
11382
11604
  mode,
11383
11605
  preset,
@@ -11397,13 +11619,6 @@ function styleLeaves(family, file) {
11397
11619
  ({ leaf }) => leaf.type === family
11398
11620
  );
11399
11621
  }
11400
- function runtimeAppearance(mode) {
11401
- return {
11402
- ...DEFAULT_NXDS_APPEARANCE,
11403
- prefs: { ...DEFAULT_NXDS_APPEARANCE.prefs },
11404
- mode
11405
- };
11406
- }
11407
11622
  function runtimeColorAliases(name) {
11408
11623
  const aliases = [cssVariable(`--color-${name}`)];
11409
11624
  const borderName = borderColorAliasName(name);
@@ -11412,15 +11627,14 @@ function runtimeColorAliases(name) {
11412
11627
  }
11413
11628
  return aliases;
11414
11629
  }
11415
- function runtimeColorTokens() {
11416
- const themes = RUNTIME_MODES.map((mode) => {
11417
- const appearance = runtimeAppearance(mode);
11418
- return {
11419
- mode,
11420
- appearance,
11421
- values: deriveThemeMode(createNxdsThemeContract(appearance), mode)
11422
- };
11423
- });
11630
+ function runtimeColorTokens(appearance) {
11631
+ const { brandColor, surfaceTone, lightContrast, darkContrast } = appearance;
11632
+ const colors = { brandColor, surfaceTone, lightContrast, darkContrast };
11633
+ const themes = RUNTIME_MODES.map((mode) => ({
11634
+ mode,
11635
+ appearance: { ...colors, mode },
11636
+ values: deriveThemeMode(createNxdsThemeContract(colors), mode)
11637
+ }));
11424
11638
  return SEMANTIC_TOKEN_REGISTRY.map(({ name, category }) => {
11425
11639
  const property = `--nx-color-${name}`;
11426
11640
  return {
@@ -11430,8 +11644,8 @@ function runtimeColorTokens() {
11430
11644
  type: "color",
11431
11645
  description: RUNTIME_COLOR_DESCRIPTIONS[name] ?? null,
11432
11646
  aliases: runtimeColorAliases(name),
11433
- control: null,
11434
- variants: themes.map(({ mode, appearance, values }) => {
11647
+ controls: [],
11648
+ variants: themes.map(({ mode, appearance: appearance2, values }) => {
11435
11649
  const value = values[property];
11436
11650
  if (value === void 0) {
11437
11651
  throw new Error(`catalogue: deriveTheme emitted no ${property}`);
@@ -11440,7 +11654,7 @@ function runtimeColorTokens() {
11440
11654
  mode,
11441
11655
  preset: null,
11442
11656
  source: null,
11443
- appearance,
11657
+ appearance: appearance2,
11444
11658
  authoredValue: null,
11445
11659
  declarations: [{ property, value }],
11446
11660
  references: []
@@ -11449,18 +11663,130 @@ function runtimeColorTokens() {
11449
11663
  };
11450
11664
  });
11451
11665
  }
11452
- function createTokenCatalogue() {
11666
+ function uiScaleToken({ cssName, value }, {
11667
+ family,
11668
+ type,
11669
+ description
11670
+ }) {
11671
+ const name = `--nx-${cssName}`;
11672
+ return {
11673
+ name,
11674
+ family,
11675
+ group: family,
11676
+ type,
11677
+ description,
11678
+ aliases: [],
11679
+ controls: [UI_SCALE],
11680
+ variants: [
11681
+ {
11682
+ mode: null,
11683
+ preset: null,
11684
+ source: null,
11685
+ appearance: null,
11686
+ authoredValue: null,
11687
+ declarations: [{ property: name, value }],
11688
+ references: []
11689
+ }
11690
+ ]
11691
+ };
11692
+ }
11693
+ function uiScaleEntry(token2) {
11694
+ if (token2.cssName === "ui-scale") {
11695
+ return uiScaleToken(token2, {
11696
+ family: "ui-scale",
11697
+ type: "number",
11698
+ 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."
11699
+ });
11700
+ }
11701
+ const width = token2.cssName.replace("container-", "");
11702
+ return uiScaleToken(token2, {
11703
+ family: "width",
11704
+ type: "dimension",
11705
+ description: `The \`nx:max-w-${width}\` and \`nx:w-${width}\` width. It follows the UI scale.`
11706
+ });
11707
+ }
11708
+ var CSS_NAME_START = "--nx-".length;
11709
+ function variantValue(variant) {
11710
+ return variant?.declarations[0]?.value;
11711
+ }
11712
+ function scaledPresets(tokens, family, factor) {
11713
+ const modes = /* @__PURE__ */ new Map();
11714
+ for (const token2 of tokens.filter((each) => each.family === family)) {
11715
+ for (const variant of token2.variants) {
11716
+ const value = variantValue(variant);
11717
+ if (variant.preset === null || value === void 0) continue;
11718
+ const target = variant.references[0]?.target;
11719
+ const mode = modes.get(variant.preset) ?? [];
11720
+ mode.push({
11721
+ cssName: token2.name.slice(CSS_NAME_START),
11722
+ value,
11723
+ ...target && { step: target.slice(CSS_NAME_START) }
11724
+ });
11725
+ modes.set(variant.preset, mode);
11726
+ }
11727
+ }
11728
+ return [...modes].flatMap(
11729
+ ([preset, mode]) => scaleMode(mode, factor).map(({ cssName, value }) => [
11730
+ `${preset}/--nx-${cssName}`,
11731
+ value
11732
+ ])
11733
+ );
11734
+ }
11735
+ function sizeValues(tokens, { uiScale, textSize }) {
11736
+ const base = uiScaleBase(
11737
+ TOKEN_FILES["primitives/typography/typography-default.json"],
11738
+ TOKEN_FILES["primitives/icon.json"]
11739
+ );
11740
+ const selectors = [
11741
+ uiScaleSelector(uiScale),
11742
+ textSizeSelector(uiScale, textSize)
11743
+ ];
11744
+ 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]);
11745
+ if (uiScale === "default") return values;
11746
+ const { spacing } = UI_SCALES[uiScale];
11747
+ return [
11748
+ ...values,
11749
+ ...scaledPresets(tokens, "spacing", spacing),
11750
+ ...scaledPresets(tokens, "radius", spacing)
11751
+ ];
11752
+ }
11753
+ function atSizes(tokens, appearance) {
11754
+ const { uiScale, textSize, prefs } = appearance;
11755
+ const scaled = new Map([
11756
+ ...sizeValues(tokens, appearance),
11757
+ [
11758
+ "--nx-typography-code-size",
11759
+ `${scaleText(prefs.codeFontSize, uiScale, textSize)}px`
11760
+ ]
11761
+ ]);
11762
+ return tokens.map((token2) => ({
11763
+ ...token2,
11764
+ variants: token2.variants.map((variant) => {
11765
+ const value = scaled.get(`${variant.preset}/${token2.name}`) ?? scaled.get(token2.name);
11766
+ if (value === void 0) return variant;
11767
+ return {
11768
+ ...variant,
11769
+ declarations: variant.declarations.map((each) => ({
11770
+ ...each,
11771
+ value
11772
+ }))
11773
+ };
11774
+ })
11775
+ }));
11776
+ }
11777
+ function createTokenCatalogue(appearance = DEFAULT_NXDS_APPEARANCE) {
11453
11778
  const primitives = PRIMITIVE_FAMILIES.flatMap(primitiveLeaves);
11454
11779
  const lookup = primitiveLookup(primitives);
11455
11780
  const shadowLayers = primitives.filter(({ family }) => family === "shadow");
11456
- return [
11781
+ const spacing = spacingLeaves();
11782
+ const tokens = [
11457
11783
  ...authoredTokens(
11458
11784
  primitives.filter((leaf) => leaf.family !== "shadow"),
11459
11785
  lookup,
11460
11786
  primitiveEntry(lookup)
11461
11787
  ),
11462
- ...runtimeColorTokens(),
11463
- ...authoredTokens(spacingLeaves(), lookup, spacingEntry),
11788
+ ...runtimeColorTokens(appearance),
11789
+ ...authoredTokens(spacing, spacingStepLookup(spacing), spacingEntry),
11464
11790
  ...authoredTokens(
11465
11791
  fileLeaves("z-index", Z_INDEX_FILE, SINGLE_SOURCE),
11466
11792
  lookup,
@@ -11476,8 +11802,10 @@ function createTokenCatalogue() {
11476
11802
  lookup,
11477
11803
  typographyStyleEntry(lookup)
11478
11804
  ),
11479
- ...shadowStyleTokens(shadowLayers, lookup)
11805
+ ...shadowStyleTokens(shadowLayers, lookup),
11806
+ ...widthTokens(PAGE_WIDTHS_REM, "default").map(uiScaleEntry)
11480
11807
  ];
11808
+ return atSizes(tokens, appearance);
11481
11809
  }
11482
11810
  // Annotate the CommonJS export names for ESM import in node:
11483
11811
  0 && (module.exports = {