@dcs-tech/tokens 0.0.0-stage → 0.16.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/tokens.js ADDED
@@ -0,0 +1,900 @@
1
+ // GENERATED from packages/tokens/src/tokens.css by packages/tokens/scripts/generate.ts.
2
+ // Do not edit: change tokens.css, then run `npm run generate --workspace=@dcs-tech/tokens`.
3
+ // Measured in Chromium 153.0.8010.12.
4
+ // inputs sha256: 79079793a0a45b0ddf326812588aa8516dcd3aa1529408a3fe2de1cb8661aea8
5
+ // output sha256: c3241e76d7e83e314fcaf576048ca62000cb12a740a5541b262e085fa3262592
6
+ /** The tokens in the light theme, at UI scale 1. */
7
+ export const light = {
8
+ primaryHue: 211,
9
+ secondaryHue: 291,
10
+ successHue: 123,
11
+ warningHue: 30,
12
+ errorHue: 0,
13
+ infoHue: 201,
14
+ neutralHue: 0,
15
+ bgPrimary: '#f5f5f5',
16
+ bgSecondary: '#ffffff',
17
+ bgTertiary: '#ebebeb',
18
+ textPrimary: '#0f0f0f',
19
+ textSecondary: '#616161',
20
+ textTertiary: '#696969',
21
+ borderColor: '#e6e6e6',
22
+ borderHover: '#d1d1d1',
23
+ borderFocus: '#1972d2',
24
+ shadowSm: [{ offsetX: 0, offsetY: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.03)', inset: false }],
25
+ shadowMd: [{ offsetX: 0, offsetY: 1, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.08)', inset: false }],
26
+ shadowLg: [{ offsetX: 0, offsetY: 2, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.1)', inset: false }],
27
+ shadowXl: [{ offsetX: 0, offsetY: 4, blur: 16, spread: 0, color: 'rgba(0, 0, 0, 0.12)', inset: false }],
28
+ shadowControl: [{ offsetX: 0, offsetY: 1, blur: 3, spread: 0, color: 'rgba(0, 0, 0, 0.2)', inset: false }],
29
+ shadowPopover: [{ offsetX: 0, offsetY: 12, blur: 32, spread: 0, color: 'rgba(0, 0, 0, 0.16)', inset: false }],
30
+ shadowDialog: [{ offsetX: 0, offsetY: 24, blur: 48, spread: -12, color: 'rgba(0, 0, 0, 0.18)', inset: false }, { offsetX: 0, offsetY: 0, blur: 0, spread: 1, color: 'rgba(0, 0, 0, 0.05)', inset: false }],
31
+ shadowEdge: [{ offsetX: 0, offsetY: 0, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.2)', inset: false }],
32
+ scrim: 'rgba(0, 0, 0, 0.45)',
33
+ scrimSoft: 'rgba(0, 0, 0, 0.3)',
34
+ accentPrimary: '#1972d2',
35
+ accentPrimaryHover: '#1561b2',
36
+ accentPrimaryLight: '#daeafb',
37
+ accentSecondary: '#9b27b0',
38
+ accentSecondaryHover: '#812092',
39
+ accentSecondaryLight: '#f5e2f9',
40
+ success: '#2f7f33',
41
+ successHover: '#256528',
42
+ successLight: '#e1f4e2',
43
+ warning: '#ed7802',
44
+ warningHover: '#ca6602',
45
+ warningLight: '#ffebd7',
46
+ error: '#d33131',
47
+ errorHover: '#b92727',
48
+ errorLight: '#fae6e6',
49
+ info: '#0287cf',
50
+ infoHover: '#029bed',
51
+ infoLight: '#d7f1ff',
52
+ onPrimary: '#ffffff',
53
+ onSecondary: '#ffffff',
54
+ onSuccess: '#ffffff',
55
+ onWarning: '#0f0f0f',
56
+ onError: '#ffffff',
57
+ onInfo: '#0f0f0f',
58
+ cardBg: '#ffffff',
59
+ cardBorder: '#e6e6e6',
60
+ cardShadow: [{ offsetX: 0, offsetY: 1, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.08)', inset: false }],
61
+ transitionSpeed: 200,
62
+ borderRadiusXs: 4,
63
+ borderRadiusSm: 8,
64
+ borderRadius: 12,
65
+ borderRadiusLg: 16,
66
+ borderRadiusFull: 999,
67
+ uiScale: 1,
68
+ fieldHeightXxs: 28,
69
+ fieldHeightXs: 32,
70
+ fieldHeightSm: 36,
71
+ fieldHeightMd: 42,
72
+ fieldHeightLg: 52,
73
+ fieldHeightXl: 60,
74
+ fieldPaddingXXxs: 6,
75
+ fieldPaddingXXs: 8,
76
+ fieldPaddingXSm: 10,
77
+ fieldPaddingXMd: 12,
78
+ fieldPaddingXLg: 16,
79
+ fieldPaddingXXl: 20,
80
+ fieldPaddingYXxs: 3,
81
+ fieldPaddingYXs: 5,
82
+ fieldPaddingYSm: 7,
83
+ fieldPaddingYMd: 9,
84
+ fieldPaddingYLg: 12,
85
+ fieldPaddingYXl: 15,
86
+ fieldBorderHover: '#919191',
87
+ focusRingWidth: 2,
88
+ focusRingOffset: 1,
89
+ focusHaloWidth: 3,
90
+ fieldLabelWidth: 160,
91
+ fieldControlMaxWidth: 320,
92
+ appBarHeight: 52,
93
+ sidebarWidth: 240,
94
+ sidebarWidthCollapsed: 56,
95
+ fieldBlockSpacing: 16,
96
+ controlHaloSize: 1.9,
97
+ controlHaloHover: 'rgba(128, 128, 128, 0.1)',
98
+ controlHaloFocus: 'rgba(128, 128, 128, 0.2)',
99
+ controlHaloPulseDuration: 2500,
100
+ controlHaloTintHover: 0.14,
101
+ controlHaloTintFocus: 0.24,
102
+ controlSizeXxs: 12,
103
+ controlSizeXs: 14,
104
+ controlSizeSm: 16,
105
+ controlSizeMd: 20,
106
+ controlSizeLg: 24,
107
+ controlSizeXl: 28,
108
+ fieldAffixSpaceXxs: 26,
109
+ fieldAffixSpaceXs: 28,
110
+ fieldAffixSpaceSm: 32,
111
+ fieldAffixSpaceMd: 36,
112
+ fieldAffixSpaceLg: 40,
113
+ fieldAffixSpaceXl: 44,
114
+ fontSans: ['PT Sans', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
115
+ fontMono: ['ui-monospace', 'SF Mono', 'SFMono-Regular', 'Cascadia Code', 'Fira Code', 'Menlo', 'Consolas', 'monospace'],
116
+ fontSizeXxs: 11,
117
+ fontSizeXs: 12,
118
+ fontSizeSm: 13,
119
+ fontSizeMd: 14,
120
+ fontSizeLg: 16,
121
+ fontSizeXl: 18,
122
+ iconSize3xs: 10,
123
+ iconSizeXxs: 11,
124
+ iconSizeXs: 12,
125
+ iconSizeSm: 13,
126
+ iconSizeMd: 14,
127
+ iconSizeLg: 16,
128
+ iconSizeXl: 18,
129
+ iconSize2xl: 20,
130
+ iconSize3xl: 24,
131
+ iconSize4xl: 28,
132
+ iconSlotButton: 16,
133
+ iconSlotProminent: 18,
134
+ iconSlotNav: 16,
135
+ iconSlotInline: 14,
136
+ iconSlotField: 16,
137
+ iconSlotDense: 13,
138
+ iconSlotDefault: 16,
139
+ iconTextRatio: 1,
140
+ iconSizeAction: 14,
141
+ iconSizeMarker: 13,
142
+ iconSizeChip: 16,
143
+ iconSizeStatus: 22,
144
+ iconDuotoneOpacity: 0.16,
145
+ fontSizeH1: { min: 32, max: 40, fromWidth: 399.85, toWidth: 1000 },
146
+ fontSizeH2: { min: 28, max: 32, fromWidth: 400.3, toWidth: 1000 },
147
+ fontSizeH3: { min: 24, max: 28, fromWidth: 400.3, toWidth: 1000 },
148
+ fontSizeH4: { min: 20, max: 24, fromWidth: 400.3, toWidth: 1000 },
149
+ fontSizeH5: { min: 18, max: 20, fromWidth: 399.4, toWidth: 1000 },
150
+ fontSizeH6: { min: 16, max: 18, fromWidth: 399.4, toWidth: 1000 },
151
+ lineHeightTight: 1.2,
152
+ lineHeightSnug: 1.4,
153
+ lineHeightNormal: 1.5,
154
+ fontWeightRegular: 400,
155
+ fontWeightMedium: 500,
156
+ fontWeightSemibold: 600,
157
+ fontWeightBold: 700,
158
+ spacingXxs: 2,
159
+ spacingXs: 4,
160
+ spacingSm: 6,
161
+ spacingMd: 8,
162
+ spacingLg: 12,
163
+ spacingXl: 16,
164
+ spacing2xl: 24,
165
+ spacing3xl: 32,
166
+ labelSpacing: 8,
167
+ messageSpacing: 6,
168
+ breakpointMobile: 600,
169
+ breakpointTablet: 960,
170
+ hoverOverlay: 'rgba(0, 0, 0, 0.04)',
171
+ activeOverlay: 'rgba(25, 114, 210, 0.08)',
172
+ selectedBg: '#daeafb',
173
+ selectedBorder: '#1972d2',
174
+ disabledBg: '#f2f2f2',
175
+ disabledText: '#7a7a7a',
176
+ disabledBorder: '#e0e0e0',
177
+ statusInStock: '#2f7f33',
178
+ statusInStockBg: '#e1f4e2',
179
+ statusLowStock: '#ed7802',
180
+ statusLowStockBg: '#ffebd7',
181
+ statusOutStock: '#d33131',
182
+ statusOutStockBg: '#fae6e6',
183
+ badgeBg: '#ebebeb',
184
+ badgeText: '#616161',
185
+ tooltipBg: '#333333',
186
+ tooltipText: '#fafafa',
187
+ elevation0: [],
188
+ elevation1: [{ offsetX: 0, offsetY: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.03)', inset: false }],
189
+ elevation2: [{ offsetX: 0, offsetY: 1, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.08)', inset: false }],
190
+ elevation3: [{ offsetX: 0, offsetY: 2, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.1)', inset: false }],
191
+ elevation4: [{ offsetX: 0, offsetY: 4, blur: 16, spread: 0, color: 'rgba(0, 0, 0, 0.12)', inset: false }],
192
+ cardHoverShadow: [{ offsetX: 0, offsetY: 4, blur: 12, spread: 0, color: 'rgba(0, 0, 0, 0.15)', inset: false }],
193
+ gridGapSm: 8,
194
+ gridGapMd: 12,
195
+ gridGapLg: 16,
196
+ gridItemMin: 240,
197
+ gridItemMax: 320,
198
+ flashGreen: '#2f7f33',
199
+ flashRed: '#d33131',
200
+ flashAmber: '#ffbf00',
201
+ flashBlue: '#0287cf',
202
+ flashPurple: '#9457d1',
203
+ flashTeal: '#009485',
204
+ flashOrange: '#ed7802',
205
+ flashPink: '#e92066',
206
+ brandUpiOrange: '#ea6405',
207
+ brandUpiGreen: '#268150',
208
+ brandWhite: '#ffffff',
209
+ brandWhatsappGreen: '#25d366',
210
+ brandFacebookBlue: '#0866ff',
211
+ brandInstagramYellow: '#ffd600',
212
+ brandInstagramOrange: '#ff7a00',
213
+ brandInstagramPink: '#ff0069',
214
+ brandInstagramPurple: '#d300c5',
215
+ brandInstagramViolet: '#7638fa',
216
+ brandX: '#000000',
217
+ brandYoutubeRed: '#ff0000',
218
+ brandTelegramBlue: '#26a5e4',
219
+ brandGoogleBlue: '#4285f4',
220
+ brandGoogleRed: '#ea4335',
221
+ brandGoogleYellow: '#fbbc04',
222
+ brandGoogleGreen: '#34a853',
223
+ brandGoogleMapsBlue: '#1a73e8',
224
+ brandAppStoreBlue: '#0d96f6',
225
+ brandApple: '#000000',
226
+ brandGithub: '#181717',
227
+ brandGooglePayGrey: '#5f6368',
228
+ brandPhonepePurple: '#5f259f',
229
+ brandPaytm: '#20336b',
230
+ brandPaytmCyan: '#00baf2',
231
+ brandVisa: '#1a1f71',
232
+ brandMastercardRed: '#eb001b',
233
+ brandMastercardYellow: '#f79e1b',
234
+ brandMastercardOrange: '#ff5f00',
235
+ brandLinkedin: '#0a66c2',
236
+ brandMicrosoftRed: '#f35325',
237
+ brandMicrosoftGreen: '#81bc06',
238
+ brandMicrosoftBlue: '#05a6f0',
239
+ brandMicrosoftYellow: '#ffba08',
240
+ brandRupay: '#1b3281',
241
+ brandRupayOrange: '#f47920',
242
+ brandRupayGreen: '#008c44',
243
+ brandGoogleButtonLightFill: '#ffffff',
244
+ brandGoogleButtonLightStroke: '#747775',
245
+ brandGoogleButtonLightText: '#1f1f1f',
246
+ brandGoogleButtonDarkFill: '#131314',
247
+ brandGoogleButtonDarkStroke: '#8e918f',
248
+ brandGoogleButtonDarkText: '#e3e3e3',
249
+ brandGoogleButtonNeutralFill: '#f2f2f2',
250
+ brandGoogleButtonNeutralStroke: 'rgba(0, 0, 0, 0)',
251
+ brandGoogleButtonNeutralText: '#1f1f1f',
252
+ brandGoogleButtonHeight: 40,
253
+ brandGoogleButtonLogoSize: 20,
254
+ brandGoogleButtonPaddingStart: 12,
255
+ brandGoogleButtonLogoGap: 10,
256
+ brandGoogleButtonPaddingEnd: 12,
257
+ brandGoogleButtonRadius: 4,
258
+ brandGoogleButtonFontSize: 14,
259
+ brandGoogleButtonLineHeight: 20,
260
+ brandGoogleButtonDisabledOpacity: 0.38,
261
+ brandGoogleButtonDisabledStrokeOpacity: 0.12,
262
+ durationMicro: 100,
263
+ durationShort: 150,
264
+ durationMedium: 200,
265
+ durationLong: 300,
266
+ easeStandard: { type: 'cubicBezier', x1: 0.2, y1: 0, x2: 0, y2: 1 },
267
+ easeEnter: { type: 'cubicBezier', x1: 0.05, y1: 0.7, x2: 0.1, y2: 1 },
268
+ easeExit: { type: 'cubicBezier', x1: 0.3, y1: 0, x2: 0.8, y2: 0.15 },
269
+ easeConstant: { type: 'linear', stops: [{ value: 0, at: 0 }, { value: 1, at: 1 }] },
270
+ easeSpring: { type: 'linear', stops: [{ value: 0, at: 0 }, { value: 0.074, at: 0.05 }, { value: 0.239, at: 0.1 }, { value: 0.432, at: 0.15 }, { value: 0.614, at: 0.2 }, { value: 0.767, at: 0.25 }, { value: 0.882, at: 0.3 }, { value: 0.962, at: 0.35 }, { value: 1.011, at: 0.4 }, { value: 1.036, at: 0.45 }, { value: 1.045, at: 0.5 }, { value: 1.044, at: 0.55 }, { value: 1.038, at: 0.6 }, { value: 1.029, at: 0.65 }, { value: 1.021, at: 0.7 }, { value: 1.013, at: 0.75 }, { value: 1.007, at: 0.8 }, { value: 1.003, at: 0.85 }, { value: 1, at: 0.9 }, { value: 0.999, at: 0.95 }, { value: 1, at: 1 }] },
271
+ motionScale: 1,
272
+ motionEnterOffset: 4,
273
+ motionEnterScale: 0.96,
274
+ stateHoverOpacity: 0.08,
275
+ statePressOpacity: 0.14,
276
+ pressScale: 0.97,
277
+ rippleDuration: 550,
278
+ rippleOpacity: 0.3,
279
+ transitionFast: 150,
280
+ transitionBase: 200,
281
+ transitionSlow: 300,
282
+ transitionSlower: 400,
283
+ easeInOut: { type: 'cubicBezier', x1: 0.4, y1: 0, x2: 0.2, y2: 1 },
284
+ easeOut: { type: 'cubicBezier', x1: 0, y1: 0, x2: 0.2, y2: 1 },
285
+ easeIn: { type: 'cubicBezier', x1: 0.4, y1: 0, x2: 1, y2: 1 },
286
+ zBase: 0,
287
+ zDropdown: 100,
288
+ zSticky: 200,
289
+ zFixed: 300,
290
+ zAppbar: 300,
291
+ zModalBackdrop: 400,
292
+ zModal: 500,
293
+ zCommandPalette: 550,
294
+ zPopover: 560,
295
+ zToast: 600,
296
+ zTooltip: 700,
297
+ primary1: '#f8fbfe',
298
+ primary2: '#f2f7fd',
299
+ primary3: '#e7f0fb',
300
+ primary4: '#dce9fa',
301
+ primary5: '#cfe1f8',
302
+ primary6: '#bdd6f4',
303
+ primary7: '#a3c5ef',
304
+ primary8: '#7dace7',
305
+ primary9: '#1972d2',
306
+ primary10: '#1561b2',
307
+ primary11: '#1d4f89',
308
+ primary12: '#19304c',
309
+ secondary1: '#fcf9fd',
310
+ secondary2: '#faf3fb',
311
+ secondary3: '#f5e9f7',
312
+ secondary4: '#f0def4',
313
+ secondary5: '#ebd2ef',
314
+ secondary6: '#e3c2e9',
315
+ secondary7: '#d8aae0',
316
+ secondary8: '#c685d2',
317
+ secondary9: '#9b27b0',
318
+ secondary10: '#812092',
319
+ secondary11: '#682474',
320
+ secondary12: '#3c1d42',
321
+ success1: '#f9fbf9',
322
+ success2: '#f2f7f2',
323
+ success3: '#e8f1e8',
324
+ success4: '#deeadd',
325
+ success5: '#d1e2d1',
326
+ success6: '#c1d8c0',
327
+ success7: '#a9c8a8',
328
+ success8: '#84b183',
329
+ success9: '#2f7f33',
330
+ success10: '#256528',
331
+ success11: '#275628',
332
+ success12: '#1d331d',
333
+ warning1: '#fffbf9',
334
+ warning2: '#fff7f3',
335
+ warning3: '#fff1e8',
336
+ warning4: '#ffeade',
337
+ warning5: '#ffe3d1',
338
+ warning6: '#fed8c1',
339
+ warning7: '#fcc8a8',
340
+ warning8: '#f9b082',
341
+ warning9: '#ed7802',
342
+ warning10: '#ca6602',
343
+ warning11: '#9a521c',
344
+ warning12: '#54321b',
345
+ error1: '#fff9f9',
346
+ error2: '#fff4f2',
347
+ error3: '#feeae8',
348
+ error4: '#fde1dd',
349
+ error5: '#fcd5d1',
350
+ error6: '#fac6c0',
351
+ error7: '#f6afa8',
352
+ error8: '#ed8d83',
353
+ error9: '#d33131',
354
+ error10: '#b92727',
355
+ error11: '#8b2b27',
356
+ error12: '#4e201d',
357
+ info1: '#f9fbfe',
358
+ info2: '#f2f8fd',
359
+ info3: '#e8f2fb',
360
+ info4: '#ddecf9',
361
+ info5: '#d1e5f6',
362
+ info6: '#c0dcf3',
363
+ info7: '#a6cded',
364
+ info8: '#80b8e4',
365
+ info9: '#0287cf',
366
+ info10: '#029bed',
367
+ info11: '#1a5b87',
368
+ info12: '#1a364b',
369
+ neutral1: '#f9f9f9',
370
+ neutral2: '#f4f4f4',
371
+ neutral3: '#ececec',
372
+ neutral4: '#e3e3e3',
373
+ neutral5: '#dbdbdb',
374
+ neutral6: '#d0d0d0',
375
+ neutral7: '#bebebe',
376
+ neutral8: '#9f9f9f',
377
+ neutral9: '#777777',
378
+ neutral10: '#686868',
379
+ neutral11: '#515151',
380
+ neutral12: '#1e1e1e',
381
+ accentPrimarySoft: 'rgba(25, 114, 210, 0.12)',
382
+ accentPrimaryText: '#1d4f89',
383
+ accentSecondarySoft: 'rgba(155, 39, 176, 0.12)',
384
+ accentSecondaryText: '#682474',
385
+ successSoft: 'rgba(47, 127, 51, 0.12)',
386
+ successText: '#275628',
387
+ warningSoft: 'rgba(237, 120, 2, 0.12)',
388
+ warningText: '#9a521c',
389
+ errorSoft: 'rgba(211, 49, 49, 0.12)',
390
+ errorText: '#8b2b27',
391
+ infoSoft: 'rgba(2, 135, 207, 0.12)',
392
+ infoText: '#1a5b87',
393
+ fontSansTamil: ['PT Sans', 'Noto Sans Tamil', 'Nirmala UI', 'Latha', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
394
+ fontSansDevanagari: ['PT Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
395
+ lineHeightTightTamil: 1.35,
396
+ lineHeightSnugTamil: 1.6,
397
+ lineHeightNormalTamil: 1.7,
398
+ lineHeightTightDevanagari: 1.35,
399
+ lineHeightSnugDevanagari: 1.55,
400
+ lineHeightNormalDevanagari: 1.65,
401
+ };
402
+ /** The tokens in the dark theme, at UI scale 1. */
403
+ export const dark = {
404
+ primaryHue: 211,
405
+ secondaryHue: 291,
406
+ successHue: 123,
407
+ warningHue: 30,
408
+ errorHue: 0,
409
+ infoHue: 201,
410
+ neutralHue: 0,
411
+ bgPrimary: '#0f0f0f',
412
+ bgSecondary: '#212121',
413
+ bgTertiary: '#292929',
414
+ textPrimary: '#f2f2f2',
415
+ textSecondary: '#ababab',
416
+ textTertiary: '#949494',
417
+ borderColor: '#404040',
418
+ borderHover: '#4f4f4f',
419
+ borderFocus: '#90c3f9',
420
+ shadowSm: [{ offsetX: 0, offsetY: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.5)', inset: false }],
421
+ shadowMd: [{ offsetX: 0, offsetY: 1, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.6)', inset: false }],
422
+ shadowLg: [{ offsetX: 0, offsetY: 2, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.7)', inset: false }],
423
+ shadowXl: [{ offsetX: 0, offsetY: 4, blur: 16, spread: 0, color: 'rgba(0, 0, 0, 0.8)', inset: false }],
424
+ shadowControl: [{ offsetX: 0, offsetY: 1, blur: 3, spread: 0, color: 'rgba(0, 0, 0, 0.6)', inset: false }],
425
+ shadowPopover: [{ offsetX: 0, offsetY: 12, blur: 32, spread: 0, color: 'rgba(0, 0, 0, 0.6)', inset: false }],
426
+ shadowDialog: [{ offsetX: 0, offsetY: 24, blur: 48, spread: -12, color: 'rgba(0, 0, 0, 0.7)', inset: false }, { offsetX: 0, offsetY: 0, blur: 0, spread: 1, color: 'rgba(0, 0, 0, 0.4)', inset: false }],
427
+ shadowEdge: [{ offsetX: 0, offsetY: 0, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.6)', inset: false }],
428
+ scrim: 'rgba(0, 0, 0, 0.65)',
429
+ scrimSoft: 'rgba(0, 0, 0, 0.5)',
430
+ accentPrimary: '#90c3f9',
431
+ accentPrimaryHover: '#b1d5fb',
432
+ accentPrimaryLight: '#06366b',
433
+ accentSecondary: '#cd92d8',
434
+ accentSecondaryHover: '#dbb0e3',
435
+ accentSecondaryLight: '#4b1e52',
436
+ success: '#68bb6c',
437
+ successHover: '#80c684',
438
+ successLight: '#1c3f1e',
439
+ warning: '#ff9933',
440
+ warningHover: '#ffab57',
441
+ warningLight: '#5c2e00',
442
+ error: '#f04c4c',
443
+ errorHover: '#f36d6d',
444
+ errorLight: '#550707',
445
+ info: '#28aef6',
446
+ infoHover: '#4abbf7',
447
+ infoLight: '#043b58',
448
+ onPrimary: '#0f0f0f',
449
+ onSecondary: '#0f0f0f',
450
+ onSuccess: '#0f0f0f',
451
+ onWarning: '#0f0f0f',
452
+ onError: '#0f0f0f',
453
+ onInfo: '#0f0f0f',
454
+ cardBg: '#212121',
455
+ cardBorder: '#404040',
456
+ cardShadow: [{ offsetX: 0, offsetY: 2, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.7)', inset: false }],
457
+ transitionSpeed: 200,
458
+ borderRadiusXs: 4,
459
+ borderRadiusSm: 8,
460
+ borderRadius: 12,
461
+ borderRadiusLg: 16,
462
+ borderRadiusFull: 999,
463
+ uiScale: 1,
464
+ fieldHeightXxs: 28,
465
+ fieldHeightXs: 32,
466
+ fieldHeightSm: 36,
467
+ fieldHeightMd: 42,
468
+ fieldHeightLg: 52,
469
+ fieldHeightXl: 60,
470
+ fieldPaddingXXxs: 6,
471
+ fieldPaddingXXs: 8,
472
+ fieldPaddingXSm: 10,
473
+ fieldPaddingXMd: 12,
474
+ fieldPaddingXLg: 16,
475
+ fieldPaddingXXl: 20,
476
+ fieldPaddingYXxs: 3,
477
+ fieldPaddingYXs: 5,
478
+ fieldPaddingYSm: 7,
479
+ fieldPaddingYMd: 9,
480
+ fieldPaddingYLg: 12,
481
+ fieldPaddingYXl: 15,
482
+ fieldBorderHover: '#8c8c8c',
483
+ focusRingWidth: 2,
484
+ focusRingOffset: 1,
485
+ focusHaloWidth: 3,
486
+ fieldLabelWidth: 160,
487
+ fieldControlMaxWidth: 320,
488
+ appBarHeight: 52,
489
+ sidebarWidth: 240,
490
+ sidebarWidthCollapsed: 56,
491
+ fieldBlockSpacing: 16,
492
+ controlHaloSize: 1.9,
493
+ controlHaloHover: 'rgba(255, 255, 255, 0.1)',
494
+ controlHaloFocus: 'rgba(255, 255, 255, 0.2)',
495
+ controlHaloPulseDuration: 2500,
496
+ controlHaloTintHover: 0.14,
497
+ controlHaloTintFocus: 0.24,
498
+ controlSizeXxs: 12,
499
+ controlSizeXs: 14,
500
+ controlSizeSm: 16,
501
+ controlSizeMd: 20,
502
+ controlSizeLg: 24,
503
+ controlSizeXl: 28,
504
+ fieldAffixSpaceXxs: 26,
505
+ fieldAffixSpaceXs: 28,
506
+ fieldAffixSpaceSm: 32,
507
+ fieldAffixSpaceMd: 36,
508
+ fieldAffixSpaceLg: 40,
509
+ fieldAffixSpaceXl: 44,
510
+ fontSans: ['PT Sans', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
511
+ fontMono: ['ui-monospace', 'SF Mono', 'SFMono-Regular', 'Cascadia Code', 'Fira Code', 'Menlo', 'Consolas', 'monospace'],
512
+ fontSizeXxs: 11,
513
+ fontSizeXs: 12,
514
+ fontSizeSm: 13,
515
+ fontSizeMd: 14,
516
+ fontSizeLg: 16,
517
+ fontSizeXl: 18,
518
+ iconSize3xs: 10,
519
+ iconSizeXxs: 11,
520
+ iconSizeXs: 12,
521
+ iconSizeSm: 13,
522
+ iconSizeMd: 14,
523
+ iconSizeLg: 16,
524
+ iconSizeXl: 18,
525
+ iconSize2xl: 20,
526
+ iconSize3xl: 24,
527
+ iconSize4xl: 28,
528
+ iconSlotButton: 16,
529
+ iconSlotProminent: 18,
530
+ iconSlotNav: 16,
531
+ iconSlotInline: 14,
532
+ iconSlotField: 16,
533
+ iconSlotDense: 13,
534
+ iconSlotDefault: 16,
535
+ iconTextRatio: 1,
536
+ iconSizeAction: 14,
537
+ iconSizeMarker: 13,
538
+ iconSizeChip: 16,
539
+ iconSizeStatus: 22,
540
+ iconDuotoneOpacity: 0.22,
541
+ fontSizeH1: { min: 32, max: 40, fromWidth: 399.85, toWidth: 1000 },
542
+ fontSizeH2: { min: 28, max: 32, fromWidth: 400.3, toWidth: 1000 },
543
+ fontSizeH3: { min: 24, max: 28, fromWidth: 400.3, toWidth: 1000 },
544
+ fontSizeH4: { min: 20, max: 24, fromWidth: 400.3, toWidth: 1000 },
545
+ fontSizeH5: { min: 18, max: 20, fromWidth: 399.4, toWidth: 1000 },
546
+ fontSizeH6: { min: 16, max: 18, fromWidth: 399.4, toWidth: 1000 },
547
+ lineHeightTight: 1.2,
548
+ lineHeightSnug: 1.4,
549
+ lineHeightNormal: 1.5,
550
+ fontWeightRegular: 400,
551
+ fontWeightMedium: 500,
552
+ fontWeightSemibold: 600,
553
+ fontWeightBold: 700,
554
+ spacingXxs: 2,
555
+ spacingXs: 4,
556
+ spacingSm: 6,
557
+ spacingMd: 8,
558
+ spacingLg: 12,
559
+ spacingXl: 16,
560
+ spacing2xl: 24,
561
+ spacing3xl: 32,
562
+ labelSpacing: 8,
563
+ messageSpacing: 6,
564
+ breakpointMobile: 600,
565
+ breakpointTablet: 960,
566
+ hoverOverlay: 'rgba(255, 255, 255, 0.08)',
567
+ activeOverlay: 'rgba(25, 114, 210, 0.08)',
568
+ selectedBg: '#06366b',
569
+ selectedBorder: '#90c3f9',
570
+ disabledBg: '#2e2e2e',
571
+ disabledText: '#8f8f8f',
572
+ disabledBorder: '#474747',
573
+ statusInStock: '#68bb6c',
574
+ statusInStockBg: '#1c3f1e',
575
+ statusLowStock: '#ff9933',
576
+ statusLowStockBg: '#5c2e00',
577
+ statusOutStock: '#f04c4c',
578
+ statusOutStockBg: '#550707',
579
+ badgeBg: '#333333',
580
+ badgeText: '#ababab',
581
+ tooltipBg: '#4d4d4d',
582
+ tooltipText: '#f5f5f5',
583
+ elevation0: [],
584
+ elevation1: [{ offsetX: 0, offsetY: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.5)', inset: false }],
585
+ elevation2: [{ offsetX: 0, offsetY: 1, blur: 4, spread: 0, color: 'rgba(0, 0, 0, 0.6)', inset: false }],
586
+ elevation3: [{ offsetX: 0, offsetY: 2, blur: 8, spread: 0, color: 'rgba(0, 0, 0, 0.7)', inset: false }],
587
+ elevation4: [{ offsetX: 0, offsetY: 4, blur: 16, spread: 0, color: 'rgba(0, 0, 0, 0.8)', inset: false }],
588
+ cardHoverShadow: [{ offsetX: 0, offsetY: 4, blur: 12, spread: 0, color: 'rgba(0, 0, 0, 0.4)', inset: false }],
589
+ gridGapSm: 8,
590
+ gridGapMd: 12,
591
+ gridGapLg: 16,
592
+ gridItemMin: 240,
593
+ gridItemMax: 320,
594
+ flashGreen: '#68bb6c',
595
+ flashRed: '#f04c4c',
596
+ flashAmber: '#ffbf00',
597
+ flashBlue: '#28aef6',
598
+ flashPurple: '#9457d1',
599
+ flashTeal: '#009485',
600
+ flashOrange: '#ff9933',
601
+ flashPink: '#e92066',
602
+ brandUpiOrange: '#ea6405',
603
+ brandUpiGreen: '#268150',
604
+ brandWhite: '#ffffff',
605
+ brandWhatsappGreen: '#25d366',
606
+ brandFacebookBlue: '#0866ff',
607
+ brandInstagramYellow: '#ffd600',
608
+ brandInstagramOrange: '#ff7a00',
609
+ brandInstagramPink: '#ff0069',
610
+ brandInstagramPurple: '#d300c5',
611
+ brandInstagramViolet: '#7638fa',
612
+ brandX: '#ffffff',
613
+ brandYoutubeRed: '#ff0000',
614
+ brandTelegramBlue: '#26a5e4',
615
+ brandGoogleBlue: '#4285f4',
616
+ brandGoogleRed: '#ea4335',
617
+ brandGoogleYellow: '#fbbc04',
618
+ brandGoogleGreen: '#34a853',
619
+ brandGoogleMapsBlue: '#1a73e8',
620
+ brandAppStoreBlue: '#0d96f6',
621
+ brandApple: '#ffffff',
622
+ brandGithub: '#ffffff',
623
+ brandGooglePayGrey: '#ffffff',
624
+ brandPhonepePurple: '#5f259f',
625
+ brandPaytm: '#ffffff',
626
+ brandPaytmCyan: '#00baf2',
627
+ brandVisa: '#ffffff',
628
+ brandMastercardRed: '#eb001b',
629
+ brandMastercardYellow: '#f79e1b',
630
+ brandMastercardOrange: '#ff5f00',
631
+ brandLinkedin: '#0a66c2',
632
+ brandMicrosoftRed: '#f35325',
633
+ brandMicrosoftGreen: '#81bc06',
634
+ brandMicrosoftBlue: '#05a6f0',
635
+ brandMicrosoftYellow: '#ffba08',
636
+ brandRupay: '#ffffff',
637
+ brandRupayOrange: '#f47920',
638
+ brandRupayGreen: '#008c44',
639
+ brandGoogleButtonLightFill: '#ffffff',
640
+ brandGoogleButtonLightStroke: '#747775',
641
+ brandGoogleButtonLightText: '#1f1f1f',
642
+ brandGoogleButtonDarkFill: '#131314',
643
+ brandGoogleButtonDarkStroke: '#8e918f',
644
+ brandGoogleButtonDarkText: '#e3e3e3',
645
+ brandGoogleButtonNeutralFill: '#f2f2f2',
646
+ brandGoogleButtonNeutralStroke: 'rgba(0, 0, 0, 0)',
647
+ brandGoogleButtonNeutralText: '#1f1f1f',
648
+ brandGoogleButtonHeight: 40,
649
+ brandGoogleButtonLogoSize: 20,
650
+ brandGoogleButtonPaddingStart: 12,
651
+ brandGoogleButtonLogoGap: 10,
652
+ brandGoogleButtonPaddingEnd: 12,
653
+ brandGoogleButtonRadius: 4,
654
+ brandGoogleButtonFontSize: 14,
655
+ brandGoogleButtonLineHeight: 20,
656
+ brandGoogleButtonDisabledOpacity: 0.38,
657
+ brandGoogleButtonDisabledStrokeOpacity: 0.12,
658
+ durationMicro: 100,
659
+ durationShort: 150,
660
+ durationMedium: 200,
661
+ durationLong: 300,
662
+ easeStandard: { type: 'cubicBezier', x1: 0.2, y1: 0, x2: 0, y2: 1 },
663
+ easeEnter: { type: 'cubicBezier', x1: 0.05, y1: 0.7, x2: 0.1, y2: 1 },
664
+ easeExit: { type: 'cubicBezier', x1: 0.3, y1: 0, x2: 0.8, y2: 0.15 },
665
+ easeConstant: { type: 'linear', stops: [{ value: 0, at: 0 }, { value: 1, at: 1 }] },
666
+ easeSpring: { type: 'linear', stops: [{ value: 0, at: 0 }, { value: 0.074, at: 0.05 }, { value: 0.239, at: 0.1 }, { value: 0.432, at: 0.15 }, { value: 0.614, at: 0.2 }, { value: 0.767, at: 0.25 }, { value: 0.882, at: 0.3 }, { value: 0.962, at: 0.35 }, { value: 1.011, at: 0.4 }, { value: 1.036, at: 0.45 }, { value: 1.045, at: 0.5 }, { value: 1.044, at: 0.55 }, { value: 1.038, at: 0.6 }, { value: 1.029, at: 0.65 }, { value: 1.021, at: 0.7 }, { value: 1.013, at: 0.75 }, { value: 1.007, at: 0.8 }, { value: 1.003, at: 0.85 }, { value: 1, at: 0.9 }, { value: 0.999, at: 0.95 }, { value: 1, at: 1 }] },
667
+ motionScale: 1,
668
+ motionEnterOffset: 4,
669
+ motionEnterScale: 0.96,
670
+ stateHoverOpacity: 0.08,
671
+ statePressOpacity: 0.14,
672
+ pressScale: 0.97,
673
+ rippleDuration: 550,
674
+ rippleOpacity: 0.3,
675
+ transitionFast: 150,
676
+ transitionBase: 200,
677
+ transitionSlow: 300,
678
+ transitionSlower: 400,
679
+ easeInOut: { type: 'cubicBezier', x1: 0.4, y1: 0, x2: 0.2, y2: 1 },
680
+ easeOut: { type: 'cubicBezier', x1: 0, y1: 0, x2: 0.2, y2: 1 },
681
+ easeIn: { type: 'cubicBezier', x1: 0.4, y1: 0, x2: 1, y2: 1 },
682
+ zBase: 0,
683
+ zDropdown: 100,
684
+ zSticky: 200,
685
+ zFixed: 300,
686
+ zAppbar: 300,
687
+ zModalBackdrop: 400,
688
+ zModal: 500,
689
+ zCommandPalette: 550,
690
+ zPopover: 560,
691
+ zToast: 600,
692
+ zTooltip: 700,
693
+ primary1: '#242527',
694
+ primary2: '#27292c',
695
+ primary3: '#2c3135',
696
+ primary4: '#31383f',
697
+ primary5: '#38414b',
698
+ primary6: '#404d5b',
699
+ primary7: '#4d6074',
700
+ primary8: '#617d9b',
701
+ primary9: '#90c3f9',
702
+ primary10: '#b1d5fb',
703
+ primary11: '#b2d3f8',
704
+ primary12: '#d0e2f6',
705
+ secondary1: '#262426',
706
+ secondary2: '#2a272a',
707
+ secondary3: '#322c32',
708
+ secondary4: '#39323b',
709
+ secondary5: '#433845',
710
+ secondary6: '#504152',
711
+ secondary7: '#644e67',
712
+ secondary8: '#836289',
713
+ secondary9: '#cd92d8',
714
+ secondary10: '#dbb0e3',
715
+ secondary11: '#dbb3e1',
716
+ secondary12: '#e6d1ea',
717
+ success1: '#232523',
718
+ success2: '#262926',
719
+ success3: '#293029',
720
+ success4: '#2d372d',
721
+ success5: '#313f31',
722
+ success6: '#374b37',
723
+ success7: '#3f5d40',
724
+ success8: '#4c794d',
725
+ success9: '#68bb6c',
726
+ success10: '#80c684',
727
+ success11: '#99ce9a',
728
+ success12: '#c3e0c3',
729
+ warning1: '#272423',
730
+ warning2: '#2d2824',
731
+ warning3: '#362d26',
732
+ warning4: '#403328',
733
+ warning5: '#4c3a2b',
734
+ warning6: '#5d432e',
735
+ warning7: '#775131',
736
+ warning8: '#9f6735',
737
+ warning9: '#ff9933',
738
+ warning10: '#ffab57',
739
+ warning11: '#feb981',
740
+ warning12: '#fad5b7',
741
+ error1: '#272323',
742
+ error2: '#2d2524',
743
+ error3: '#362826',
744
+ error4: '#402b29',
745
+ error5: '#4c2e2b',
746
+ error6: '#5b322f',
747
+ error7: '#733834',
748
+ error8: '#993f3c',
749
+ error9: '#f04c4c',
750
+ error10: '#f36d6d',
751
+ error11: '#f88c85',
752
+ error12: '#fabdb8',
753
+ info1: '#232527',
754
+ info2: '#24292c',
755
+ info3: '#262f35',
756
+ info4: '#28353f',
757
+ info5: '#2b3d4a',
758
+ info6: '#2d485a',
759
+ info7: '#305873',
760
+ info8: '#32729a',
761
+ info9: '#28aef6',
762
+ info10: '#4abbf7',
763
+ info11: '#7fc6f7',
764
+ info12: '#b7dcf6',
765
+ neutral1: '#252525',
766
+ neutral2: '#282828',
767
+ neutral3: '#2d2d2d',
768
+ neutral4: '#333333',
769
+ neutral5: '#383838',
770
+ neutral6: '#404040',
771
+ neutral7: '#4d4d4d',
772
+ neutral8: '#656565',
773
+ neutral9: '#868686',
774
+ neutral10: '#939393',
775
+ neutral11: '#a9a9a9',
776
+ neutral12: '#dfdfdf',
777
+ accentPrimarySoft: 'rgba(144, 195, 249, 0.12)',
778
+ accentPrimaryText: '#b2d3f8',
779
+ accentSecondarySoft: 'rgba(205, 146, 216, 0.12)',
780
+ accentSecondaryText: '#dbb3e1',
781
+ successSoft: 'rgba(104, 187, 108, 0.12)',
782
+ successText: '#99ce9a',
783
+ warningSoft: 'rgba(255, 153, 51, 0.12)',
784
+ warningText: '#feb981',
785
+ errorSoft: 'rgba(240, 76, 76, 0.12)',
786
+ errorText: '#f88c85',
787
+ infoSoft: 'rgba(40, 174, 246, 0.12)',
788
+ infoText: '#7fc6f7',
789
+ fontSansTamil: ['PT Sans', 'Noto Sans Tamil', 'Nirmala UI', 'Latha', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
790
+ fontSansDevanagari: ['PT Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', '-apple-system', 'system-ui', 'Segoe UI', 'sans-serif'],
791
+ lineHeightTightTamil: 1.35,
792
+ lineHeightSnugTamil: 1.6,
793
+ lineHeightNormalTamil: 1.7,
794
+ lineHeightTightDevanagari: 1.35,
795
+ lineHeightSnugDevanagari: 1.55,
796
+ lineHeightNormalDevanagari: 1.65,
797
+ };
798
+ /**
799
+ * The tokens that change under the OS "reduce motion" setting (CSS prefers-reduced-motion:
800
+ * reduce), with their values there. The same in both themes: apply them over light or dark.
801
+ */
802
+ export const reducedMotion = {
803
+ motionScale: 0,
804
+ motionEnterOffset: 0,
805
+ motionEnterScale: 1,
806
+ pressScale: 1,
807
+ };
808
+ /**
809
+ * The tokens that follow the UI scale (CSS --ui-scale). Their values above are at scale 1:
810
+ * multiply each by the UI scale (every number of a FluidSize).
811
+ */
812
+ export const uiScaled = [
813
+ 'fieldHeightXxs',
814
+ 'fieldHeightXs',
815
+ 'fieldHeightSm',
816
+ 'fieldHeightMd',
817
+ 'fieldHeightLg',
818
+ 'fieldHeightXl',
819
+ 'fieldPaddingXXxs',
820
+ 'fieldPaddingXXs',
821
+ 'fieldPaddingXSm',
822
+ 'fieldPaddingXMd',
823
+ 'fieldPaddingXLg',
824
+ 'fieldPaddingXXl',
825
+ 'fieldPaddingYXxs',
826
+ 'fieldPaddingYXs',
827
+ 'fieldPaddingYSm',
828
+ 'fieldPaddingYMd',
829
+ 'fieldPaddingYLg',
830
+ 'fieldPaddingYXl',
831
+ 'fieldLabelWidth',
832
+ 'fieldControlMaxWidth',
833
+ 'fieldBlockSpacing',
834
+ 'controlSizeXxs',
835
+ 'controlSizeXs',
836
+ 'controlSizeSm',
837
+ 'controlSizeMd',
838
+ 'controlSizeLg',
839
+ 'controlSizeXl',
840
+ 'fieldAffixSpaceXxs',
841
+ 'fieldAffixSpaceXs',
842
+ 'fieldAffixSpaceSm',
843
+ 'fieldAffixSpaceMd',
844
+ 'fieldAffixSpaceLg',
845
+ 'fieldAffixSpaceXl',
846
+ 'fontSizeXxs',
847
+ 'fontSizeXs',
848
+ 'fontSizeSm',
849
+ 'fontSizeMd',
850
+ 'fontSizeLg',
851
+ 'fontSizeXl',
852
+ 'iconSize3xs',
853
+ 'iconSizeXxs',
854
+ 'iconSizeXs',
855
+ 'iconSizeSm',
856
+ 'iconSizeMd',
857
+ 'iconSizeLg',
858
+ 'iconSizeXl',
859
+ 'iconSize2xl',
860
+ 'iconSize3xl',
861
+ 'iconSize4xl',
862
+ 'iconSlotButton',
863
+ 'iconSlotProminent',
864
+ 'iconSlotNav',
865
+ 'iconSlotInline',
866
+ 'iconSlotField',
867
+ 'iconSlotDense',
868
+ 'iconSlotDefault',
869
+ 'iconSizeAction',
870
+ 'iconSizeMarker',
871
+ 'iconSizeChip',
872
+ 'iconSizeStatus',
873
+ 'fontSizeH1',
874
+ 'fontSizeH2',
875
+ 'fontSizeH3',
876
+ 'fontSizeH4',
877
+ 'fontSizeH5',
878
+ 'fontSizeH6',
879
+ 'spacingXxs',
880
+ 'spacingXs',
881
+ 'spacingSm',
882
+ 'spacingMd',
883
+ 'spacingLg',
884
+ 'spacingXl',
885
+ 'spacing2xl',
886
+ 'spacing3xl',
887
+ 'labelSpacing',
888
+ 'messageSpacing',
889
+ 'gridGapSm',
890
+ 'gridGapMd',
891
+ 'gridGapLg',
892
+ 'brandGoogleButtonHeight',
893
+ 'brandGoogleButtonLogoSize',
894
+ 'brandGoogleButtonPaddingStart',
895
+ 'brandGoogleButtonLogoGap',
896
+ 'brandGoogleButtonPaddingEnd',
897
+ 'brandGoogleButtonRadius',
898
+ 'brandGoogleButtonFontSize',
899
+ 'brandGoogleButtonLineHeight',
900
+ ];