@satellatickets/tokens 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +76 -3
- package/dist/index.d.ts +373 -0
- package/dist/index.js +746 -0
- package/dist/native/themes.ts +731 -0
- package/dist/types.ts +485 -0
- package/dist/web/tokens.css +239 -0
- package/package.json +45 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
//#region dist/native/themes.ts
|
|
2
|
+
const themeNames = ["light", "dark"];
|
|
3
|
+
const brandNames = ["admin", "organizer"];
|
|
4
|
+
/** Nombres de todos los tokens emitidos, en el orden de las salidas. */
|
|
5
|
+
const tokenNames = [
|
|
6
|
+
"color.bg.canvas",
|
|
7
|
+
"color.bg.surface",
|
|
8
|
+
"color.bg.elevated",
|
|
9
|
+
"color.bg.subtle",
|
|
10
|
+
"color.bg.muted",
|
|
11
|
+
"color.bg.overlay",
|
|
12
|
+
"color.bg.inverse",
|
|
13
|
+
"color.text.primary",
|
|
14
|
+
"color.text.secondary",
|
|
15
|
+
"color.text.muted",
|
|
16
|
+
"color.text.disabled",
|
|
17
|
+
"color.text.inverse",
|
|
18
|
+
"color.text.onPrimary",
|
|
19
|
+
"color.text.onDanger",
|
|
20
|
+
"color.text.link",
|
|
21
|
+
"color.border.default",
|
|
22
|
+
"color.border.strong",
|
|
23
|
+
"color.border.focus",
|
|
24
|
+
"color.action.primary",
|
|
25
|
+
"color.action.primaryHover",
|
|
26
|
+
"color.action.primaryActive",
|
|
27
|
+
"color.action.secondary",
|
|
28
|
+
"color.action.secondaryHover",
|
|
29
|
+
"color.action.secondaryActive",
|
|
30
|
+
"color.action.danger",
|
|
31
|
+
"color.action.dangerHover",
|
|
32
|
+
"color.action.dangerActive",
|
|
33
|
+
"color.action.disabled",
|
|
34
|
+
"color.accent.bg",
|
|
35
|
+
"color.accent.text",
|
|
36
|
+
"color.feedback.success.bg",
|
|
37
|
+
"color.feedback.success.border",
|
|
38
|
+
"color.feedback.success.text",
|
|
39
|
+
"color.feedback.success.icon",
|
|
40
|
+
"color.feedback.warning.bg",
|
|
41
|
+
"color.feedback.warning.border",
|
|
42
|
+
"color.feedback.warning.text",
|
|
43
|
+
"color.feedback.warning.icon",
|
|
44
|
+
"color.feedback.danger.bg",
|
|
45
|
+
"color.feedback.danger.border",
|
|
46
|
+
"color.feedback.danger.text",
|
|
47
|
+
"color.feedback.danger.icon",
|
|
48
|
+
"color.feedback.info.bg",
|
|
49
|
+
"color.feedback.info.border",
|
|
50
|
+
"color.feedback.info.text",
|
|
51
|
+
"color.feedback.info.icon",
|
|
52
|
+
"space.0",
|
|
53
|
+
"space.1",
|
|
54
|
+
"space.2",
|
|
55
|
+
"space.3",
|
|
56
|
+
"space.4",
|
|
57
|
+
"space.5",
|
|
58
|
+
"space.6",
|
|
59
|
+
"space.8",
|
|
60
|
+
"space.10",
|
|
61
|
+
"space.12",
|
|
62
|
+
"space.16",
|
|
63
|
+
"space.20",
|
|
64
|
+
"space.24",
|
|
65
|
+
"size.control.sm",
|
|
66
|
+
"size.control.md",
|
|
67
|
+
"size.control.lg",
|
|
68
|
+
"radius.none",
|
|
69
|
+
"radius.xs",
|
|
70
|
+
"radius.sm",
|
|
71
|
+
"radius.md",
|
|
72
|
+
"radius.lg",
|
|
73
|
+
"radius.xl",
|
|
74
|
+
"radius.full",
|
|
75
|
+
"borderWidth.thin",
|
|
76
|
+
"borderWidth.thick",
|
|
77
|
+
"font.family.display",
|
|
78
|
+
"font.family.sans",
|
|
79
|
+
"font.family.mono",
|
|
80
|
+
"font.size.xs",
|
|
81
|
+
"font.size.sm",
|
|
82
|
+
"font.size.md",
|
|
83
|
+
"font.size.lg",
|
|
84
|
+
"font.size.xl",
|
|
85
|
+
"font.size.xxl",
|
|
86
|
+
"font.size.xxxl",
|
|
87
|
+
"font.size.display",
|
|
88
|
+
"font.size.hero",
|
|
89
|
+
"font.lineHeight.xs",
|
|
90
|
+
"font.lineHeight.sm",
|
|
91
|
+
"font.lineHeight.md",
|
|
92
|
+
"font.lineHeight.lg",
|
|
93
|
+
"font.lineHeight.xl",
|
|
94
|
+
"font.lineHeight.xxl",
|
|
95
|
+
"font.lineHeight.xxxl",
|
|
96
|
+
"font.lineHeight.display",
|
|
97
|
+
"font.lineHeight.hero",
|
|
98
|
+
"font.weight.regular",
|
|
99
|
+
"font.weight.medium",
|
|
100
|
+
"font.weight.semibold",
|
|
101
|
+
"font.weight.bold",
|
|
102
|
+
"font.weight.extrabold",
|
|
103
|
+
"shadow.sm",
|
|
104
|
+
"shadow.md",
|
|
105
|
+
"shadow.lg",
|
|
106
|
+
"shadow.glow",
|
|
107
|
+
"duration.instant",
|
|
108
|
+
"duration.fast",
|
|
109
|
+
"duration.normal",
|
|
110
|
+
"duration.slow",
|
|
111
|
+
"zIndex.base",
|
|
112
|
+
"zIndex.raised",
|
|
113
|
+
"zIndex.dropdown",
|
|
114
|
+
"zIndex.sticky",
|
|
115
|
+
"zIndex.overlay",
|
|
116
|
+
"zIndex.modal",
|
|
117
|
+
"zIndex.popover",
|
|
118
|
+
"zIndex.toast"
|
|
119
|
+
];
|
|
120
|
+
/** Variable CSS que corresponde a cada token en `tokens.css`. */
|
|
121
|
+
const cssVariables = {
|
|
122
|
+
"color.bg.canvas": "--color-bg-canvas",
|
|
123
|
+
"color.bg.surface": "--color-bg-surface",
|
|
124
|
+
"color.bg.elevated": "--color-bg-elevated",
|
|
125
|
+
"color.bg.subtle": "--color-bg-subtle",
|
|
126
|
+
"color.bg.muted": "--color-bg-muted",
|
|
127
|
+
"color.bg.overlay": "--color-bg-overlay",
|
|
128
|
+
"color.bg.inverse": "--color-bg-inverse",
|
|
129
|
+
"color.text.primary": "--color-text-primary",
|
|
130
|
+
"color.text.secondary": "--color-text-secondary",
|
|
131
|
+
"color.text.muted": "--color-text-muted",
|
|
132
|
+
"color.text.disabled": "--color-text-disabled",
|
|
133
|
+
"color.text.inverse": "--color-text-inverse",
|
|
134
|
+
"color.text.onPrimary": "--color-text-on-primary",
|
|
135
|
+
"color.text.onDanger": "--color-text-on-danger",
|
|
136
|
+
"color.text.link": "--color-text-link",
|
|
137
|
+
"color.border.default": "--color-border-default",
|
|
138
|
+
"color.border.strong": "--color-border-strong",
|
|
139
|
+
"color.border.focus": "--color-border-focus",
|
|
140
|
+
"color.action.primary": "--color-action-primary",
|
|
141
|
+
"color.action.primaryHover": "--color-action-primary-hover",
|
|
142
|
+
"color.action.primaryActive": "--color-action-primary-active",
|
|
143
|
+
"color.action.secondary": "--color-action-secondary",
|
|
144
|
+
"color.action.secondaryHover": "--color-action-secondary-hover",
|
|
145
|
+
"color.action.secondaryActive": "--color-action-secondary-active",
|
|
146
|
+
"color.action.danger": "--color-action-danger",
|
|
147
|
+
"color.action.dangerHover": "--color-action-danger-hover",
|
|
148
|
+
"color.action.dangerActive": "--color-action-danger-active",
|
|
149
|
+
"color.action.disabled": "--color-action-disabled",
|
|
150
|
+
"color.accent.bg": "--color-accent-bg",
|
|
151
|
+
"color.accent.text": "--color-accent-text",
|
|
152
|
+
"color.feedback.success.bg": "--color-feedback-success-bg",
|
|
153
|
+
"color.feedback.success.border": "--color-feedback-success-border",
|
|
154
|
+
"color.feedback.success.text": "--color-feedback-success-text",
|
|
155
|
+
"color.feedback.success.icon": "--color-feedback-success-icon",
|
|
156
|
+
"color.feedback.warning.bg": "--color-feedback-warning-bg",
|
|
157
|
+
"color.feedback.warning.border": "--color-feedback-warning-border",
|
|
158
|
+
"color.feedback.warning.text": "--color-feedback-warning-text",
|
|
159
|
+
"color.feedback.warning.icon": "--color-feedback-warning-icon",
|
|
160
|
+
"color.feedback.danger.bg": "--color-feedback-danger-bg",
|
|
161
|
+
"color.feedback.danger.border": "--color-feedback-danger-border",
|
|
162
|
+
"color.feedback.danger.text": "--color-feedback-danger-text",
|
|
163
|
+
"color.feedback.danger.icon": "--color-feedback-danger-icon",
|
|
164
|
+
"color.feedback.info.bg": "--color-feedback-info-bg",
|
|
165
|
+
"color.feedback.info.border": "--color-feedback-info-border",
|
|
166
|
+
"color.feedback.info.text": "--color-feedback-info-text",
|
|
167
|
+
"color.feedback.info.icon": "--color-feedback-info-icon",
|
|
168
|
+
"space.0": "--space-0",
|
|
169
|
+
"space.1": "--space-1",
|
|
170
|
+
"space.2": "--space-2",
|
|
171
|
+
"space.3": "--space-3",
|
|
172
|
+
"space.4": "--space-4",
|
|
173
|
+
"space.5": "--space-5",
|
|
174
|
+
"space.6": "--space-6",
|
|
175
|
+
"space.8": "--space-8",
|
|
176
|
+
"space.10": "--space-10",
|
|
177
|
+
"space.12": "--space-12",
|
|
178
|
+
"space.16": "--space-16",
|
|
179
|
+
"space.20": "--space-20",
|
|
180
|
+
"space.24": "--space-24",
|
|
181
|
+
"size.control.sm": "--size-control-sm",
|
|
182
|
+
"size.control.md": "--size-control-md",
|
|
183
|
+
"size.control.lg": "--size-control-lg",
|
|
184
|
+
"radius.none": "--radius-none",
|
|
185
|
+
"radius.xs": "--radius-xs",
|
|
186
|
+
"radius.sm": "--radius-sm",
|
|
187
|
+
"radius.md": "--radius-md",
|
|
188
|
+
"radius.lg": "--radius-lg",
|
|
189
|
+
"radius.xl": "--radius-xl",
|
|
190
|
+
"radius.full": "--radius-full",
|
|
191
|
+
"borderWidth.thin": "--border-width-thin",
|
|
192
|
+
"borderWidth.thick": "--border-width-thick",
|
|
193
|
+
"font.family.display": "--font-family-display",
|
|
194
|
+
"font.family.sans": "--font-family-sans",
|
|
195
|
+
"font.family.mono": "--font-family-mono",
|
|
196
|
+
"font.size.xs": "--font-size-xs",
|
|
197
|
+
"font.size.sm": "--font-size-sm",
|
|
198
|
+
"font.size.md": "--font-size-md",
|
|
199
|
+
"font.size.lg": "--font-size-lg",
|
|
200
|
+
"font.size.xl": "--font-size-xl",
|
|
201
|
+
"font.size.xxl": "--font-size-xxl",
|
|
202
|
+
"font.size.xxxl": "--font-size-xxxl",
|
|
203
|
+
"font.size.display": "--font-size-display",
|
|
204
|
+
"font.size.hero": "--font-size-hero",
|
|
205
|
+
"font.lineHeight.xs": "--font-line-height-xs",
|
|
206
|
+
"font.lineHeight.sm": "--font-line-height-sm",
|
|
207
|
+
"font.lineHeight.md": "--font-line-height-md",
|
|
208
|
+
"font.lineHeight.lg": "--font-line-height-lg",
|
|
209
|
+
"font.lineHeight.xl": "--font-line-height-xl",
|
|
210
|
+
"font.lineHeight.xxl": "--font-line-height-xxl",
|
|
211
|
+
"font.lineHeight.xxxl": "--font-line-height-xxxl",
|
|
212
|
+
"font.lineHeight.display": "--font-line-height-display",
|
|
213
|
+
"font.lineHeight.hero": "--font-line-height-hero",
|
|
214
|
+
"font.weight.regular": "--font-weight-regular",
|
|
215
|
+
"font.weight.medium": "--font-weight-medium",
|
|
216
|
+
"font.weight.semibold": "--font-weight-semibold",
|
|
217
|
+
"font.weight.bold": "--font-weight-bold",
|
|
218
|
+
"font.weight.extrabold": "--font-weight-extrabold",
|
|
219
|
+
"shadow.sm": "--shadow-sm",
|
|
220
|
+
"shadow.md": "--shadow-md",
|
|
221
|
+
"shadow.lg": "--shadow-lg",
|
|
222
|
+
"shadow.glow": "--shadow-glow",
|
|
223
|
+
"duration.instant": "--duration-instant",
|
|
224
|
+
"duration.fast": "--duration-fast",
|
|
225
|
+
"duration.normal": "--duration-normal",
|
|
226
|
+
"duration.slow": "--duration-slow",
|
|
227
|
+
"zIndex.base": "--z-index-base",
|
|
228
|
+
"zIndex.raised": "--z-index-raised",
|
|
229
|
+
"zIndex.dropdown": "--z-index-dropdown",
|
|
230
|
+
"zIndex.sticky": "--z-index-sticky",
|
|
231
|
+
"zIndex.overlay": "--z-index-overlay",
|
|
232
|
+
"zIndex.modal": "--z-index-modal",
|
|
233
|
+
"zIndex.popover": "--z-index-popover",
|
|
234
|
+
"zIndex.toast": "--z-index-toast"
|
|
235
|
+
};
|
|
236
|
+
const light = {
|
|
237
|
+
color: {
|
|
238
|
+
bg: {
|
|
239
|
+
canvas: "#f5f5fa",
|
|
240
|
+
surface: "#ffffff",
|
|
241
|
+
elevated: "#ffffff",
|
|
242
|
+
subtle: "#eaeaf2",
|
|
243
|
+
muted: "#dddde9",
|
|
244
|
+
overlay: "#00000080",
|
|
245
|
+
inverse: "#1b1b2a"
|
|
246
|
+
},
|
|
247
|
+
text: {
|
|
248
|
+
primary: "#0b0b12",
|
|
249
|
+
secondary: "#34344e",
|
|
250
|
+
muted: "#5b5b75",
|
|
251
|
+
disabled: "#9494ae",
|
|
252
|
+
inverse: "#f5f5fa",
|
|
253
|
+
onPrimary: "#ffffff",
|
|
254
|
+
onDanger: "#ffffff",
|
|
255
|
+
link: "#5936d9"
|
|
256
|
+
},
|
|
257
|
+
border: {
|
|
258
|
+
default: "#dddde9",
|
|
259
|
+
strong: "#82829c",
|
|
260
|
+
focus: "#6c4cf5"
|
|
261
|
+
},
|
|
262
|
+
action: {
|
|
263
|
+
primary: "#6c4cf5",
|
|
264
|
+
primaryHover: "#5936d9",
|
|
265
|
+
primaryActive: "#472bae",
|
|
266
|
+
secondary: "#eaeaf2",
|
|
267
|
+
secondaryHover: "#dddde9",
|
|
268
|
+
secondaryActive: "#c0c0d4",
|
|
269
|
+
danger: "#a82414",
|
|
270
|
+
dangerHover: "#7a1a0e",
|
|
271
|
+
dangerActive: "#5c140b",
|
|
272
|
+
disabled: "#eaeaf2"
|
|
273
|
+
},
|
|
274
|
+
accent: {
|
|
275
|
+
bg: "#f0edfe",
|
|
276
|
+
text: "#5936d9"
|
|
277
|
+
},
|
|
278
|
+
feedback: {
|
|
279
|
+
success: {
|
|
280
|
+
bg: "#e8fbf3",
|
|
281
|
+
border: "#3ddc9766",
|
|
282
|
+
text: "#127a44",
|
|
283
|
+
icon: "#127a44"
|
|
284
|
+
},
|
|
285
|
+
warning: {
|
|
286
|
+
bg: "#fff8ea",
|
|
287
|
+
border: "#ffc44d66",
|
|
288
|
+
text: "#9a6312",
|
|
289
|
+
icon: "#9a6312"
|
|
290
|
+
},
|
|
291
|
+
danger: {
|
|
292
|
+
bg: "#ffedec",
|
|
293
|
+
border: "#ff6b5e66",
|
|
294
|
+
text: "#a82414",
|
|
295
|
+
icon: "#a82414"
|
|
296
|
+
},
|
|
297
|
+
info: {
|
|
298
|
+
bg: "#eaf9fd",
|
|
299
|
+
border: "#4cc9f066",
|
|
300
|
+
text: "#0d6e8f",
|
|
301
|
+
icon: "#0d6e8f"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
space: {
|
|
306
|
+
0: 0,
|
|
307
|
+
1: 4,
|
|
308
|
+
2: 8,
|
|
309
|
+
3: 12,
|
|
310
|
+
4: 16,
|
|
311
|
+
5: 20,
|
|
312
|
+
6: 24,
|
|
313
|
+
8: 32,
|
|
314
|
+
10: 40,
|
|
315
|
+
12: 48,
|
|
316
|
+
16: 64,
|
|
317
|
+
20: 80,
|
|
318
|
+
24: 96
|
|
319
|
+
},
|
|
320
|
+
size: { control: {
|
|
321
|
+
sm: 36,
|
|
322
|
+
md: 44,
|
|
323
|
+
lg: 52
|
|
324
|
+
} },
|
|
325
|
+
radius: {
|
|
326
|
+
none: 0,
|
|
327
|
+
xs: 4,
|
|
328
|
+
sm: 6,
|
|
329
|
+
md: 10,
|
|
330
|
+
lg: 16,
|
|
331
|
+
xl: 24,
|
|
332
|
+
full: 999
|
|
333
|
+
},
|
|
334
|
+
borderWidth: {
|
|
335
|
+
thin: 1,
|
|
336
|
+
thick: 2
|
|
337
|
+
},
|
|
338
|
+
font: {
|
|
339
|
+
family: {
|
|
340
|
+
display: "Unbounded",
|
|
341
|
+
sans: "Hanken Grotesk",
|
|
342
|
+
mono: "IBM Plex Mono"
|
|
343
|
+
},
|
|
344
|
+
size: {
|
|
345
|
+
xs: 12,
|
|
346
|
+
sm: 14,
|
|
347
|
+
md: 16,
|
|
348
|
+
lg: 18,
|
|
349
|
+
xl: 20,
|
|
350
|
+
xxl: 24,
|
|
351
|
+
xxxl: 30,
|
|
352
|
+
display: 36,
|
|
353
|
+
hero: 48
|
|
354
|
+
},
|
|
355
|
+
lineHeight: {
|
|
356
|
+
xs: 16,
|
|
357
|
+
sm: 20,
|
|
358
|
+
md: 24,
|
|
359
|
+
lg: 28,
|
|
360
|
+
xl: 28,
|
|
361
|
+
xxl: 32,
|
|
362
|
+
xxxl: 36,
|
|
363
|
+
display: 40,
|
|
364
|
+
hero: 48
|
|
365
|
+
},
|
|
366
|
+
weight: {
|
|
367
|
+
regular: "400",
|
|
368
|
+
medium: "500",
|
|
369
|
+
semibold: "600",
|
|
370
|
+
bold: "700",
|
|
371
|
+
extrabold: "800"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
shadow: {
|
|
375
|
+
sm: [{
|
|
376
|
+
offsetX: 0,
|
|
377
|
+
offsetY: 1,
|
|
378
|
+
blurRadius: 3,
|
|
379
|
+
spreadDistance: 0,
|
|
380
|
+
color: "#00000073"
|
|
381
|
+
}],
|
|
382
|
+
md: [{
|
|
383
|
+
offsetX: 0,
|
|
384
|
+
offsetY: 8,
|
|
385
|
+
blurRadius: 24,
|
|
386
|
+
spreadDistance: 0,
|
|
387
|
+
color: "#00000080"
|
|
388
|
+
}],
|
|
389
|
+
lg: [{
|
|
390
|
+
offsetX: 0,
|
|
391
|
+
offsetY: 24,
|
|
392
|
+
blurRadius: 60,
|
|
393
|
+
spreadDistance: 0,
|
|
394
|
+
color: "#00000099"
|
|
395
|
+
}],
|
|
396
|
+
glow: [{
|
|
397
|
+
offsetX: 0,
|
|
398
|
+
offsetY: 0,
|
|
399
|
+
blurRadius: 28,
|
|
400
|
+
spreadDistance: 0,
|
|
401
|
+
color: "#6c4cf559"
|
|
402
|
+
}]
|
|
403
|
+
},
|
|
404
|
+
duration: {
|
|
405
|
+
instant: 0,
|
|
406
|
+
fast: 150,
|
|
407
|
+
normal: 250,
|
|
408
|
+
slow: 400
|
|
409
|
+
},
|
|
410
|
+
zIndex: {
|
|
411
|
+
base: 0,
|
|
412
|
+
raised: 1,
|
|
413
|
+
dropdown: 1e3,
|
|
414
|
+
sticky: 1100,
|
|
415
|
+
overlay: 1200,
|
|
416
|
+
modal: 1300,
|
|
417
|
+
popover: 1400,
|
|
418
|
+
toast: 1500
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
const dark = {
|
|
422
|
+
color: {
|
|
423
|
+
bg: {
|
|
424
|
+
canvas: "#0b0b12",
|
|
425
|
+
surface: "#12121c",
|
|
426
|
+
elevated: "#12121c",
|
|
427
|
+
subtle: "#1b1b2a",
|
|
428
|
+
muted: "#26263a",
|
|
429
|
+
overlay: "#00000099",
|
|
430
|
+
inverse: "#f5f5fa"
|
|
431
|
+
},
|
|
432
|
+
text: {
|
|
433
|
+
primary: "#f5f5fa",
|
|
434
|
+
secondary: "#c0c0d4",
|
|
435
|
+
muted: "#9494ae",
|
|
436
|
+
disabled: "#82829c",
|
|
437
|
+
inverse: "#0b0b12",
|
|
438
|
+
onPrimary: "#ffffff",
|
|
439
|
+
onDanger: "#0b0b12",
|
|
440
|
+
link: "#b3a3ff"
|
|
441
|
+
},
|
|
442
|
+
border: {
|
|
443
|
+
default: "#26263a",
|
|
444
|
+
strong: "#82829c",
|
|
445
|
+
focus: "#6c4cf5"
|
|
446
|
+
},
|
|
447
|
+
action: {
|
|
448
|
+
primary: "#6c4cf5",
|
|
449
|
+
primaryHover: "#5936d9",
|
|
450
|
+
primaryActive: "#472bae",
|
|
451
|
+
secondary: "#1b1b2a",
|
|
452
|
+
secondaryHover: "#26263a",
|
|
453
|
+
secondaryActive: "#34344e",
|
|
454
|
+
danger: "#ff6b5e",
|
|
455
|
+
dangerHover: "#ff897e",
|
|
456
|
+
dangerActive: "#ffa69e",
|
|
457
|
+
disabled: "#1b1b2a"
|
|
458
|
+
},
|
|
459
|
+
accent: {
|
|
460
|
+
bg: "#211b41",
|
|
461
|
+
text: "#b3a3ff"
|
|
462
|
+
},
|
|
463
|
+
feedback: {
|
|
464
|
+
success: {
|
|
465
|
+
bg: "#11291f",
|
|
466
|
+
border: "#3ddc9766",
|
|
467
|
+
text: "#3ddc97",
|
|
468
|
+
icon: "#3ddc97"
|
|
469
|
+
},
|
|
470
|
+
warning: {
|
|
471
|
+
bg: "#2e2413",
|
|
472
|
+
border: "#ffc44d66",
|
|
473
|
+
text: "#ffc44d",
|
|
474
|
+
icon: "#ffc44d"
|
|
475
|
+
},
|
|
476
|
+
danger: {
|
|
477
|
+
bg: "#2e1714",
|
|
478
|
+
border: "#ff6b5e66",
|
|
479
|
+
text: "#ff6b5e",
|
|
480
|
+
icon: "#ff6b5e"
|
|
481
|
+
},
|
|
482
|
+
info: {
|
|
483
|
+
bg: "#12262e",
|
|
484
|
+
border: "#4cc9f066",
|
|
485
|
+
text: "#4cc9f0",
|
|
486
|
+
icon: "#4cc9f0"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
space: {
|
|
491
|
+
0: 0,
|
|
492
|
+
1: 4,
|
|
493
|
+
2: 8,
|
|
494
|
+
3: 12,
|
|
495
|
+
4: 16,
|
|
496
|
+
5: 20,
|
|
497
|
+
6: 24,
|
|
498
|
+
8: 32,
|
|
499
|
+
10: 40,
|
|
500
|
+
12: 48,
|
|
501
|
+
16: 64,
|
|
502
|
+
20: 80,
|
|
503
|
+
24: 96
|
|
504
|
+
},
|
|
505
|
+
size: { control: {
|
|
506
|
+
sm: 36,
|
|
507
|
+
md: 44,
|
|
508
|
+
lg: 52
|
|
509
|
+
} },
|
|
510
|
+
radius: {
|
|
511
|
+
none: 0,
|
|
512
|
+
xs: 4,
|
|
513
|
+
sm: 6,
|
|
514
|
+
md: 10,
|
|
515
|
+
lg: 16,
|
|
516
|
+
xl: 24,
|
|
517
|
+
full: 999
|
|
518
|
+
},
|
|
519
|
+
borderWidth: {
|
|
520
|
+
thin: 1,
|
|
521
|
+
thick: 2
|
|
522
|
+
},
|
|
523
|
+
font: {
|
|
524
|
+
family: {
|
|
525
|
+
display: "Unbounded",
|
|
526
|
+
sans: "Hanken Grotesk",
|
|
527
|
+
mono: "IBM Plex Mono"
|
|
528
|
+
},
|
|
529
|
+
size: {
|
|
530
|
+
xs: 12,
|
|
531
|
+
sm: 14,
|
|
532
|
+
md: 16,
|
|
533
|
+
lg: 18,
|
|
534
|
+
xl: 20,
|
|
535
|
+
xxl: 24,
|
|
536
|
+
xxxl: 30,
|
|
537
|
+
display: 36,
|
|
538
|
+
hero: 48
|
|
539
|
+
},
|
|
540
|
+
lineHeight: {
|
|
541
|
+
xs: 16,
|
|
542
|
+
sm: 20,
|
|
543
|
+
md: 24,
|
|
544
|
+
lg: 28,
|
|
545
|
+
xl: 28,
|
|
546
|
+
xxl: 32,
|
|
547
|
+
xxxl: 36,
|
|
548
|
+
display: 40,
|
|
549
|
+
hero: 48
|
|
550
|
+
},
|
|
551
|
+
weight: {
|
|
552
|
+
regular: "400",
|
|
553
|
+
medium: "500",
|
|
554
|
+
semibold: "600",
|
|
555
|
+
bold: "700",
|
|
556
|
+
extrabold: "800"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
shadow: {
|
|
560
|
+
sm: [{
|
|
561
|
+
offsetX: 0,
|
|
562
|
+
offsetY: 1,
|
|
563
|
+
blurRadius: 3,
|
|
564
|
+
spreadDistance: 0,
|
|
565
|
+
color: "#00000073"
|
|
566
|
+
}],
|
|
567
|
+
md: [{
|
|
568
|
+
offsetX: 0,
|
|
569
|
+
offsetY: 8,
|
|
570
|
+
blurRadius: 24,
|
|
571
|
+
spreadDistance: 0,
|
|
572
|
+
color: "#00000080"
|
|
573
|
+
}],
|
|
574
|
+
lg: [{
|
|
575
|
+
offsetX: 0,
|
|
576
|
+
offsetY: 24,
|
|
577
|
+
blurRadius: 60,
|
|
578
|
+
spreadDistance: 0,
|
|
579
|
+
color: "#00000099"
|
|
580
|
+
}],
|
|
581
|
+
glow: [{
|
|
582
|
+
offsetX: 0,
|
|
583
|
+
offsetY: 0,
|
|
584
|
+
blurRadius: 28,
|
|
585
|
+
spreadDistance: 0,
|
|
586
|
+
color: "#6c4cf559"
|
|
587
|
+
}]
|
|
588
|
+
},
|
|
589
|
+
duration: {
|
|
590
|
+
instant: 0,
|
|
591
|
+
fast: 150,
|
|
592
|
+
normal: 250,
|
|
593
|
+
slow: 400
|
|
594
|
+
},
|
|
595
|
+
zIndex: {
|
|
596
|
+
base: 0,
|
|
597
|
+
raised: 1,
|
|
598
|
+
dropdown: 1e3,
|
|
599
|
+
sticky: 1100,
|
|
600
|
+
overlay: 1200,
|
|
601
|
+
modal: 1300,
|
|
602
|
+
popover: 1400,
|
|
603
|
+
toast: 1500
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const themes = {
|
|
607
|
+
light,
|
|
608
|
+
dark
|
|
609
|
+
};
|
|
610
|
+
/** Overrides de cada marca sobre cada tema; `UIProvider` los combina con el tema activo (ADR-010). */
|
|
611
|
+
const brands = {
|
|
612
|
+
admin: {
|
|
613
|
+
light: {},
|
|
614
|
+
dark: {
|
|
615
|
+
radius: {
|
|
616
|
+
md: 6,
|
|
617
|
+
lg: 8,
|
|
618
|
+
xl: 12
|
|
619
|
+
},
|
|
620
|
+
shadow: { glow: [{
|
|
621
|
+
offsetX: 0,
|
|
622
|
+
offsetY: 0,
|
|
623
|
+
blurRadius: 24,
|
|
624
|
+
spreadDistance: 0,
|
|
625
|
+
color: "#7fee6440"
|
|
626
|
+
}] },
|
|
627
|
+
color: {
|
|
628
|
+
bg: {
|
|
629
|
+
canvas: "#181818",
|
|
630
|
+
surface: "#1c1c1c",
|
|
631
|
+
elevated: "#1c1c1c",
|
|
632
|
+
subtle: "#242424",
|
|
633
|
+
muted: "#2a2a2a",
|
|
634
|
+
inverse: "#f0f0f0"
|
|
635
|
+
},
|
|
636
|
+
text: {
|
|
637
|
+
primary: "#f0f0f0",
|
|
638
|
+
secondary: "#b3b3b3",
|
|
639
|
+
muted: "#8a8a8a",
|
|
640
|
+
disabled: "#6e6e6e",
|
|
641
|
+
inverse: "#181818",
|
|
642
|
+
onPrimary: "#0a120a",
|
|
643
|
+
onDanger: "#181818",
|
|
644
|
+
link: "#98f380"
|
|
645
|
+
},
|
|
646
|
+
border: {
|
|
647
|
+
default: "#2a2a2a",
|
|
648
|
+
strong: "#6e6e6e",
|
|
649
|
+
focus: "#7fee64"
|
|
650
|
+
},
|
|
651
|
+
action: {
|
|
652
|
+
primary: "#7fee64",
|
|
653
|
+
primaryHover: "#65d94b",
|
|
654
|
+
primaryActive: "#51ae3c",
|
|
655
|
+
secondary: "#242424",
|
|
656
|
+
secondaryHover: "#2a2a2a",
|
|
657
|
+
secondaryActive: "#373737",
|
|
658
|
+
disabled: "#242424"
|
|
659
|
+
},
|
|
660
|
+
accent: {
|
|
661
|
+
bg: "#222e21",
|
|
662
|
+
text: "#98f380"
|
|
663
|
+
},
|
|
664
|
+
feedback: {
|
|
665
|
+
success: {
|
|
666
|
+
bg: "#1b2f17",
|
|
667
|
+
border: "#86f06d66",
|
|
668
|
+
text: "#86f06d",
|
|
669
|
+
icon: "#86f06d"
|
|
670
|
+
},
|
|
671
|
+
warning: {
|
|
672
|
+
bg: "#2e2410",
|
|
673
|
+
border: "#f5c54266",
|
|
674
|
+
text: "#f5c542",
|
|
675
|
+
icon: "#f5c542"
|
|
676
|
+
},
|
|
677
|
+
danger: { bg: "#2e1613" },
|
|
678
|
+
info: {
|
|
679
|
+
bg: "#122430",
|
|
680
|
+
border: "#62c5ee66",
|
|
681
|
+
text: "#62c5ee",
|
|
682
|
+
icon: "#62c5ee"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
organizer: {
|
|
689
|
+
light: {},
|
|
690
|
+
dark: {
|
|
691
|
+
shadow: { glow: [{
|
|
692
|
+
offsetX: 0,
|
|
693
|
+
offsetY: 0,
|
|
694
|
+
blurRadius: 28,
|
|
695
|
+
spreadDistance: 0,
|
|
696
|
+
color: "#f9791f52"
|
|
697
|
+
}] },
|
|
698
|
+
color: {
|
|
699
|
+
bg: {
|
|
700
|
+
canvas: "#0f0d09",
|
|
701
|
+
surface: "#171310",
|
|
702
|
+
elevated: "#171310",
|
|
703
|
+
subtle: "#201b14",
|
|
704
|
+
muted: "#2d2820",
|
|
705
|
+
inverse: "#faf6ef"
|
|
706
|
+
},
|
|
707
|
+
text: {
|
|
708
|
+
primary: "#faf6ef",
|
|
709
|
+
secondary: "#d0c8b8",
|
|
710
|
+
muted: "#a29a8a",
|
|
711
|
+
disabled: "#8b8374",
|
|
712
|
+
inverse: "#0f0d09",
|
|
713
|
+
onPrimary: "#1c0e02",
|
|
714
|
+
onDanger: "#0f0d09",
|
|
715
|
+
link: "#ffb26b"
|
|
716
|
+
},
|
|
717
|
+
border: {
|
|
718
|
+
default: "#2d2820",
|
|
719
|
+
strong: "#8b8374",
|
|
720
|
+
focus: "#f9791f"
|
|
721
|
+
},
|
|
722
|
+
action: {
|
|
723
|
+
primary: "#f9791f",
|
|
724
|
+
primaryHover: "#e0660e",
|
|
725
|
+
primaryActive: "#ca5c0d",
|
|
726
|
+
secondary: "#201b14",
|
|
727
|
+
secondaryHover: "#2d2820",
|
|
728
|
+
secondaryActive: "#423a2b",
|
|
729
|
+
disabled: "#201b14"
|
|
730
|
+
},
|
|
731
|
+
accent: {
|
|
732
|
+
bg: "#33210f",
|
|
733
|
+
text: "#ffb26b"
|
|
734
|
+
},
|
|
735
|
+
feedback: { warning: {
|
|
736
|
+
bg: "#2e2811",
|
|
737
|
+
border: "#ffdf5766",
|
|
738
|
+
text: "#ffdf57",
|
|
739
|
+
icon: "#ffdf57"
|
|
740
|
+
} }
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
//#endregion
|
|
746
|
+
export { brandNames, brands, cssVariables, dark, light, themeNames, themes, tokenNames };
|