@hashintel/ds-theme 0.0.3 → 0.1.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.
@@ -1,1078 +0,0 @@
1
- //#region ../../../node_modules/@pandacss/dev/dist/index.mjs
2
- function definePreset(preset) {
3
- return preset;
4
- }
5
- function createProxy() {
6
- const identity = (v) => v;
7
- return new Proxy(identity, { get() {
8
- return identity;
9
- } });
10
- }
11
- var defineTokens = /* @__PURE__ */ createProxy();
12
- var defineSemanticTokens = /* @__PURE__ */ createProxy();
13
-
14
- //#endregion
15
- //#region src/theme/colors/gray.gen.ts
16
- const gray = defineSemanticTokens.colors({
17
- "10": { value: {
18
- _light: "#f5f5f5",
19
- _dark: "#1d2836"
20
- } },
21
- "20": { value: {
22
- _light: "#e5e5e5",
23
- _dark: "#374151"
24
- } },
25
- "30": { value: {
26
- _light: "#d9d9d9",
27
- _dark: "#4b5563"
28
- } },
29
- "35": { value: {
30
- _light: "#c7c7c7",
31
- _dark: "#4b5563"
32
- } },
33
- "40": { value: {
34
- _light: "#a3a3a3",
35
- _dark: "#6b7280"
36
- } },
37
- "50": { value: {
38
- _light: "#737373",
39
- _dark: "#9ca3af"
40
- } },
41
- "60": { value: {
42
- _light: "#525252",
43
- _dark: "#dde0e4"
44
- } },
45
- "70": { value: {
46
- _light: "#404040",
47
- _dark: "#e5e7eb"
48
- } },
49
- "80": { value: {
50
- _light: "#262626",
51
- _dark: "#f0f2f4"
52
- } },
53
- "90": { value: {
54
- _light: "#171717",
55
- _dark: "#f6f8f9"
56
- } },
57
- "95": { value: {
58
- _light: "#0a0a0a",
59
- _dark: "#f6f8f9"
60
- } },
61
- "00": { value: {
62
- _light: "#fafafa",
63
- _dark: "#070a0d"
64
- } }
65
- });
66
-
67
- //#endregion
68
- //#region src/theme/colors/red.gen.ts
69
- const red = defineSemanticTokens.colors({
70
- "10": { value: {
71
- _light: "#fbd5d7",
72
- _dark: "#991b1b"
73
- } },
74
- "20": { value: {
75
- _light: "#f5a3a3",
76
- _dark: "#b91c1c"
77
- } },
78
- "30": { value: {
79
- _light: "#f17e7e",
80
- _dark: "#dc2626"
81
- } },
82
- "40": { value: {
83
- _light: "#ed5a5a",
84
- _dark: "#ef4444"
85
- } },
86
- "50": { value: {
87
- _light: "#e93535",
88
- _dark: "#f87171"
89
- } },
90
- "60": { value: {
91
- _light: "#dc1818",
92
- _dark: "#fca5a5"
93
- } },
94
- "70": { value: {
95
- _light: "#b81414",
96
- _dark: "#fecaca"
97
- } },
98
- "80": { value: {
99
- _light: "#931010",
100
- _dark: "#fee2e2"
101
- } },
102
- "90": { value: {
103
- _light: "#6e0c0c",
104
- _dark: "#fef2f2"
105
- } },
106
- "00": { value: {
107
- _light: "#fde8e9",
108
- _dark: "#7f1d1d"
109
- } }
110
- });
111
-
112
- //#endregion
113
- //#region src/theme/colors/orange.gen.ts
114
- const orange = defineSemanticTokens.colors({
115
- "10": { value: {
116
- _light: "#ffe0b8",
117
- _dark: "#9a3412"
118
- } },
119
- "20": { value: {
120
- _light: "#fed7aa",
121
- _dark: "#c2410c"
122
- } },
123
- "30": { value: {
124
- _light: "#fdba74",
125
- _dark: "#d97706"
126
- } },
127
- "40": { value: {
128
- _light: "#fb923c",
129
- _dark: "#f97316"
130
- } },
131
- "50": { value: {
132
- _light: "#f97316",
133
- _dark: "#fb923c"
134
- } },
135
- "60": { value: {
136
- _light: "#d97706",
137
- _dark: "#fdba74"
138
- } },
139
- "70": { value: {
140
- _light: "#c2410c",
141
- _dark: "#fed7aa"
142
- } },
143
- "80": { value: {
144
- _light: "#9a3412",
145
- _dark: "#ffedd5"
146
- } },
147
- "90": { value: {
148
- _light: "#7c2d12",
149
- _dark: "#fff7ed"
150
- } },
151
- "00": { value: {
152
- _light: "#fff1e0",
153
- _dark: "#7c2d12"
154
- } }
155
- });
156
-
157
- //#endregion
158
- //#region src/theme/colors/green.gen.ts
159
- const green = defineSemanticTokens.colors({
160
- "10": { value: {
161
- _light: "#e4f7f3",
162
- _dark: "#096638"
163
- } },
164
- "20": { value: {
165
- _light: "#b9ebdf",
166
- _dark: "#0e7d4b"
167
- } },
168
- "30": { value: {
169
- _light: "#91dbc9",
170
- _dark: "#159663"
171
- } },
172
- "40": { value: {
173
- _light: "#4fc29e",
174
- _dark: "#19a874"
175
- } },
176
- "50": { value: {
177
- _light: "#19a874",
178
- _dark: "#4fc29e"
179
- } },
180
- "60": { value: {
181
- _light: "#159663",
182
- _dark: "#91dbc9"
183
- } },
184
- "70": { value: {
185
- _light: "#0e7d4b",
186
- _dark: "#b9ebdf"
187
- } },
188
- "80": { value: {
189
- _light: "#096638",
190
- _dark: "#e4f7f3"
191
- } },
192
- "90": { value: {
193
- _light: "#054d27",
194
- _dark: "#edfaf7"
195
- } },
196
- "00": { value: {
197
- _light: "#edfaf7",
198
- _dark: "#054d27"
199
- } }
200
- });
201
-
202
- //#endregion
203
- //#region src/theme/colors/blue.gen.ts
204
- const blue = defineSemanticTokens.colors({
205
- "10": { value: {
206
- _light: "#daf0ff",
207
- _dark: "#0e2e8c"
208
- } },
209
- "20": { value: {
210
- _light: "#bee6ff",
211
- _dark: "#1541b0"
212
- } },
213
- "30": { value: {
214
- _light: "#78c0fc",
215
- _dark: "#1c62e3"
216
- } },
217
- "40": { value: {
218
- _light: "#56b0fb",
219
- _dark: "#266df0"
220
- } },
221
- "50": { value: {
222
- _light: "#34a0fa",
223
- _dark: "#629df0"
224
- } },
225
- "60": { value: {
226
- _light: "#2a80c8",
227
- _dark: "#a3cff7"
228
- } },
229
- "70": { value: {
230
- _light: "#0666c6",
231
- _dark: "#c5e3fa"
232
- } },
233
- "80": { value: {
234
- _light: "#05529e",
235
- _dark: "#e5eeff"
236
- } },
237
- "90": { value: {
238
- _light: "#043d77",
239
- _dark: "#f5fbff"
240
- } },
241
- "00": { value: {
242
- _light: "#eff9ff",
243
- _dark: "#071e69"
244
- } }
245
- });
246
-
247
- //#endregion
248
- //#region src/theme/colors/neutral.gen.ts
249
- const neutral = defineSemanticTokens.colors({
250
- white: { value: {
251
- _light: "#ffffff",
252
- _dark: "#000000"
253
- } },
254
- black: { value: {
255
- _light: "#000000",
256
- _dark: "#ffffff"
257
- } }
258
- });
259
-
260
- //#endregion
261
- //#region src/theme/colors/purple.gen.ts
262
- const purple = defineSemanticTokens.colors({
263
- "10": { value: {
264
- _light: "#e0d6fc",
265
- _dark: "#2d138f"
266
- } },
267
- "20": { value: {
268
- _light: "#c2adf8",
269
- _dark: "#401db3"
270
- } },
271
- "30": { value: {
272
- _light: "#a385f5",
273
- _dark: "#5429d6"
274
- } },
275
- "40": { value: {
276
- _light: "#865cf1",
277
- _dark: "#6633ee"
278
- } },
279
- "50": { value: {
280
- _light: "#6633ee",
281
- _dark: "#865cf1"
282
- } },
283
- "60": { value: {
284
- _light: "#5429d6",
285
- _dark: "#a385f5"
286
- } },
287
- "70": { value: {
288
- _light: "#401db3",
289
- _dark: "#c2adf8"
290
- } },
291
- "80": { value: {
292
- _light: "#2d138f",
293
- _dark: "#e0d6fc"
294
- } },
295
- "90": { value: {
296
- _light: "#1d0a6b",
297
- _dark: "#eee6f3"
298
- } },
299
- "00": { value: {
300
- _light: "#eee6f3",
301
- _dark: "#1d0a6b"
302
- } }
303
- });
304
-
305
- //#endregion
306
- //#region src/theme/colors/pink.gen.ts
307
- const pink = defineSemanticTokens.colors({
308
- "10": { value: {
309
- _light: "#fce7f3",
310
- _dark: "#9d174d"
311
- } },
312
- "20": { value: {
313
- _light: "#fbcfe8",
314
- _dark: "#be185d"
315
- } },
316
- "30": { value: {
317
- _light: "#f9a8d4",
318
- _dark: "#db2777"
319
- } },
320
- "40": { value: {
321
- _light: "#f174b2",
322
- _dark: "#ec4899"
323
- } },
324
- "50": { value: {
325
- _light: "#ec4899",
326
- _dark: "#f174b2"
327
- } },
328
- "60": { value: {
329
- _light: "#db2777",
330
- _dark: "#f9a8d4"
331
- } },
332
- "70": { value: {
333
- _light: "#be185d",
334
- _dark: "#fbcfe8"
335
- } },
336
- "80": { value: {
337
- _light: "#9d174d",
338
- _dark: "#fce7f3"
339
- } },
340
- "90": { value: {
341
- _light: "#831843",
342
- _dark: "#fdf2f8"
343
- } },
344
- "00": { value: {
345
- _light: "#fdf2f8",
346
- _dark: "#831843"
347
- } }
348
- });
349
-
350
- //#endregion
351
- //#region src/theme/colors/yellow.gen.ts
352
- const yellow = defineSemanticTokens.colors({
353
- "10": { value: {
354
- _light: "#fef9c3",
355
- _dark: "#854d0e"
356
- } },
357
- "20": { value: {
358
- _light: "#fef08a",
359
- _dark: "#a16207"
360
- } },
361
- "30": { value: {
362
- _light: "#fde047",
363
- _dark: "#ca8a04"
364
- } },
365
- "40": { value: {
366
- _light: "#facc15",
367
- _dark: "#eab308"
368
- } },
369
- "50": { value: {
370
- _light: "#eab308",
371
- _dark: "#facc15"
372
- } },
373
- "60": { value: {
374
- _light: "#ca8a04",
375
- _dark: "#fde047"
376
- } },
377
- "70": { value: {
378
- _light: "#a16207",
379
- _dark: "#fef08a"
380
- } },
381
- "80": { value: {
382
- _light: "#854d0e",
383
- _dark: "#fef9c3"
384
- } },
385
- "90": { value: {
386
- _light: "#713f12",
387
- _dark: "#fefce8"
388
- } },
389
- "00": { value: {
390
- _light: "#fefce8",
391
- _dark: "#713f12"
392
- } }
393
- });
394
-
395
- //#endregion
396
- //#region src/theme/colors/accent.gen.ts
397
- const accent = defineSemanticTokens.colors({
398
- "10": { value: {
399
- _light: "#bbdffd",
400
- _dark: "#0e2e8c"
401
- } },
402
- "20": { value: {
403
- _light: "#9ad0fd",
404
- _dark: "#1541b0"
405
- } },
406
- "30": { value: {
407
- _light: "#78c0fc",
408
- _dark: "#1c62e3"
409
- } },
410
- "40": { value: {
411
- _light: "#56b0fb",
412
- _dark: "#266df0"
413
- } },
414
- "50": { value: {
415
- _light: "#2070e6",
416
- _dark: "#629df0"
417
- } },
418
- "60": { value: {
419
- _light: "#1567e0",
420
- _dark: "#a3cff7"
421
- } },
422
- "70": { value: {
423
- _light: "#0666c6",
424
- _dark: "#c5e3fa"
425
- } },
426
- "80": { value: {
427
- _light: "#05529e",
428
- _dark: "#e5eeff"
429
- } },
430
- "90": { value: {
431
- _light: "#043d77",
432
- _dark: "#f5fbff"
433
- } },
434
- "00": { value: {
435
- _light: "#ddeffe",
436
- _dark: "#071e69"
437
- } }
438
- });
439
-
440
- //#endregion
441
- //#region src/theme/colors/accent-gray.gen.ts
442
- const accentGray = defineSemanticTokens.colors({
443
- "10": { value: {
444
- _light: "rgba(0, 0, 0, 0.023)",
445
- _dark: "rgba(255, 255, 255, 0.035)"
446
- } },
447
- "20": { value: {
448
- _light: "rgba(0, 0, 0, 0.059)",
449
- _dark: "#ffffff"
450
- } },
451
- "30": { value: {
452
- _light: "rgba(0, 0, 0, 0.09)",
453
- _dark: "#ffffff"
454
- } },
455
- "40": { value: {
456
- _light: "rgba(0, 0, 0, 0.122)",
457
- _dark: "#ffffff"
458
- } },
459
- "50": { value: {
460
- _light: "rgba(0, 0, 0, 0.149)",
461
- _dark: "#ffffff"
462
- } },
463
- "60": { value: {
464
- _light: "rgba(0, 0, 0, 0.192)",
465
- _dark: "#ffffff"
466
- } },
467
- "70": { value: {
468
- _light: "rgba(0, 0, 0, 0.267)",
469
- _dark: "#ffffff"
470
- } },
471
- "80": { value: {
472
- _light: "rgba(0, 0, 0, 0.447)",
473
- _dark: "#ffffff"
474
- } },
475
- "90": { value: {
476
- _light: "rgba(0, 0, 0, 0.486)",
477
- _dark: "#ffffff"
478
- } },
479
- "95": { value: {
480
- _light: "rgba(0, 0, 0, 0.608)",
481
- _dark: "#ffffff"
482
- } },
483
- "00": { value: {
484
- _light: "rgba(0, 0, 0, 0.012)",
485
- _dark: "rgba(255, 255, 255, 0)"
486
- } }
487
- });
488
-
489
- //#endregion
490
- //#region src/theme/colors/accent-alpha.gen.ts
491
- const accentAlpha = defineSemanticTokens.colors({
492
- "10": { value: {
493
- _light: "rgba(38, 121, 243, 0.043)",
494
- _dark: "#0e2e8c"
495
- } },
496
- "20": { value: {
497
- _light: "rgba(38, 121, 243, 0.098)",
498
- _dark: "rgba(21, 65, 176, 0.098)"
499
- } },
500
- "30": { value: {
501
- _light: "rgba(38, 121, 243, 0.165)",
502
- _dark: "rgba(28, 98, 227, 0.165)"
503
- } },
504
- "40": { value: {
505
- _light: "rgba(38, 121, 243, 0.239)",
506
- _dark: "rgba(38, 109, 240, 0.239)"
507
- } },
508
- "50": { value: {
509
- _light: "rgba(38, 121, 243, 0.326)",
510
- _dark: "rgba(98, 157, 240, 0.326)"
511
- } },
512
- "60": { value: {
513
- _light: "rgba(21, 103, 224, 0.443)",
514
- _dark: "rgba(163, 207, 247, 0.443)"
515
- } },
516
- "70": { value: {
517
- _light: "rgba(38, 121, 243, 0.631)",
518
- _dark: "rgba(197, 227, 250, 0.631)"
519
- } },
520
- "80": { value: {
521
- _light: "rgba(38, 121, 243, 0.78)",
522
- _dark: "#e5eeff"
523
- } },
524
- "90": { value: {
525
- _light: "rgba(38, 121, 243, 0.849)",
526
- _dark: "rgba(245, 251, 255, 0.849)"
527
- } },
528
- "00": { value: {
529
- _light: "rgba(38, 121, 243, 0.016)",
530
- _dark: "#071e69"
531
- } }
532
- });
533
-
534
- //#endregion
535
- //#region src/theme/colors/white-alpha.gen.ts
536
- const whiteAlpha = defineSemanticTokens.colors({
537
- "10": { value: {
538
- _light: "rgba(255, 255, 255, 0.1)",
539
- _dark: "rgba(0, 0, 0, 0.035)"
540
- } },
541
- "20": { value: {
542
- _light: "rgba(255, 255, 255, 0.2)",
543
- _dark: "#000000"
544
- } },
545
- "30": { value: {
546
- _light: "rgba(255, 255, 255, 0.3)",
547
- _dark: "#ffffff"
548
- } },
549
- "40": { value: {
550
- _light: "rgba(255, 255, 255, 0.4)",
551
- _dark: "#ffffff"
552
- } },
553
- "50": { value: {
554
- _light: "rgba(255, 255, 255, 0.5)",
555
- _dark: "#ffffff"
556
- } },
557
- "60": { value: {
558
- _light: "rgba(255, 255, 255, 0.6)",
559
- _dark: "#ffffff"
560
- } },
561
- "70": { value: {
562
- _light: "rgba(255, 255, 255, 0.7)",
563
- _dark: "#ffffff"
564
- } },
565
- "80": { value: {
566
- _light: "rgba(255, 255, 255, 0.8)",
567
- _dark: "#ffffff"
568
- } },
569
- "90": { value: {
570
- _light: "rgba(255, 255, 255, 0.9)",
571
- _dark: "#ffffff"
572
- } },
573
- "95": { value: {
574
- _light: "rgba(255, 255, 255, 0.95)",
575
- _dark: "#ffffff"
576
- } },
577
- "00": { value: {
578
- _light: "rgba(255, 255, 255, 0)",
579
- _dark: "rgba(0, 0, 0, 0)"
580
- } }
581
- });
582
-
583
- //#endregion
584
- //#region src/theme/colors/semantic-border.gen.ts
585
- const border = defineSemanticTokens.colors({
586
- neutral: {
587
- hover: {
588
- value: "{colors.gray.35}",
589
- description: "input:hover"
590
- },
591
- DEFAULT: {
592
- value: "{colors.gray.20}",
593
- description: "inputs, button border, anything interactive"
594
- },
595
- subtle: {
596
- value: "{colors.gray.20}",
597
- description: "container borders"
598
- },
599
- muted: { value: "{colors.gray.10}" },
600
- active: {
601
- value: "{colors.gray.90}",
602
- description: "input:hover"
603
- },
604
- emphasis: {
605
- value: "{colors.gray.30}",
606
- description: "container borders"
607
- }
608
- },
609
- status: {
610
- info: { value: "{colors.blue.10}" },
611
- caution: { value: "{colors.yellow.10}" },
612
- warning: { value: "{colors.orange.10}" },
613
- critical: { value: "{colors.red.10}" },
614
- success: { value: "{colors.green.10}" }
615
- }
616
- });
617
-
618
- //#endregion
619
- //#region src/theme/colors/semantic-text.gen.ts
620
- const text = defineSemanticTokens.colors({
621
- primary: {
622
- value: "{colors.gray.90}",
623
- description: "Primary color for text and icons in any given interface. It should be used for titles and labels."
624
- },
625
- secondary: {
626
- value: "{colors.gray.70}",
627
- description: "Use for content that is secondary or that provides additional context but is not critical to understanding the flow of an interface. Body text"
628
- },
629
- tertiary: {
630
- value: "{colors.gray.50}",
631
- description: "Use for secondary text, icons"
632
- },
633
- disabled: {
634
- value: "{colors.gray.40}",
635
- description: "Use for secondary text, icons"
636
- },
637
- inverted: { value: "{colors.neutral.white}" },
638
- status: {
639
- info: {
640
- value: "{colors.blue.90}",
641
- description: "Use for interactive text or icons like links or buttons."
642
- },
643
- success: {
644
- value: "{colors.green.80}",
645
- description: "Use to emphasize a positive message."
646
- },
647
- warning: {
648
- value: "{colors.orange.80}",
649
- description: "Use to highlight elements that require a user's attention or pending statuses."
650
- },
651
- critical: {
652
- value: "{colors.red.80}",
653
- description: "Use to emphasize content for an error. Action is required."
654
- }
655
- },
656
- link: { value: "{colors.accent.60}" },
657
- linkHover: { value: "{colors.accent.70}" }
658
- });
659
-
660
- //#endregion
661
- //#region src/theme/colors/semantic-surface.gen.ts
662
- const surface = defineSemanticTokens.colors({
663
- DEFAULT: {
664
- value: "{colors.neutral.white}",
665
- description: "inputs, button border, anything interactive"
666
- },
667
- emphasis: {
668
- value: "{colors.gray.20}",
669
- description: "input:hover"
670
- },
671
- subtle: {
672
- value: "{colors.gray.20}",
673
- description: "container borders"
674
- },
675
- alt: { value: "{colors.gray.00}" },
676
- muted: {
677
- value: "{colors.gray.10}",
678
- description: "inputs, button border, anything interactive"
679
- },
680
- inverted: {
681
- value: "{colors.gray.90}",
682
- description: "input:hover"
683
- }
684
- });
685
-
686
- //#endregion
687
- //#region src/theme/colors/semantic-bg.gen.ts
688
- const bg = defineSemanticTokens.colors({
689
- accent: {
690
- subtle: {
691
- DEFAULT: {
692
- value: "{colors.accent.00}",
693
- description: "inputs, button border, anything interactive"
694
- },
695
- hover: { value: "{colors.accent.10}" },
696
- active: {
697
- value: "{colors.accent.00}",
698
- description: "container borders"
699
- }
700
- },
701
- bold: {
702
- DEFAULT: {
703
- value: "{colors.accent.50}",
704
- description: "inputs, button border, anything interactive"
705
- },
706
- hover: { value: "{colors.accent.60}" },
707
- pressed: {
708
- value: "{colors.accent.60}",
709
- description: "container borders"
710
- },
711
- active: {
712
- value: "{colors.accent.50}",
713
- description: "container borders"
714
- }
715
- }
716
- },
717
- neutral: {
718
- subtle: {
719
- DEFAULT: { value: "{colors.neutral.white}" },
720
- hover: { value: "{colors.gray.10}" },
721
- active: { value: "{colors.gray.20}" },
722
- pressed: { value: "{colors.gray.10}" }
723
- },
724
- bold: {
725
- DEFAULT: {
726
- value: "{colors.gray.80}",
727
- description: "inputs, button border, anything interactive"
728
- },
729
- hover: { value: "{colors.gray.70}" },
730
- active: {
731
- value: "{colors.gray.80}",
732
- description: "container borders"
733
- },
734
- pressed: {
735
- value: "{colors.gray.70}",
736
- description: "container borders"
737
- }
738
- }
739
- },
740
- status: {
741
- info: { subtle: {
742
- DEFAULT: {
743
- value: "{colors.blue.00}",
744
- description: "inputs, button border, anything interactive"
745
- },
746
- hover: { value: "{colors.blue.10}" },
747
- active: {
748
- value: "{colors.blue.00}",
749
- description: "container borders"
750
- }
751
- } },
752
- success: { subtle: {
753
- DEFAULT: {
754
- value: "{colors.green.00}",
755
- description: "inputs, button border, anything interactive"
756
- },
757
- hover: { value: "{colors.green.10}" },
758
- active: {
759
- value: "{colors.green.00}",
760
- description: "container borders"
761
- }
762
- } },
763
- caution: { subtle: {
764
- DEFAULT: {
765
- value: "{colors.yellow.00}",
766
- description: "inputs, button border, anything interactive"
767
- },
768
- hover: { value: "{colors.yellow.10}" },
769
- active: {
770
- value: "{colors.yellow.00}",
771
- description: "container borders"
772
- }
773
- } },
774
- warning: { subtle: {
775
- DEFAULT: {
776
- value: "{colors.orange.00}",
777
- description: "inputs, button border, anything interactive"
778
- },
779
- hover: { value: "{colors.orange.10}" },
780
- active: {
781
- value: "{colors.orange.00}",
782
- description: "container borders"
783
- }
784
- } },
785
- critical: {
786
- subtle: {
787
- DEFAULT: {
788
- value: "{colors.red.00}",
789
- description: "inputs, button border, anything interactive"
790
- },
791
- hover: { value: "{colors.red.10}" },
792
- active: {
793
- value: "{colors.red.00}",
794
- description: "container borders"
795
- }
796
- },
797
- strong: {
798
- DEFAULT: {
799
- value: "{colors.red.50}",
800
- description: "inputs, button border, anything interactive"
801
- },
802
- hover: { value: "{colors.red.60}" },
803
- active: {
804
- value: "{colors.red.50}",
805
- description: "container borders"
806
- }
807
- }
808
- }
809
- }
810
- });
811
-
812
- //#endregion
813
- //#region src/theme/colors/semantic-icon.gen.ts
814
- const icon = defineSemanticTokens.colors({
815
- primary: {
816
- value: "{colors.gray.70}",
817
- description: "Primary color for text and icons in any given interface. It should be used for titles and labels."
818
- },
819
- secondary: {
820
- value: "{colors.gray.50}",
821
- description: "Use for content that is secondary or that provides additional context but is not critical to understanding the flow of an interface. Body text"
822
- },
823
- tertiary: {
824
- value: "{colors.gray.40}",
825
- description: "Use for secondary text, icons"
826
- },
827
- disabled: {
828
- value: "{colors.gray.30}",
829
- description: "Use for secondary text, icons"
830
- },
831
- inverted: { value: "{colors.neutral.white}" },
832
- link: { value: "{colors.accent.60}" },
833
- linkHover: { value: "{colors.accent.70}" },
834
- status: {
835
- info: {
836
- value: "{colors.blue.90}",
837
- description: "Use for interactive text or icons like links or buttons."
838
- },
839
- success: {
840
- value: "{colors.green.80}",
841
- description: "Use to emphasize a positive message."
842
- },
843
- warning: {
844
- value: "{colors.orange.70}",
845
- description: "Use to highlight elements that require a user's attention or pending statuses."
846
- },
847
- critical: {
848
- value: "{colors.red.70}",
849
- description: "Use to emphasize content for an error. Action is required."
850
- }
851
- }
852
- });
853
-
854
- //#endregion
855
- //#region src/theme/colors/semantic-surface-glass.gen.ts
856
- const surfaceGlass = defineSemanticTokens.colors({
857
- "50": {
858
- value: "{colors.gray.20}",
859
- description: "input:hover"
860
- },
861
- "60": {
862
- value: "{colors.whiteAlpha.60}",
863
- description: "container borders"
864
- },
865
- "70": {
866
- value: "{colors.whiteAlpha.70}",
867
- description: "inputs, button border, anything interactive"
868
- },
869
- DEFAULT: {
870
- value: "{colors.whiteAlpha.90}",
871
- description: "inputs, button border, anything interactive"
872
- },
873
- alt: { value: "{colors.whiteAlpha.60}" }
874
- });
875
-
876
- //#endregion
877
- //#region src/theme/colors.gen.ts
878
- /** Core color scales (gray, red, blue, etc.) with light/dark mode values. */
879
- const coreColors = {
880
- gray,
881
- red,
882
- orange,
883
- green,
884
- blue,
885
- neutral,
886
- purple,
887
- pink,
888
- yellow,
889
- accent,
890
- accentGray,
891
- accentAlpha,
892
- whiteAlpha
893
- };
894
- /** Semantic color tokens (bg, text, border, etc.) that reference core colors. */
895
- const semanticColors = {
896
- border,
897
- text,
898
- surface,
899
- bg,
900
- icon,
901
- surfaceGlass
902
- };
903
- /** Combined colors export for use in Panda preset. */
904
- const colors = {
905
- ...coreColors,
906
- ...semanticColors
907
- };
908
-
909
- //#endregion
910
- //#region src/theme/tokens/spacing.gen.ts
911
- const spacing = defineTokens.spacing({
912
- DEFAULT: {
913
- "0": { value: "0px" },
914
- "1": { value: "1px" },
915
- "2": { value: "2px" },
916
- "3": { value: "4px" },
917
- "4": { value: "6px" },
918
- "5": { value: "8px" },
919
- "6": { value: "10px" },
920
- "7": { value: "12px" },
921
- "8": { value: "14px" },
922
- "9": { value: "16px" },
923
- "10": { value: "20px" },
924
- "11": { value: "24px" },
925
- "12": { value: "28px" }
926
- },
927
- compact: {
928
- "0": { value: "0px" },
929
- "1": { value: "1px" },
930
- "2": { value: "1px" },
931
- "3": { value: "2px" },
932
- "4": { value: "4px" },
933
- "5": { value: "6px" },
934
- "6": { value: "8px" },
935
- "7": { value: "10px" },
936
- "8": { value: "12px" },
937
- "9": { value: "14px" },
938
- "10": { value: "16px" },
939
- "11": { value: "20px" },
940
- "12": { value: "24px" }
941
- },
942
- comfortable: {
943
- "0": { value: "0px" },
944
- "1": { value: "2px" },
945
- "2": { value: "4px" },
946
- "3": { value: "6px" },
947
- "4": { value: "8px" },
948
- "5": { value: "10px" },
949
- "6": { value: "12px" },
950
- "7": { value: "14px" },
951
- "8": { value: "16px" },
952
- "9": { value: "20px" },
953
- "10": { value: "24px" },
954
- "11": { value: "28px" },
955
- "12": { value: "32px" }
956
- }
957
- });
958
-
959
- //#endregion
960
- //#region src/theme/tokens/typography.gen.ts
961
- const fonts = defineTokens.fonts({
962
- display: { value: "Inter Display" },
963
- body: { value: "Inter" }
964
- });
965
- const fontWeights = defineTokens.fontWeights({
966
- normal: { value: 400 },
967
- medium: { value: 500 },
968
- semibold: { value: 600 }
969
- });
970
- const fontSizes = defineTokens.fontSizes({
971
- "3xl": { value: "30px" },
972
- sm: { value: "14px" },
973
- base: { value: "16px" },
974
- xs: { value: "12px" },
975
- xl: { value: "20px" },
976
- lg: { value: "18px" },
977
- "2xl": { value: "24px" },
978
- "4xl": { value: "36px" }
979
- });
980
- const lineHeights = defineTokens.lineHeights({
981
- none: {
982
- "text-3xl": { value: "{fontSizes.3xl}" },
983
- "text-sm": { value: "{fontSizes.sm}" },
984
- "text-xs": { value: "{fontSizes.xs}" },
985
- "text-base": { value: "{fontSizes.base}" },
986
- "text-lg": { value: "{fontSizes.lg}" }
987
- },
988
- normal: {
989
- "text-xs": { value: "18px" },
990
- "text-sm": { value: "21px" },
991
- "text-base": { value: "24px" },
992
- "text-lg": { value: "27px" }
993
- }
994
- });
995
-
996
- //#endregion
997
- //#region src/theme/tokens/radii.gen.ts
998
- const radii = defineTokens.radii({
999
- md: {
1000
- "0": { value: "0px" },
1001
- "1": { value: "2px" },
1002
- "2": { value: "4px" },
1003
- "3": { value: "6px" },
1004
- "4": { value: "8px" },
1005
- "5": { value: "10px" },
1006
- "6": { value: "12px" },
1007
- "7": { value: "16px" },
1008
- "8": { value: "20px" },
1009
- "9": { value: "24px" },
1010
- "10": { value: "32px" },
1011
- full: { value: "9999px" }
1012
- },
1013
- sm: {
1014
- "0": { value: "0px" },
1015
- "1": { value: "1px" },
1016
- "2": { value: "2px" },
1017
- "3": { value: "4px" },
1018
- "4": { value: "6px" },
1019
- "5": { value: "8px" },
1020
- "6": { value: "10px" },
1021
- "7": { value: "12px" },
1022
- "8": { value: "16px" },
1023
- "9": { value: "20px" },
1024
- "10": { value: "24px" },
1025
- full: { value: "9999px" }
1026
- },
1027
- lg: {
1028
- "0": { value: "0px" },
1029
- "1": { value: "4px" },
1030
- "2": { value: "6px" },
1031
- "3": { value: "8px" },
1032
- "4": { value: "10px" },
1033
- "5": { value: "12px" },
1034
- "6": { value: "16px" },
1035
- "7": { value: "20px" },
1036
- "8": { value: "24px" },
1037
- "9": { value: "32px" },
1038
- "10": { value: "40px" },
1039
- full: { value: "9999px" }
1040
- },
1041
- full: {
1042
- "0": { value: "9999px" },
1043
- "1": { value: "9999px" },
1044
- "2": { value: "9999px" },
1045
- "3": { value: "9999px" },
1046
- "4": { value: "9999px" },
1047
- "5": { value: "9999px" },
1048
- "6": { value: "9999px" },
1049
- "7": { value: "9999px" },
1050
- "8": { value: "9999px" },
1051
- "9": { value: "9999px" },
1052
- "10": { value: "9999px" },
1053
- full: { value: "9999px" }
1054
- },
1055
- none: {
1056
- "0": { value: "0px" },
1057
- "1": { value: "0px" },
1058
- "2": { value: "0px" },
1059
- "3": { value: "0px" },
1060
- "4": { value: "0px" },
1061
- "5": { value: "0px" },
1062
- "6": { value: "0px" },
1063
- "7": { value: "0px" },
1064
- "8": { value: "0px" },
1065
- "9": { value: "0px" },
1066
- "10": { value: "0px" },
1067
- full: { value: "0px" }
1068
- },
1069
- component: { button: {
1070
- sm: { value: "{radii.md.4}" },
1071
- md: { value: "{radii.md.4}" },
1072
- lg: { value: "{radii.md.5}" },
1073
- xs: { value: "{radii.md.3}" }
1074
- } }
1075
- });
1076
-
1077
- //#endregion
1078
- export { lineHeights as a, coreColors as c, fonts as i, semanticColors as l, fontSizes as n, spacing as o, fontWeights as r, colors as s, radii as t, definePreset as u };