@refineui/tokens 1.0.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/dist/index.mjs ADDED
@@ -0,0 +1,921 @@
1
+ // src/global/colors.ts
2
+ var colors = {
3
+ primaryLightGray: "#E6E6E6",
4
+ primaryGray: "#D4D4D4",
5
+ primaryDarkGray: "#4d4d4d",
6
+ primaryBlack: "#212121",
7
+ neutralWhite: "#FFFFFF",
8
+ neutral100: "#F5F5F5",
9
+ neutral150: "#F0F0F0",
10
+ neutral200: "#EBEBEB",
11
+ neutral250: "#E0E0E0",
12
+ neutral300: "#DBDBDB",
13
+ neutral350: "#D8D8D8",
14
+ neutral400: "#CECECE",
15
+ neutral450: "#BBBBBB",
16
+ neutral500: "#A4A4A4",
17
+ neutral550: "#8D8D8D",
18
+ neutral600: "#6C6C6C",
19
+ neutral650: "#5B5B5B",
20
+ neutral700: "#404040",
21
+ neutral750: "#333333",
22
+ neutral800: "#2A2A2A",
23
+ neutral850: "#222222",
24
+ neutral900: "#1A1A1A",
25
+ neutral950: "#111111",
26
+ neutralBlack: "#000000",
27
+ red100: "#FFDEDE",
28
+ red200: "#FFC3C3",
29
+ red300: "#FFA7A7",
30
+ red400: "#FF8989",
31
+ red500: "#FF6969",
32
+ red600: "#F94343",
33
+ red700: "#D93A3A",
34
+ red800: "#BA3232",
35
+ red900: "#9C2929",
36
+ red1000: "#711e1e",
37
+ orange100: "#FAE0D1",
38
+ orange200: "#F6C8AE",
39
+ orange300: "#F3B08B",
40
+ orange400: "#EF9664",
41
+ orange500: "#EB7C3E",
42
+ orange600: "#D6692C",
43
+ orange700: "#BA5B26",
44
+ orange800: "#9F4E21",
45
+ orange900: "#85411B",
46
+ orange1000: "#5f2f14",
47
+ yellow100: "#FFE493",
48
+ yellow200: "#FFCB2F",
49
+ yellow300: "#F1B500",
50
+ yellow400: "#DAA300",
51
+ yellow500: "#C49200",
52
+ yellow600: "#AD8100",
53
+ yellow700: "#967000",
54
+ yellow800: "#806000",
55
+ yellow900: "#6B5000",
56
+ yellow1000: "#564100",
57
+ lime100: "#C8F46F",
58
+ lime200: "#A4E61F",
59
+ lime300: "#95D11C",
60
+ lime400: "#86BC19",
61
+ lime500: "#78A917",
62
+ lime600: "#6A9514",
63
+ lime700: "#5C8111",
64
+ lime800: "#4F6E0F",
65
+ lime900: "#425C0C",
66
+ lime1000: "#2f4209",
67
+ green100: "#ADF7B0",
68
+ green200: "#5BEE62",
69
+ green300: "#2FDC37",
70
+ green400: "#2AC632",
71
+ green500: "#26B12D",
72
+ green600: "#229D28",
73
+ green700: "#1D8822",
74
+ green800: "#19751D",
75
+ green900: "#156119",
76
+ green1000: "#0f4612",
77
+ teal100: "#C9ECF0",
78
+ teal200: "#9EDDE4",
79
+ teal300: "#71CDD7",
80
+ teal400: "#54BAC6",
81
+ teal500: "#4BA7B1",
82
+ teal600: "#42949D",
83
+ teal700: "#398088",
84
+ teal800: "#316D74",
85
+ teal900: "#295b61",
86
+ teal1000: "#1d4145",
87
+ blue100: "#DEE5FF",
88
+ blue200: "#C3D0FF",
89
+ blue300: "#A9BCFF",
90
+ blue400: "#90A8FF",
91
+ blue500: "#7694FF",
92
+ blue600: "#5B7FFF",
93
+ blue700: "#3E68FF",
94
+ blue800: "#2351F7",
95
+ blue900: "#1D44CE",
96
+ blue1000: "#1837A8",
97
+ purple100: "#EFDFFF",
98
+ purple200: "#E3C7FF",
99
+ purple300: "#D6AEFF",
100
+ purple400: "#C995FF",
101
+ purple500: "#BD7BFF",
102
+ purple600: "#AF60FF",
103
+ purple700: "#9E3FFF",
104
+ purple800: "#891CF9",
105
+ purple900: "#7318D0",
106
+ purple1000: "#5E13AB",
107
+ magenta100: "#FCDEEC",
108
+ magenta200: "#FAC3DC",
109
+ magenta300: "#F7A7CB",
110
+ magenta400: "#F58ABA",
111
+ magenta500: "#F26BA8",
112
+ magenta600: "#EF4592",
113
+ magenta700: "#D6327C",
114
+ magenta800: "#B82B6B",
115
+ magenta900: "#9A2459",
116
+ magenta1000: "#7D1E49"
117
+ };
118
+
119
+ // src/internal/color.ts
120
+ function toKebab(str) {
121
+ return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-zA-Z])(\d)/g, "$1-$2").toLowerCase();
122
+ }
123
+ function paletteColorCssVar(name) {
124
+ return `var(--refineui-color-${toKebab(name)})`;
125
+ }
126
+ function hexToRgba(hex, alpha) {
127
+ const h = hex.replace("#", "");
128
+ const r = h.length === 3 ? parseInt(h[0] + h[0], 16) : parseInt(h.slice(0, 2), 16);
129
+ const g = h.length === 3 ? parseInt(h[1] + h[1], 16) : parseInt(h.slice(2, 4), 16);
130
+ const b = h.length === 3 ? parseInt(h[2] + h[2], 16) : parseInt(h.slice(4, 6), 16);
131
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
132
+ }
133
+
134
+ // src/semantic/colors.ts
135
+ var SEMANTIC_PALETTE_PAIRS = {
136
+ backgroundBrandActive: { light: "neutralBlack", dark: "primaryLightGray" },
137
+ backgroundBrandDisabled: { light: "neutral150", dark: "neutral650" },
138
+ backgroundBrandHover: { light: "primaryDarkGray", dark: "primaryLightGray" },
139
+ backgroundBrandStrong: { light: "primaryDarkGray", dark: "primaryGray" },
140
+ backgroundBrandSubtle: { light: "primaryLightGray", dark: "neutral800" },
141
+ backgroundBrand: { light: "primaryBlack", dark: "primaryGray" },
142
+ backgroundDiscoveryHover: { light: "purple700", dark: "purple300" },
143
+ backgroundDiscoverySubtle: { light: "purple100", dark: "purple900" },
144
+ backgroundDiscovery: { light: "purple500", dark: "purple500" },
145
+ backgroundErrorHover: { light: "red700", dark: "red300" },
146
+ backgroundErrorSubtle: { light: "red100", dark: "red900" },
147
+ backgroundError: { light: "red500", dark: "red500" },
148
+ backgroundInfoHover: { light: "blue700", dark: "blue300" },
149
+ backgroundInfoSubtle: { light: "blue100", dark: "blue900" },
150
+ backgroundInfo: { light: "blue500", dark: "blue500" },
151
+ backgroundPrimaryActive: { light: "neutral150", dark: "neutral800" },
152
+ backgroundPrimaryHover: { light: "neutral100", dark: "neutral850" },
153
+ backgroundPrimary: { light: "neutralWhite", dark: "neutral900" },
154
+ backgroundSuccessHover: { light: "green700", dark: "green300" },
155
+ backgroundSuccessSubtle: { light: "green100", dark: "green900" },
156
+ backgroundSuccess: { light: "green500", dark: "green500" },
157
+ backgroundSurfaceActive: { light: "neutral150", dark: "neutral700" },
158
+ backgroundSurfaceDisabled: { light: "neutral150", dark: "neutral850" },
159
+ backgroundSurfaceHover: { light: "neutral100", dark: "neutral750" },
160
+ backgroundSurfaceSelected: { light: "neutral200", dark: "neutral650" },
161
+ backgroundSurface: { light: "neutralWhite", dark: "neutral800" },
162
+ backgroundWarningHover: { light: "yellow500", dark: "yellow200" },
163
+ backgroundWarningSubtle: { light: "yellow100", dark: "yellow900" },
164
+ backgroundWarning: { light: "yellow300", dark: "yellow300" },
165
+ borderDefault: { light: "neutral300", dark: "neutral650" },
166
+ borderDisabled: { light: "neutral250", dark: "neutral700" },
167
+ borderDiscovery: { light: "purple500", dark: "purple500" },
168
+ borderError: { light: "red500", dark: "red500" },
169
+ borderFocus: { light: "neutral750", dark: "neutral350" },
170
+ borderHover: { light: "neutral500", dark: "neutral500" },
171
+ borderInfo: { light: "blue500", dark: "blue500" },
172
+ borderStrong: { light: "neutral450", dark: "neutral550" },
173
+ borderSubtle: { light: "neutral200", dark: "neutral750" },
174
+ borderSuccess: { light: "green500", dark: "green500" },
175
+ borderWarning: { light: "yellow300", dark: "yellow300" },
176
+ foregroundBrandStrong: { light: "neutralBlack", dark: "primaryLightGray" },
177
+ foregroundBrand: { light: "primaryBlack", dark: "primaryGray" },
178
+ foregroundDisabled: { light: "neutral400", dark: "neutral600" },
179
+ foregroundDiscovery: { light: "purple700", dark: "purple200" },
180
+ foregroundError: { light: "red700", dark: "red200" },
181
+ foregroundInfo: { light: "blue700", dark: "blue200" },
182
+ foregroundInversed: { light: "neutralWhite", dark: "primaryBlack" },
183
+ foregroundLinkActive: { light: "blue900", dark: "blue200" },
184
+ foregroundLinkHover: { light: "blue800", dark: "blue300" },
185
+ foregroundLinkVisited: { light: "blue500", dark: "blue100" },
186
+ foregroundLink: { light: "blue700", dark: "blue400" },
187
+ foregroundOnBrand: { light: "neutralWhite", dark: "neutralBlack" },
188
+ foregroundOnDiscovery: { light: "neutralWhite", dark: "neutralBlack" },
189
+ foregroundOnError: { light: "neutralWhite", dark: "neutralBlack" },
190
+ foregroundOnInfo: { light: "neutralWhite", dark: "neutralBlack" },
191
+ foregroundOnSuccess: { light: "neutralWhite", dark: "neutralBlack" },
192
+ foregroundOnWarning: { light: "neutralWhite", dark: "neutralBlack" },
193
+ foregroundPlaceholder: { light: "neutral450", dark: "neutral500" },
194
+ foregroundPrimaryHover: { light: "neutralBlack", dark: "neutral100" },
195
+ foregroundPrimary: { light: "primaryBlack", dark: "neutralWhite" },
196
+ foregroundSecondary: { light: "neutral600", dark: "neutral350" },
197
+ foregroundSuccess: { light: "green700", dark: "green200" },
198
+ foregroundTertiary: { light: "neutral500", dark: "neutral450" },
199
+ foregroundWarning: { light: "yellow700", dark: "yellow200" },
200
+ surfaceElevated: { light: "neutralWhite", dark: "neutral700" },
201
+ surfaceInverse: { light: "neutralBlack", dark: "neutralWhite" },
202
+ surfacePopover: { light: "neutralWhite", dark: "neutral750" },
203
+ surfaceSunken: { light: "neutral150", dark: "neutral800" },
204
+ surfaceTooltip: { light: "neutral750", dark: "neutral300" }
205
+ };
206
+ var SEMANTIC_COLOR_ROWS = [
207
+ ...Object.entries(SEMANTIC_PALETTE_PAIRS).map(([name, { light, dark }]) => [name, light, dark]),
208
+ ["surfaceOverlay", "__RGBA__", "__RGBA__"]
209
+ ];
210
+ var surfaceOverlayRgba = {
211
+ light: "rgba(0, 0, 0, 0.2)",
212
+ dark: "rgba(0, 0, 0, 0.6)"
213
+ };
214
+ function buildSemanticColors() {
215
+ const out = {};
216
+ for (const name of Object.keys(SEMANTIC_PALETTE_PAIRS)) {
217
+ const { light, dark } = SEMANTIC_PALETTE_PAIRS[name];
218
+ out[name] = {
219
+ light: paletteColorCssVar(light),
220
+ dark: paletteColorCssVar(dark)
221
+ };
222
+ }
223
+ out.surfaceOverlay = { light: surfaceOverlayRgba.light, dark: surfaceOverlayRgba.dark };
224
+ return out;
225
+ }
226
+ var semanticColors = buildSemanticColors();
227
+
228
+ // src/global/motion.ts
229
+ var motion = {
230
+ duration: {
231
+ duration0: "0ms",
232
+ duration150: "150ms",
233
+ duration180: "180ms",
234
+ duration200: "200ms",
235
+ duration240: "240ms",
236
+ duration260: "260ms",
237
+ duration280: "280ms",
238
+ duration320: "320ms",
239
+ duration380: "380ms",
240
+ duration800: "800ms",
241
+ duration1500: "1500ms"
242
+ },
243
+ easing: {
244
+ /** Material-style standard decelerate */
245
+ easingStandard: "cubic-bezier(0.2, 0, 0, 1)",
246
+ /** Emphasized spring-ish settle */
247
+ easingEmphasized: "cubic-bezier(0.16, 1, 0.3, 1)",
248
+ /** Large panel / drawer slide */
249
+ easingPanel: "cubic-bezier(0.32, 0.72, 0, 1)",
250
+ /** Content cross-fade / height morph */
251
+ easingContent: "cubic-bezier(0.4, 0, 0.2, 1)",
252
+ easingLinear: "linear",
253
+ easingEaseOut: "ease-out",
254
+ easingEaseInOut: "ease-in-out"
255
+ },
256
+ scale: {
257
+ scale96: "0.96",
258
+ scale98: "0.98",
259
+ scale115: "1.15"
260
+ },
261
+ distance: {
262
+ /** Small float offset (enter / pressed nudge) — 4px */
263
+ distance4: "4px"
264
+ }
265
+ };
266
+
267
+ // src/semantic/interaction.ts
268
+ var semanticInteraction = {
269
+ duration: {
270
+ instant: motion.duration.duration0,
271
+ fast: motion.duration.duration150,
272
+ normal: motion.duration.duration180,
273
+ medium: motion.duration.duration200,
274
+ slow: motion.duration.duration240,
275
+ overlay: motion.duration.duration280,
276
+ panel: motion.duration.duration320,
277
+ accordionPanel: motion.duration.duration380,
278
+ accordionContent: motion.duration.duration260,
279
+ toastEnter: motion.duration.duration280,
280
+ toastLeave: motion.duration.duration200,
281
+ skeleton: motion.duration.duration1500,
282
+ spinner: motion.duration.duration800
283
+ },
284
+ easing: {
285
+ standard: motion.easing.easingStandard,
286
+ emphasized: motion.easing.easingEmphasized,
287
+ panel: motion.easing.easingPanel,
288
+ content: motion.easing.easingContent,
289
+ linear: motion.easing.easingLinear,
290
+ easeOut: motion.easing.easingEaseOut,
291
+ easeInOut: motion.easing.easingEaseInOut
292
+ },
293
+ scale: {
294
+ /** Dialog / modal enter under-scale */
295
+ enter: motion.scale.scale96,
296
+ /** Pressed control squash (Button, Slider thumb active, …) */
297
+ press: motion.scale.scale98,
298
+ /** Hover grow (Slider thumb, …) */
299
+ hoverGrow: motion.scale.scale115,
300
+ /** Component aliases — same Foundation steps as role keys above */
301
+ dialogEnter: motion.scale.scale96,
302
+ buttonActive: motion.scale.scale98,
303
+ sliderThumbHover: motion.scale.scale115
304
+ },
305
+ distance: {
306
+ float: motion.distance.distance4
307
+ }
308
+ };
309
+
310
+ // src/global/spacings.ts
311
+ var spacings = {
312
+ sizeNone: "0",
313
+ sizeXXXSmall: "2px",
314
+ sizeXXSmall: "4px",
315
+ sizeXSmall: "6px",
316
+ sizeSmall: "8px",
317
+ sizeMedium: "10px",
318
+ sizeLarge: "16px",
319
+ sizeXLarge: "20px",
320
+ sizeXXLarge: "24px",
321
+ sizeXXXLarge: "32px"
322
+ };
323
+
324
+ // src/global/strokeWidths.ts
325
+ var strokeWidths = {
326
+ strokeWidthNone: "0",
327
+ strokeWidthHairline: "0.5px",
328
+ strokeWidthThin: "1px",
329
+ strokeWidthThick: "2px",
330
+ strokeWidthThicker: "4px",
331
+ strokeWidthThickest: "6px"
332
+ };
333
+
334
+ // src/semantic/focus.ts
335
+ var SEMANTIC_FOCUS_PAIRS = {
336
+ ringColor: { light: "neutral750", dark: "neutral350" }
337
+ };
338
+ var semanticFocus = {
339
+ ring: {
340
+ color: {
341
+ light: paletteColorCssVar(SEMANTIC_FOCUS_PAIRS.ringColor.light),
342
+ dark: paletteColorCssVar(SEMANTIC_FOCUS_PAIRS.ringColor.dark)
343
+ },
344
+ width: strokeWidths.strokeWidthThick,
345
+ offset: spacings.sizeXXXSmall,
346
+ style: "solid"
347
+ }
348
+ };
349
+
350
+ // src/global/shadows.ts
351
+ var SHADOW_BASE_LIGHT = colors.primaryBlack;
352
+ var SHADOW_BASE_DARK = colors.neutralBlack;
353
+ var shadowColors = {
354
+ shadowColorKeyLighter: hexToRgba(SHADOW_BASE_LIGHT, 0.02),
355
+ shadowColorKeyLight: hexToRgba(SHADOW_BASE_LIGHT, 0.05),
356
+ shadowColorKey: hexToRgba(SHADOW_BASE_LIGHT, 0.08),
357
+ shadowColorKeyDark: hexToRgba(SHADOW_BASE_DARK, 0.2),
358
+ shadowColorKeyDarker: hexToRgba(SHADOW_BASE_DARK, 0.3),
359
+ shadowColorAmbientLighter: hexToRgba(SHADOW_BASE_LIGHT, 0.02),
360
+ shadowColorAmbientLight: hexToRgba(SHADOW_BASE_LIGHT, 0.04),
361
+ shadowColorAmbient: hexToRgba(SHADOW_BASE_LIGHT, 0.06),
362
+ shadowColorAmbientDark: hexToRgba(SHADOW_BASE_DARK, 0.15),
363
+ shadowColorAmbientDarker: hexToRgba(SHADOW_BASE_DARK, 0.25)
364
+ };
365
+ var SHADOW_DIMS = {
366
+ shadow2: { key: "0 1px 2px 0", ambient: "0 2px 4px 0" },
367
+ shadow4: { key: "0 2px 2px 0", ambient: "0 4px 8px 0" },
368
+ shadow8: { key: "0 4px 4px 0", ambient: "0 8px 16px 0" },
369
+ shadow16: { key: "0 8px 8px 0", ambient: "0 16px 32px 0" },
370
+ shadow24: { key: "0 12px 12px 0", ambient: "0 24px 48px 0" },
371
+ shadow32: { key: "0 16px 16px 0", ambient: "0 32px 64px 0" },
372
+ shadow64: { key: "0 24px 24px 0", ambient: "0 48px 96px 0" }
373
+ };
374
+ var SHADOW4_DARK_AMBIENT = "0 6px 10px 0";
375
+ function shadowLevel(keyDim, ambientDim, keyColor, ambientColor) {
376
+ return {
377
+ key: `${keyDim} ${keyColor}`,
378
+ ambient: `${ambientDim} ${ambientColor}`
379
+ };
380
+ }
381
+ function toBoxShadow(level) {
382
+ return `${level.key}, ${level.ambient}`;
383
+ }
384
+ var shadows = {
385
+ shadow2Light: shadowLevel(
386
+ SHADOW_DIMS.shadow2.key,
387
+ SHADOW_DIMS.shadow2.ambient,
388
+ shadowColors.shadowColorKeyLight,
389
+ shadowColors.shadowColorAmbientLight
390
+ ),
391
+ shadow2Dark: shadowLevel(
392
+ SHADOW_DIMS.shadow2.key,
393
+ SHADOW_DIMS.shadow2.ambient,
394
+ shadowColors.shadowColorKeyDark,
395
+ shadowColors.shadowColorAmbientDark
396
+ ),
397
+ shadow4Light: shadowLevel(
398
+ SHADOW_DIMS.shadow4.key,
399
+ SHADOW_DIMS.shadow4.ambient,
400
+ shadowColors.shadowColorKeyLight,
401
+ shadowColors.shadowColorAmbientLight
402
+ ),
403
+ shadow4Dark: shadowLevel(
404
+ SHADOW_DIMS.shadow4.key,
405
+ SHADOW4_DARK_AMBIENT,
406
+ shadowColors.shadowColorKeyDark,
407
+ shadowColors.shadowColorAmbientDark
408
+ ),
409
+ shadow8Light: shadowLevel(
410
+ SHADOW_DIMS.shadow8.key,
411
+ SHADOW_DIMS.shadow8.ambient,
412
+ shadowColors.shadowColorKeyLight,
413
+ shadowColors.shadowColorAmbientLight
414
+ ),
415
+ shadow8Dark: shadowLevel(
416
+ SHADOW_DIMS.shadow8.key,
417
+ SHADOW_DIMS.shadow8.ambient,
418
+ shadowColors.shadowColorKeyDark,
419
+ shadowColors.shadowColorAmbientDark
420
+ ),
421
+ shadow16Light: shadowLevel(
422
+ SHADOW_DIMS.shadow16.key,
423
+ SHADOW_DIMS.shadow16.ambient,
424
+ shadowColors.shadowColorKeyLight,
425
+ shadowColors.shadowColorAmbientLight
426
+ ),
427
+ shadow16Dark: shadowLevel(
428
+ SHADOW_DIMS.shadow16.key,
429
+ SHADOW_DIMS.shadow16.ambient,
430
+ shadowColors.shadowColorKeyDark,
431
+ shadowColors.shadowColorAmbientDark
432
+ ),
433
+ shadow24Light: shadowLevel(
434
+ SHADOW_DIMS.shadow24.key,
435
+ SHADOW_DIMS.shadow24.ambient,
436
+ shadowColors.shadowColorKeyLight,
437
+ shadowColors.shadowColorAmbientLight
438
+ ),
439
+ shadow24Dark: shadowLevel(
440
+ SHADOW_DIMS.shadow24.key,
441
+ SHADOW_DIMS.shadow24.ambient,
442
+ shadowColors.shadowColorKeyDark,
443
+ shadowColors.shadowColorAmbientDark
444
+ ),
445
+ shadow32Light: shadowLevel(
446
+ SHADOW_DIMS.shadow32.key,
447
+ SHADOW_DIMS.shadow32.ambient,
448
+ shadowColors.shadowColorKeyLight,
449
+ shadowColors.shadowColorAmbientLight
450
+ ),
451
+ shadow32Dark: shadowLevel(
452
+ SHADOW_DIMS.shadow32.key,
453
+ SHADOW_DIMS.shadow32.ambient,
454
+ shadowColors.shadowColorKeyDark,
455
+ shadowColors.shadowColorAmbientDark
456
+ ),
457
+ shadow64Light: shadowLevel(
458
+ SHADOW_DIMS.shadow64.key,
459
+ SHADOW_DIMS.shadow64.ambient,
460
+ shadowColors.shadowColorKeyLight,
461
+ shadowColors.shadowColorAmbientLight
462
+ ),
463
+ shadow64Dark: shadowLevel(
464
+ SHADOW_DIMS.shadow64.key,
465
+ SHADOW_DIMS.shadow64.ambient,
466
+ shadowColors.shadowColorKeyDark,
467
+ shadowColors.shadowColorAmbientDark
468
+ )
469
+ };
470
+ var shadow2Lighter = shadowLevel(
471
+ SHADOW_DIMS.shadow2.key,
472
+ SHADOW_DIMS.shadow2.ambient,
473
+ shadowColors.shadowColorKeyLighter,
474
+ shadowColors.shadowColorAmbientLighter
475
+ );
476
+
477
+ // src/semantic/shadows.ts
478
+ var semanticShadows = {
479
+ shadow2: { light: shadows.shadow2Light, dark: shadows.shadow2Dark },
480
+ shadow4: { light: shadows.shadow4Light, dark: shadows.shadow4Dark },
481
+ shadow8: { light: shadows.shadow8Light, dark: shadows.shadow8Dark },
482
+ shadow16: { light: shadows.shadow16Light, dark: shadows.shadow16Dark },
483
+ shadow24: { light: shadows.shadow24Light, dark: shadows.shadow24Dark },
484
+ shadow32: { light: shadows.shadow32Light, dark: shadows.shadow32Dark },
485
+ shadow64: { light: shadows.shadow64Light, dark: shadows.shadow64Dark }
486
+ };
487
+
488
+ // src/semantic/text.ts
489
+ var SEMANTIC_TEXT = {
490
+ /** Display / marketing hero */
491
+ displayLg: "heading1",
492
+ displayMd: "heading2",
493
+ displaySm: "heading3",
494
+ /** Page & section headings */
495
+ headingLg: "heading2",
496
+ headingMd: "heading3",
497
+ headingSm: "heading4",
498
+ /** Component titles (Card, Dialog header) */
499
+ titleLg: "title1",
500
+ titleMd: "title2",
501
+ titleSm: "title3",
502
+ /** Emphasized subtitles */
503
+ subtitleLg: "subTitle1",
504
+ subtitleMd: "subTitle2",
505
+ /** Primary reading text */
506
+ bodyLg: "body1",
507
+ bodyMd: "body2",
508
+ bodySm: "body3",
509
+ bodyXs: "body4",
510
+ /** Form labels, menu row labels */
511
+ labelLg: "body1",
512
+ labelMd: "body2",
513
+ labelSm: "caption1",
514
+ /** Metadata, helpers, shortcuts */
515
+ captionLg: "caption1",
516
+ captionMd: "caption2",
517
+ captionSm: "caption3"
518
+ };
519
+
520
+ // src/global/fonts.ts
521
+ var fontFamilies = {
522
+ fontFamily: "'Inter', sans-serif"
523
+ };
524
+ var fontSizes = {
525
+ fontSize100: "10px",
526
+ fontSize200: "12px",
527
+ fontSize300: "14px",
528
+ fontSize400: "16px",
529
+ fontSize500: "20px",
530
+ fontSize600: "24px",
531
+ fontSize700: "28px",
532
+ fontSize800: "32px",
533
+ fontSize900: "40px",
534
+ fontSize1000: "64px"
535
+ };
536
+ var fontWeights = {
537
+ fontWeightRegular: "400",
538
+ fontWeightMedium: "500",
539
+ fontWeightSemibold: "600",
540
+ fontWeightBold: "700",
541
+ fontWeightHeavy: "800"
542
+ };
543
+ var lineHeights = {
544
+ lineHeight100: "14px",
545
+ lineHeight200: "16px",
546
+ lineHeight300: "20px",
547
+ lineHeight400: "24px",
548
+ lineHeight500: "28px",
549
+ lineHeight600: "32px",
550
+ lineHeight700: "36px",
551
+ lineHeight800: "40px",
552
+ lineHeight900: "60px",
553
+ lineHeight1000: "86px"
554
+ };
555
+
556
+ // src/global/sizes.ts
557
+ var iconSizes = {
558
+ xxsmall: 12,
559
+ xsmall: 16,
560
+ small: 20,
561
+ medium: 24,
562
+ large: 28,
563
+ xlarge: 32,
564
+ xxlarge: 48
565
+ };
566
+
567
+ // src/global/foundationSizes.ts
568
+ var foundationSizes = {
569
+ foundationSize10: "1px",
570
+ foundationSize20: "2px",
571
+ foundationSize30: "3px",
572
+ foundationSize40: "4px",
573
+ foundationSize60: "6px",
574
+ foundationSize80: "8px",
575
+ foundationSize100: "10px",
576
+ foundationSize120: "12px",
577
+ /** Divider icon inner circle — Web Kit ≈ 40/3 */
578
+ foundationSize133: "13.33px",
579
+ foundationSize140: "14px",
580
+ foundationSize160: "16px",
581
+ foundationSize200: "20px",
582
+ foundationSize240: "24px",
583
+ foundationSize280: "28px",
584
+ foundationSize300: "30px",
585
+ foundationSize320: "32px",
586
+ foundationSize340: "34px",
587
+ foundationSize360: "36px",
588
+ foundationSize400: "40px",
589
+ foundationSize440: "44px",
590
+ foundationSize480: "48px",
591
+ foundationSize520: "52px",
592
+ foundationSize540: "54px",
593
+ foundationSize600: "60px",
594
+ foundationSize800: "80px",
595
+ foundationSize2000: "200px",
596
+ foundationSize2440: "244px",
597
+ foundationSize2560: "256px",
598
+ foundationSize3000: "300px",
599
+ foundationSize3200: "320px",
600
+ foundationSize3250: "325px",
601
+ foundationSize4500: "450px",
602
+ foundationSize5750: "575px",
603
+ foundationSize6000: "600px",
604
+ foundationSize8500: "850px"
605
+ };
606
+
607
+ // src/semantic/componentSizes.ts
608
+ var F = foundationSizes;
609
+ var componentSizeFoundationKeys = {
610
+ avatarStatusXxxlarge: "foundationSize140",
611
+ buttonMinHeightSm: "foundationSize280",
612
+ buttonMinHeightMd: "foundationSize360",
613
+ buttonMinHeightLg: "foundationSize480",
614
+ chipMinHeightSm: "foundationSize200",
615
+ chipMinHeightMd: "foundationSize240",
616
+ chipMinHeightLg: "foundationSize320",
617
+ controlHeightSm: "foundationSize360",
618
+ controlHeightMd: "foundationSize440",
619
+ controlHeightLg: "foundationSize520",
620
+ controlTouchMin: "foundationSize440",
621
+ controlCheckbox: "foundationSize200",
622
+ controlCheckboxRadio: "foundationSize200",
623
+ controlTextareaMin: "foundationSize800",
624
+ popoverPanelWidth: "foundationSize3250",
625
+ popoverBeakInsetFromStartEdge: "foundationSize340",
626
+ popoverBeakInsetFromEndEdge: "foundationSize300",
627
+ menuPanelWidth: "foundationSize2440",
628
+ dropdownMenuWidth: "foundationSize2440",
629
+ sidebarWidth: "foundationSize2560",
630
+ toastMinWidth: "foundationSize3250",
631
+ toastMaxWidth: "foundationSize3250",
632
+ dialogMaxWidth: "foundationSize6000",
633
+ dialogWidthSm: "foundationSize3000",
634
+ drawerWidthSm: "foundationSize3200",
635
+ drawerWidthMd: "foundationSize5750",
636
+ drawerWidthLg: "foundationSize8500",
637
+ calendarMinWidth: "foundationSize2560",
638
+ calendarDaySize: "foundationSize320",
639
+ tooltipMaxWidth: "foundationSize2000",
640
+ spinStepperWidth: "foundationSize320",
641
+ spinFieldPaddingInlineStart: "foundationSize120",
642
+ switchWidth: "foundationSize440",
643
+ switchHeight: "foundationSize240",
644
+ switchThumb: "foundationSize200",
645
+ switchPadding: "foundationSize20",
646
+ progressTrackHeightSm: "foundationSize20",
647
+ progressTrackHeightLg: "foundationSize40",
648
+ sliderTrackHeightSm: "foundationSize20",
649
+ sliderTrackHeightMd: "foundationSize40",
650
+ sliderInteractionHeight: "foundationSize280",
651
+ paginationButtonMinWidth: "foundationSize400",
652
+ skeletonDefaultHeight: "foundationSize200",
653
+ dividerShortEnd: "foundationSize80",
654
+ dividerIconSlot: "foundationSize200",
655
+ dividerIconCircleDiameter: "foundationSize133",
656
+ dividerIconCircleInset: "foundationSize30",
657
+ accessibleClip: "foundationSize10",
658
+ spinnerSizeXSmall: "foundationSize160",
659
+ spinnerSizeSmall: "foundationSize200",
660
+ spinnerSizeMedium: "foundationSize240",
661
+ spinnerSizeLarge: "foundationSize280",
662
+ spinnerSizeXLarge: "foundationSize320",
663
+ spinnerSizeXXLarge: "foundationSize480",
664
+ spinnerRingWidthXSmall: "foundationSize20",
665
+ spinnerRingWidthSmall: "foundationSize20",
666
+ spinnerRingWidthMedium: "foundationSize20",
667
+ spinnerRingWidthLarge: "foundationSize30",
668
+ spinnerRingWidthXLarge: "foundationSize30",
669
+ spinnerRingWidthXXLarge: "foundationSize40"
670
+ };
671
+ function fromFoundation(key) {
672
+ return F[componentSizeFoundationKeys[key]];
673
+ }
674
+ var componentSizes = {
675
+ avatarStatusXxxlarge: fromFoundation("avatarStatusXxxlarge"),
676
+ buttonMinHeightSm: fromFoundation("buttonMinHeightSm"),
677
+ buttonMinHeightMd: fromFoundation("buttonMinHeightMd"),
678
+ buttonMinHeightLg: fromFoundation("buttonMinHeightLg"),
679
+ chipMinHeightSm: fromFoundation("chipMinHeightSm"),
680
+ chipMinHeightMd: fromFoundation("chipMinHeightMd"),
681
+ chipMinHeightLg: fromFoundation("chipMinHeightLg"),
682
+ controlHeightSm: fromFoundation("controlHeightSm"),
683
+ controlHeightMd: fromFoundation("controlHeightMd"),
684
+ controlHeightLg: fromFoundation("controlHeightLg"),
685
+ controlTouchMin: fromFoundation("controlTouchMin"),
686
+ controlCheckbox: fromFoundation("controlCheckbox"),
687
+ controlCheckboxRadio: fromFoundation("controlCheckboxRadio"),
688
+ controlTextareaMin: fromFoundation("controlTextareaMin"),
689
+ popoverPanelWidth: fromFoundation("popoverPanelWidth"),
690
+ popoverBeakInsetFromStartEdge: fromFoundation("popoverBeakInsetFromStartEdge"),
691
+ popoverBeakInsetFromEndEdge: fromFoundation("popoverBeakInsetFromEndEdge"),
692
+ menuPanelWidth: fromFoundation("menuPanelWidth"),
693
+ /** @deprecated Same as `menuPanelWidth` */
694
+ dropdownMenuWidth: fromFoundation("dropdownMenuWidth"),
695
+ sidebarWidth: fromFoundation("sidebarWidth"),
696
+ toastMinWidth: fromFoundation("toastMinWidth"),
697
+ toastMaxWidth: fromFoundation("toastMaxWidth"),
698
+ dialogMaxWidth: fromFoundation("dialogMaxWidth"),
699
+ /** Viewport-relative — not a Foundation px step */
700
+ dialogMaxHeightViewport: "90vh",
701
+ dialogWidthSm: fromFoundation("dialogWidthSm"),
702
+ drawerWidthSm: fromFoundation("drawerWidthSm"),
703
+ drawerWidthMd: fromFoundation("drawerWidthMd"),
704
+ drawerWidthLg: fromFoundation("drawerWidthLg"),
705
+ calendarMinWidth: fromFoundation("calendarMinWidth"),
706
+ calendarDaySize: fromFoundation("calendarDaySize"),
707
+ tooltipMaxWidth: fromFoundation("tooltipMaxWidth"),
708
+ spinStepperWidth: fromFoundation("spinStepperWidth"),
709
+ spinFieldPaddingInlineStart: fromFoundation("spinFieldPaddingInlineStart"),
710
+ switchWidth: fromFoundation("switchWidth"),
711
+ switchHeight: fromFoundation("switchHeight"),
712
+ switchThumb: fromFoundation("switchThumb"),
713
+ switchPadding: fromFoundation("switchPadding"),
714
+ progressTrackHeightSm: fromFoundation("progressTrackHeightSm"),
715
+ progressTrackHeightLg: fromFoundation("progressTrackHeightLg"),
716
+ sliderTrackHeightSm: fromFoundation("sliderTrackHeightSm"),
717
+ sliderTrackHeightMd: fromFoundation("sliderTrackHeightMd"),
718
+ sliderInteractionHeight: fromFoundation("sliderInteractionHeight"),
719
+ paginationButtonMinWidth: fromFoundation("paginationButtonMinWidth"),
720
+ skeletonDefaultHeight: fromFoundation("skeletonDefaultHeight"),
721
+ dividerShortEnd: fromFoundation("dividerShortEnd"),
722
+ dividerIconSlot: fromFoundation("dividerIconSlot"),
723
+ dividerIconCircleDiameter: fromFoundation("dividerIconCircleDiameter"),
724
+ dividerIconCircleInset: fromFoundation("dividerIconCircleInset"),
725
+ accessibleClip: fromFoundation("accessibleClip"),
726
+ spinnerSizeXSmall: fromFoundation("spinnerSizeXSmall"),
727
+ spinnerSizeSmall: fromFoundation("spinnerSizeSmall"),
728
+ spinnerSizeMedium: fromFoundation("spinnerSizeMedium"),
729
+ spinnerSizeLarge: fromFoundation("spinnerSizeLarge"),
730
+ spinnerSizeXLarge: fromFoundation("spinnerSizeXLarge"),
731
+ spinnerSizeXXLarge: fromFoundation("spinnerSizeXXLarge"),
732
+ spinnerRingWidthXSmall: fromFoundation("spinnerRingWidthXSmall"),
733
+ spinnerRingWidthSmall: fromFoundation("spinnerRingWidthSmall"),
734
+ spinnerRingWidthMedium: fromFoundation("spinnerRingWidthMedium"),
735
+ spinnerRingWidthLarge: fromFoundation("spinnerRingWidthLarge"),
736
+ spinnerRingWidthXLarge: fromFoundation("spinnerRingWidthXLarge"),
737
+ spinnerRingWidthXXLarge: fromFoundation("spinnerRingWidthXXLarge")
738
+ };
739
+
740
+ // src/global/opacities.ts
741
+ var opacities = {
742
+ opacityFull: "1",
743
+ opacityDisabled: "0.5",
744
+ /** Ghost button hover wash (dark) — same alpha as `overlays.ghostButtonHoverDark` */
745
+ opacityGhostHover: "0.08"
746
+ };
747
+
748
+ // src/global/overlays.ts
749
+ var overlays = {
750
+ /** Light-mode scrim snapshot — keep in sync with `surfaceOverlayRgba.light` */
751
+ backdrop: "rgba(0, 0, 0, 0.2)",
752
+ /** Dark Ghost button hover */
753
+ ghostButtonHoverDark: `rgba(255, 255, 255, ${opacities.opacityGhostHover})`
754
+ };
755
+
756
+ // src/global/borderRadii.ts
757
+ var borderRadii = {
758
+ roundedNone: "0",
759
+ roundedXSmall: "2px",
760
+ roundedSmall: "4px",
761
+ roundedMedium: "6px",
762
+ roundedLarge: "8px",
763
+ roundedXLarge: "12px",
764
+ roundedXXLarge: "16px",
765
+ roundedCircle: "9999px"
766
+ };
767
+
768
+ // src/global/typographys.ts
769
+ var { fontFamily } = fontFamilies;
770
+ var { fontWeightRegular, fontWeightMedium, fontWeightSemibold, fontWeightBold, fontWeightHeavy } = fontWeights;
771
+ var typographys = {
772
+ heading1: {
773
+ fontFamily,
774
+ fontSize: fontSizes.fontSize1000,
775
+ fontWeight: fontWeightHeavy,
776
+ lineHeight: lineHeights.lineHeight1000
777
+ },
778
+ heading2: {
779
+ fontFamily,
780
+ fontSize: fontSizes.fontSize900,
781
+ fontWeight: fontWeightBold,
782
+ lineHeight: lineHeights.lineHeight900
783
+ },
784
+ heading3: {
785
+ fontFamily,
786
+ fontSize: fontSizes.fontSize800,
787
+ fontWeight: fontWeightBold,
788
+ lineHeight: lineHeights.lineHeight800
789
+ },
790
+ heading4: {
791
+ fontFamily,
792
+ fontSize: fontSizes.fontSize700,
793
+ fontWeight: fontWeightSemibold,
794
+ lineHeight: lineHeights.lineHeight700
795
+ },
796
+ title1: {
797
+ fontFamily,
798
+ fontSize: fontSizes.fontSize800,
799
+ fontWeight: fontWeightSemibold,
800
+ lineHeight: lineHeights.lineHeight800
801
+ },
802
+ title2: {
803
+ fontFamily,
804
+ fontSize: fontSizes.fontSize700,
805
+ fontWeight: fontWeightSemibold,
806
+ lineHeight: lineHeights.lineHeight700
807
+ },
808
+ title3: {
809
+ fontFamily,
810
+ fontSize: fontSizes.fontSize600,
811
+ fontWeight: fontWeightSemibold,
812
+ lineHeight: lineHeights.lineHeight600
813
+ },
814
+ subTitle1: {
815
+ fontFamily,
816
+ fontSize: fontSizes.fontSize500,
817
+ fontWeight: fontWeightSemibold,
818
+ lineHeight: lineHeights.lineHeight500
819
+ },
820
+ subTitle2: {
821
+ fontFamily,
822
+ fontSize: fontSizes.fontSize400,
823
+ fontWeight: fontWeightSemibold,
824
+ lineHeight: lineHeights.lineHeight400
825
+ },
826
+ body1: {
827
+ fontFamily,
828
+ fontSize: fontSizes.fontSize400,
829
+ fontWeight: fontWeightMedium,
830
+ lineHeight: lineHeights.lineHeight400
831
+ },
832
+ body2: {
833
+ fontFamily,
834
+ fontSize: fontSizes.fontSize300,
835
+ fontWeight: fontWeightMedium,
836
+ lineHeight: lineHeights.lineHeight300
837
+ },
838
+ body3: {
839
+ fontFamily,
840
+ fontSize: fontSizes.fontSize300,
841
+ fontWeight: fontWeightRegular,
842
+ lineHeight: lineHeights.lineHeight300
843
+ },
844
+ body4: {
845
+ fontFamily,
846
+ fontSize: fontSizes.fontSize200,
847
+ fontWeight: fontWeightRegular,
848
+ lineHeight: lineHeights.lineHeight200
849
+ },
850
+ caption1: {
851
+ fontFamily,
852
+ fontSize: fontSizes.fontSize200,
853
+ fontWeight: fontWeightMedium,
854
+ lineHeight: lineHeights.lineHeight200
855
+ },
856
+ caption2: {
857
+ fontFamily,
858
+ fontSize: fontSizes.fontSize200,
859
+ fontWeight: fontWeightRegular,
860
+ lineHeight: lineHeights.lineHeight200
861
+ },
862
+ caption3: {
863
+ fontFamily,
864
+ fontSize: fontSizes.fontSize100,
865
+ fontWeight: fontWeightRegular,
866
+ lineHeight: lineHeights.lineHeight100
867
+ }
868
+ };
869
+
870
+ // src/global/zIndex.ts
871
+ var zIndex = {
872
+ zIndexBackground: "0",
873
+ zIndexContent: "1",
874
+ zIndexOverlay: "100",
875
+ zIndexPopup: "1000",
876
+ zIndexMessages: "10000",
877
+ zIndexFloating: "1000",
878
+ zIndexPriority: "100000",
879
+ zIndexDebug: "999999"
880
+ };
881
+
882
+ // src/global/textAlignments.ts
883
+ var textAlignments = {
884
+ start: "start",
885
+ center: "center",
886
+ end: "end",
887
+ justify: "justify"
888
+ };
889
+ export {
890
+ SEMANTIC_COLOR_ROWS,
891
+ SEMANTIC_FOCUS_PAIRS,
892
+ SEMANTIC_PALETTE_PAIRS,
893
+ SEMANTIC_TEXT,
894
+ borderRadii,
895
+ colors,
896
+ componentSizeFoundationKeys,
897
+ componentSizes,
898
+ fontFamilies,
899
+ fontSizes,
900
+ fontWeights,
901
+ foundationSizes,
902
+ iconSizes,
903
+ lineHeights,
904
+ motion,
905
+ opacities,
906
+ overlays,
907
+ semanticColors,
908
+ semanticFocus,
909
+ semanticInteraction,
910
+ semanticShadows,
911
+ shadow2Lighter,
912
+ shadowColors,
913
+ shadows,
914
+ spacings,
915
+ strokeWidths,
916
+ surfaceOverlayRgba,
917
+ textAlignments,
918
+ toBoxShadow,
919
+ typographys,
920
+ zIndex
921
+ };