@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.
package/dist/main.js CHANGED
@@ -1,25 +1,957 @@
1
- import { a as lineHeights, i as fonts, n as fontSizes, o as spacing, r as fontWeights, s as colors, t as radii, u as definePreset } from "./radii.gen-aroChr7P.js";
2
-
1
+ import { a as staticColors, d as green, h as definePreset$1, i as palettes, m as defineGlobalStyles, n as fontWeights$1, p as blue, s as red, t as fontSizes$1, u as orange } from "./typography.gen-Bua4caJG.js";
2
+ //#region ../../../node_modules/@pandacss/preset-panda/dist/index.mjs
3
+ var breakpoints = {
4
+ sm: "640px",
5
+ md: "768px",
6
+ lg: "1024px",
7
+ xl: "1280px",
8
+ "2xl": "1536px"
9
+ };
10
+ var containerSizes = {
11
+ xs: "320px",
12
+ sm: "384px",
13
+ md: "448px",
14
+ lg: "512px",
15
+ xl: "576px",
16
+ "2xl": "672px",
17
+ "3xl": "768px",
18
+ "4xl": "896px",
19
+ "5xl": "1024px",
20
+ "6xl": "1152px",
21
+ "7xl": "1280px",
22
+ "8xl": "1440px"
23
+ };
24
+ var keyframes = {
25
+ spin: { to: { transform: "rotate(360deg)" } },
26
+ ping: { "75%, 100%": {
27
+ transform: "scale(2)",
28
+ opacity: "0"
29
+ } },
30
+ pulse: { "50%": { opacity: ".5" } },
31
+ bounce: {
32
+ "0%, 100%": {
33
+ transform: "translateY(-25%)",
34
+ animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
35
+ },
36
+ "50%": {
37
+ transform: "none",
38
+ animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
39
+ }
40
+ }
41
+ };
42
+ var animations = {
43
+ spin: { value: "spin 1s linear infinite" },
44
+ ping: { value: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite" },
45
+ pulse: { value: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite" },
46
+ bounce: { value: "bounce 1s infinite" }
47
+ };
48
+ var aspectRatios = {
49
+ square: { value: "1 / 1" },
50
+ landscape: { value: "4 / 3" },
51
+ portrait: { value: "3 / 4" },
52
+ wide: { value: "16 / 9" },
53
+ ultrawide: { value: "18 / 5" },
54
+ golden: { value: "1.618 / 1" }
55
+ };
56
+ var borders = { none: { value: "none" } };
57
+ var colors = {
58
+ current: { value: "currentColor" },
59
+ black: { value: "#000" },
60
+ white: { value: "#fff" },
61
+ transparent: { value: "rgb(0 0 0 / 0)" },
62
+ rose: {
63
+ 50: { value: "#fff1f2" },
64
+ 100: { value: "#ffe4e6" },
65
+ 200: { value: "#fecdd3" },
66
+ 300: { value: "#fda4af" },
67
+ 400: { value: "#fb7185" },
68
+ 500: { value: "#f43f5e" },
69
+ 600: { value: "#e11d48" },
70
+ 700: { value: "#be123c" },
71
+ 800: { value: "#9f1239" },
72
+ 900: { value: "#881337" },
73
+ 950: { value: "#4c0519" }
74
+ },
75
+ pink: {
76
+ 50: { value: "#fdf2f8" },
77
+ 100: { value: "#fce7f3" },
78
+ 200: { value: "#fbcfe8" },
79
+ 300: { value: "#f9a8d4" },
80
+ 400: { value: "#f472b6" },
81
+ 500: { value: "#ec4899" },
82
+ 600: { value: "#db2777" },
83
+ 700: { value: "#be185d" },
84
+ 800: { value: "#9d174d" },
85
+ 900: { value: "#831843" },
86
+ 950: { value: "#500724" }
87
+ },
88
+ fuchsia: {
89
+ 50: { value: "#fdf4ff" },
90
+ 100: { value: "#fae8ff" },
91
+ 200: { value: "#f5d0fe" },
92
+ 300: { value: "#f0abfc" },
93
+ 400: { value: "#e879f9" },
94
+ 500: { value: "#d946ef" },
95
+ 600: { value: "#c026d3" },
96
+ 700: { value: "#a21caf" },
97
+ 800: { value: "#86198f" },
98
+ 900: { value: "#701a75" },
99
+ 950: { value: "#4a044e" }
100
+ },
101
+ purple: {
102
+ 50: { value: "#faf5ff" },
103
+ 100: { value: "#f3e8ff" },
104
+ 200: { value: "#e9d5ff" },
105
+ 300: { value: "#d8b4fe" },
106
+ 400: { value: "#c084fc" },
107
+ 500: { value: "#a855f7" },
108
+ 600: { value: "#9333ea" },
109
+ 700: { value: "#7e22ce" },
110
+ 800: { value: "#6b21a8" },
111
+ 900: { value: "#581c87" },
112
+ 950: { value: "#3b0764" }
113
+ },
114
+ violet: {
115
+ 50: { value: "#f5f3ff" },
116
+ 100: { value: "#ede9fe" },
117
+ 200: { value: "#ddd6fe" },
118
+ 300: { value: "#c4b5fd" },
119
+ 400: { value: "#a78bfa" },
120
+ 500: { value: "#8b5cf6" },
121
+ 600: { value: "#7c3aed" },
122
+ 700: { value: "#6d28d9" },
123
+ 800: { value: "#5b21b6" },
124
+ 900: { value: "#4c1d95" },
125
+ 950: { value: "#2e1065" }
126
+ },
127
+ indigo: {
128
+ 50: { value: "#eef2ff" },
129
+ 100: { value: "#e0e7ff" },
130
+ 200: { value: "#c7d2fe" },
131
+ 300: { value: "#a5b4fc" },
132
+ 400: { value: "#818cf8" },
133
+ 500: { value: "#6366f1" },
134
+ 600: { value: "#4f46e5" },
135
+ 700: { value: "#4338ca" },
136
+ 800: { value: "#3730a3" },
137
+ 900: { value: "#312e81" },
138
+ 950: { value: "#1e1b4b" }
139
+ },
140
+ blue: {
141
+ 50: { value: "#eff6ff" },
142
+ 100: { value: "#dbeafe" },
143
+ 200: { value: "#bfdbfe" },
144
+ 300: { value: "#93c5fd" },
145
+ 400: { value: "#60a5fa" },
146
+ 500: { value: "#3b82f6" },
147
+ 600: { value: "#2563eb" },
148
+ 700: { value: "#1d4ed8" },
149
+ 800: { value: "#1e40af" },
150
+ 900: { value: "#1e3a8a" },
151
+ 950: { value: "#172554" }
152
+ },
153
+ sky: {
154
+ 50: { value: "#f0f9ff" },
155
+ 100: { value: "#e0f2fe" },
156
+ 200: { value: "#bae6fd" },
157
+ 300: { value: "#7dd3fc" },
158
+ 400: { value: "#38bdf8" },
159
+ 500: { value: "#0ea5e9" },
160
+ 600: { value: "#0284c7" },
161
+ 700: { value: "#0369a1" },
162
+ 800: { value: "#075985" },
163
+ 900: { value: "#0c4a6e" },
164
+ 950: { value: "#082f49" }
165
+ },
166
+ cyan: {
167
+ 50: { value: "#ecfeff" },
168
+ 100: { value: "#cffafe" },
169
+ 200: { value: "#a5f3fc" },
170
+ 300: { value: "#67e8f9" },
171
+ 400: { value: "#22d3ee" },
172
+ 500: { value: "#06b6d4" },
173
+ 600: { value: "#0891b2" },
174
+ 700: { value: "#0e7490" },
175
+ 800: { value: "#155e75" },
176
+ 900: { value: "#164e63" },
177
+ 950: { value: "#083344" }
178
+ },
179
+ teal: {
180
+ 50: { value: "#f0fdfa" },
181
+ 100: { value: "#ccfbf1" },
182
+ 200: { value: "#99f6e4" },
183
+ 300: { value: "#5eead4" },
184
+ 400: { value: "#2dd4bf" },
185
+ 500: { value: "#14b8a6" },
186
+ 600: { value: "#0d9488" },
187
+ 700: { value: "#0f766e" },
188
+ 800: { value: "#115e59" },
189
+ 900: { value: "#134e4a" },
190
+ 950: { value: "#042f2e" }
191
+ },
192
+ emerald: {
193
+ 50: { value: "#ecfdf5" },
194
+ 100: { value: "#d1fae5" },
195
+ 200: { value: "#a7f3d0" },
196
+ 300: { value: "#6ee7b7" },
197
+ 400: { value: "#34d399" },
198
+ 500: { value: "#10b981" },
199
+ 600: { value: "#059669" },
200
+ 700: { value: "#047857" },
201
+ 800: { value: "#065f46" },
202
+ 900: { value: "#064e3b" },
203
+ 950: { value: "#022c22" }
204
+ },
205
+ green: {
206
+ 50: { value: "#f0fdf4" },
207
+ 100: { value: "#dcfce7" },
208
+ 200: { value: "#bbf7d0" },
209
+ 300: { value: "#86efac" },
210
+ 400: { value: "#4ade80" },
211
+ 500: { value: "#22c55e" },
212
+ 600: { value: "#16a34a" },
213
+ 700: { value: "#15803d" },
214
+ 800: { value: "#166534" },
215
+ 900: { value: "#14532d" },
216
+ 950: { value: "#052e16" }
217
+ },
218
+ lime: {
219
+ 50: { value: "#f7fee7" },
220
+ 100: { value: "#ecfccb" },
221
+ 200: { value: "#d9f99d" },
222
+ 300: { value: "#bef264" },
223
+ 400: { value: "#a3e635" },
224
+ 500: { value: "#84cc16" },
225
+ 600: { value: "#65a30d" },
226
+ 700: { value: "#4d7c0f" },
227
+ 800: { value: "#3f6212" },
228
+ 900: { value: "#365314" },
229
+ 950: { value: "#1a2e05" }
230
+ },
231
+ yellow: {
232
+ 50: { value: "#fefce8" },
233
+ 100: { value: "#fef9c3" },
234
+ 200: { value: "#fef08a" },
235
+ 300: { value: "#fde047" },
236
+ 400: { value: "#facc15" },
237
+ 500: { value: "#eab308" },
238
+ 600: { value: "#ca8a04" },
239
+ 700: { value: "#a16207" },
240
+ 800: { value: "#854d0e" },
241
+ 900: { value: "#713f12" },
242
+ 950: { value: "#422006" }
243
+ },
244
+ amber: {
245
+ 50: { value: "#fffbeb" },
246
+ 100: { value: "#fef3c7" },
247
+ 200: { value: "#fde68a" },
248
+ 300: { value: "#fcd34d" },
249
+ 400: { value: "#fbbf24" },
250
+ 500: { value: "#f59e0b" },
251
+ 600: { value: "#d97706" },
252
+ 700: { value: "#b45309" },
253
+ 800: { value: "#92400e" },
254
+ 900: { value: "#78350f" },
255
+ 950: { value: "#451a03" }
256
+ },
257
+ orange: {
258
+ 50: { value: "#fff7ed" },
259
+ 100: { value: "#ffedd5" },
260
+ 200: { value: "#fed7aa" },
261
+ 300: { value: "#fdba74" },
262
+ 400: { value: "#fb923c" },
263
+ 500: { value: "#f97316" },
264
+ 600: { value: "#ea580c" },
265
+ 700: { value: "#c2410c" },
266
+ 800: { value: "#9a3412" },
267
+ 900: { value: "#7c2d12" },
268
+ 950: { value: "#431407" }
269
+ },
270
+ red: {
271
+ 50: { value: "#fef2f2" },
272
+ 100: { value: "#fee2e2" },
273
+ 200: { value: "#fecaca" },
274
+ 300: { value: "#fca5a5" },
275
+ 400: { value: "#f87171" },
276
+ 500: { value: "#ef4444" },
277
+ 600: { value: "#dc2626" },
278
+ 700: { value: "#b91c1c" },
279
+ 800: { value: "#991b1b" },
280
+ 900: { value: "#7f1d1d" },
281
+ 950: { value: "#450a0a" }
282
+ },
283
+ neutral: {
284
+ 50: { value: "#fafafa" },
285
+ 100: { value: "#f5f5f5" },
286
+ 200: { value: "#e5e5e5" },
287
+ 300: { value: "#d4d4d4" },
288
+ 400: { value: "#a3a3a3" },
289
+ 500: { value: "#737373" },
290
+ 600: { value: "#525252" },
291
+ 700: { value: "#404040" },
292
+ 800: { value: "#262626" },
293
+ 900: { value: "#171717" },
294
+ 950: { value: "#0a0a0a" }
295
+ },
296
+ stone: {
297
+ 50: { value: "#fafaf9" },
298
+ 100: { value: "#f5f5f4" },
299
+ 200: { value: "#e7e5e4" },
300
+ 300: { value: "#d6d3d1" },
301
+ 400: { value: "#a8a29e" },
302
+ 500: { value: "#78716c" },
303
+ 600: { value: "#57534e" },
304
+ 700: { value: "#44403c" },
305
+ 800: { value: "#292524" },
306
+ 900: { value: "#1c1917" },
307
+ 950: { value: "#0c0a09" }
308
+ },
309
+ zinc: {
310
+ 50: { value: "#fafafa" },
311
+ 100: { value: "#f4f4f5" },
312
+ 200: { value: "#e4e4e7" },
313
+ 300: { value: "#d4d4d8" },
314
+ 400: { value: "#a1a1aa" },
315
+ 500: { value: "#71717a" },
316
+ 600: { value: "#52525b" },
317
+ 700: { value: "#3f3f46" },
318
+ 800: { value: "#27272a" },
319
+ 900: { value: "#18181b" },
320
+ 950: { value: "#09090b" }
321
+ },
322
+ gray: {
323
+ 50: { value: "#f9fafb" },
324
+ 100: { value: "#f3f4f6" },
325
+ 200: { value: "#e5e7eb" },
326
+ 300: { value: "#d1d5db" },
327
+ 400: { value: "#9ca3af" },
328
+ 500: { value: "#6b7280" },
329
+ 600: { value: "#4b5563" },
330
+ 700: { value: "#374151" },
331
+ 800: { value: "#1f2937" },
332
+ 900: { value: "#111827" },
333
+ 950: { value: "#030712" }
334
+ },
335
+ slate: {
336
+ 50: { value: "#f8fafc" },
337
+ 100: { value: "#f1f5f9" },
338
+ 200: { value: "#e2e8f0" },
339
+ 300: { value: "#cbd5e1" },
340
+ 400: { value: "#94a3b8" },
341
+ 500: { value: "#64748b" },
342
+ 600: { value: "#475569" },
343
+ 700: { value: "#334155" },
344
+ 800: { value: "#1e293b" },
345
+ 900: { value: "#0f172a" },
346
+ 950: { value: "#020617" }
347
+ }
348
+ };
349
+ var shadows = {
350
+ "2xs": { value: "0 1px rgb(0 0 0 / 0.05)" },
351
+ xs: { value: "0 1px 2px 0 rgb(0 0 0 / 0.05)" },
352
+ sm: { value: ["0 1px 3px 0 rgb(0 0 0 / 0.1)", "0 1px 2px -1px rgb(0 0 0 / 0.1)"] },
353
+ md: { value: ["0 4px 6px -1px rgb(0 0 0 / 0.1)", "0 2px 4px -2px rgb(0 0 0 / 0.1)"] },
354
+ lg: { value: ["0 10px 15px -3px rgb(0 0 0 / 0.1)", "0 4px 6px -4px rgb(0 0 0 / 0.1)"] },
355
+ xl: { value: ["0 20px 25px -5px rgb(0 0 0 / 0.1)", "0 8px 10px -6px rgb(0 0 0 / 0.1)"] },
356
+ "2xl": { value: "0 25px 50px -12px rgb(0 0 0 / 0.25)" },
357
+ "inset-2xs": { value: "inset 0 1px rgb(0 0 0 / 0.05)" },
358
+ "inset-xs": { value: "inset 0 1px 1px rgb(0 0 0 / 0.05)" },
359
+ "inset-sm": { value: "inset 0 2px 4px rgb(0 0 0 / 0.05)" }
360
+ };
361
+ var spacing = {
362
+ 0: { value: "0rem" },
363
+ .5: { value: "0.125rem" },
364
+ 1: { value: "0.25rem" },
365
+ 1.5: { value: "0.375rem" },
366
+ 2: { value: "0.5rem" },
367
+ 2.5: { value: "0.625rem" },
368
+ 3: { value: "0.75rem" },
369
+ 3.5: { value: "0.875rem" },
370
+ 4: { value: "1rem" },
371
+ 4.5: { value: "1.125rem" },
372
+ 5: { value: "1.25rem" },
373
+ 5.5: { value: "1.375rem" },
374
+ 6: { value: "1.5rem" },
375
+ 7: { value: "1.75rem" },
376
+ 8: { value: "2rem" },
377
+ 9: { value: "2.25rem" },
378
+ 10: { value: "2.5rem" },
379
+ 11: { value: "2.75rem" },
380
+ 12: { value: "3rem" },
381
+ 14: { value: "3.5rem" },
382
+ 16: { value: "4rem" },
383
+ 20: { value: "5rem" },
384
+ 24: { value: "6rem" },
385
+ 28: { value: "7rem" },
386
+ 32: { value: "8rem" },
387
+ 36: { value: "9rem" },
388
+ 40: { value: "10rem" },
389
+ 44: { value: "11rem" },
390
+ 48: { value: "12rem" },
391
+ 52: { value: "13rem" },
392
+ 56: { value: "14rem" },
393
+ 60: { value: "15rem" },
394
+ 64: { value: "16rem" },
395
+ 72: { value: "18rem" },
396
+ 80: { value: "20rem" },
397
+ 96: { value: "24rem" }
398
+ };
399
+ var largeSizes = {
400
+ xs: { value: "20rem" },
401
+ sm: { value: "24rem" },
402
+ md: { value: "28rem" },
403
+ lg: { value: "32rem" },
404
+ xl: { value: "36rem" },
405
+ "2xl": { value: "42rem" },
406
+ "3xl": { value: "48rem" },
407
+ "4xl": { value: "56rem" },
408
+ "5xl": { value: "64rem" },
409
+ "6xl": { value: "72rem" },
410
+ "7xl": { value: "80rem" },
411
+ "8xl": { value: "90rem" },
412
+ prose: { value: "65ch" }
413
+ };
414
+ var sizes = {
415
+ ...spacing,
416
+ ...largeSizes,
417
+ full: { value: "100%" },
418
+ min: { value: "min-content" },
419
+ max: { value: "max-content" },
420
+ fit: { value: "fit-content" }
421
+ };
422
+ var fontSizes = {
423
+ "2xs": { value: "0.5rem" },
424
+ xs: { value: "0.75rem" },
425
+ sm: { value: "0.875rem" },
426
+ md: { value: "1rem" },
427
+ lg: { value: "1.125rem" },
428
+ xl: { value: "1.25rem" },
429
+ "2xl": { value: "1.5rem" },
430
+ "3xl": { value: "1.875rem" },
431
+ "4xl": { value: "2.25rem" },
432
+ "5xl": { value: "3rem" },
433
+ "6xl": { value: "3.75rem" },
434
+ "7xl": { value: "4.5rem" },
435
+ "8xl": { value: "6rem" },
436
+ "9xl": { value: "8rem" }
437
+ };
438
+ var fontWeights = {
439
+ thin: { value: "100" },
440
+ extralight: { value: "200" },
441
+ light: { value: "300" },
442
+ normal: { value: "400" },
443
+ medium: { value: "500" },
444
+ semibold: { value: "600" },
445
+ bold: { value: "700" },
446
+ extrabold: { value: "800" },
447
+ black: { value: "900" }
448
+ };
449
+ var letterSpacings = {
450
+ tighter: { value: "-0.05em" },
451
+ tight: { value: "-0.025em" },
452
+ normal: { value: "0em" },
453
+ wide: { value: "0.025em" },
454
+ wider: { value: "0.05em" },
455
+ widest: { value: "0.1em" }
456
+ };
457
+ var lineHeights = {
458
+ none: { value: "1" },
459
+ tight: { value: "1.25" },
460
+ snug: { value: "1.375" },
461
+ normal: { value: "1.5" },
462
+ relaxed: { value: "1.625" },
463
+ loose: { value: "2" }
464
+ };
465
+ var fonts = {
466
+ sans: { value: [
467
+ "ui-sans-serif",
468
+ "system-ui",
469
+ "-apple-system",
470
+ "BlinkMacSystemFont",
471
+ "\"Segoe UI\"",
472
+ "Roboto",
473
+ "\"Helvetica Neue\"",
474
+ "Arial",
475
+ "\"Noto Sans\"",
476
+ "sans-serif",
477
+ "\"Apple Color Emoji\"",
478
+ "\"Segoe UI Emoji\"",
479
+ "\"Segoe UI Symbol\"",
480
+ "\"Noto Color Emoji\""
481
+ ] },
482
+ serif: { value: [
483
+ "ui-serif",
484
+ "Georgia",
485
+ "Cambria",
486
+ "\"Times New Roman\"",
487
+ "Times",
488
+ "serif"
489
+ ] },
490
+ mono: { value: [
491
+ "ui-monospace",
492
+ "SFMono-Regular",
493
+ "Menlo",
494
+ "Monaco",
495
+ "Consolas",
496
+ "\"Liberation Mono\"",
497
+ "\"Courier New\"",
498
+ "monospace"
499
+ ] }
500
+ };
501
+ var textStyles = {
502
+ xs: { value: {
503
+ fontSize: "0.75rem",
504
+ lineHeight: "calc(1 / 0.75)"
505
+ } },
506
+ sm: { value: {
507
+ fontSize: "0.875rem",
508
+ lineHeight: "calc(1.25 / 0.875)"
509
+ } },
510
+ md: { value: {
511
+ fontSize: "1rem",
512
+ lineHeight: "calc(1.5 / 1)"
513
+ } },
514
+ lg: { value: {
515
+ fontSize: "1.125rem",
516
+ lineHeight: "calc(1.75 / 1.125)"
517
+ } },
518
+ xl: { value: {
519
+ fontSize: "1.25rem",
520
+ lineHeight: "calc(1.75 / 1.25)"
521
+ } },
522
+ "2xl": { value: {
523
+ fontSize: "1.5rem",
524
+ lineHeight: "calc(2 / 1.5)"
525
+ } },
526
+ "3xl": { value: {
527
+ fontSize: "1.875rem",
528
+ lineHeight: "calc(2.25 / 1.875)"
529
+ } },
530
+ "4xl": { value: {
531
+ fontSize: "2.25rem",
532
+ lineHeight: "calc(2.5 / 2.25)"
533
+ } },
534
+ "5xl": { value: {
535
+ fontSize: "3rem",
536
+ lineHeight: "1"
537
+ } },
538
+ "6xl": { value: {
539
+ fontSize: "3.75rem",
540
+ lineHeight: "1"
541
+ } },
542
+ "7xl": { value: {
543
+ fontSize: "4.5rem",
544
+ lineHeight: "1"
545
+ } },
546
+ "8xl": { value: {
547
+ fontSize: "6rem",
548
+ lineHeight: "1"
549
+ } },
550
+ "9xl": { value: {
551
+ fontSize: "8rem",
552
+ lineHeight: "1"
553
+ } }
554
+ };
555
+ var defineTokens = (v) => v;
556
+ var tokens = defineTokens({
557
+ aspectRatios,
558
+ borders,
559
+ easings: {
560
+ default: { value: "cubic-bezier(0.4, 0, 0.2, 1)" },
561
+ linear: { value: "linear" },
562
+ in: { value: "cubic-bezier(0.4, 0, 1, 1)" },
563
+ out: { value: "cubic-bezier(0, 0, 0.2, 1)" },
564
+ "in-out": { value: "cubic-bezier(0.4, 0, 0.2, 1)" }
565
+ },
566
+ durations: {
567
+ fastest: { value: "50ms" },
568
+ faster: { value: "100ms" },
569
+ fast: { value: "150ms" },
570
+ normal: { value: "200ms" },
571
+ slow: { value: "300ms" },
572
+ slower: { value: "400ms" },
573
+ slowest: { value: "500ms" }
574
+ },
575
+ radii: {
576
+ xs: { value: "0.125rem" },
577
+ sm: { value: "0.25rem" },
578
+ md: { value: "0.375rem" },
579
+ lg: { value: "0.5rem" },
580
+ xl: { value: "0.75rem" },
581
+ "2xl": { value: "1rem" },
582
+ "3xl": { value: "1.5rem" },
583
+ "4xl": { value: "2rem" },
584
+ full: { value: "9999px" }
585
+ },
586
+ fontWeights,
587
+ lineHeights,
588
+ fonts,
589
+ letterSpacings,
590
+ fontSizes,
591
+ shadows,
592
+ colors,
593
+ blurs: {
594
+ xs: { value: "4px" },
595
+ sm: { value: "8px" },
596
+ md: { value: "12px" },
597
+ lg: { value: "16px" },
598
+ xl: { value: "24px" },
599
+ "2xl": { value: "40px" },
600
+ "3xl": { value: "64px" }
601
+ },
602
+ spacing,
603
+ sizes,
604
+ animations
605
+ });
606
+ var definePreset = (config) => config;
607
+ var index_default = definePreset({
608
+ name: "@pandacss/preset-panda",
609
+ theme: {
610
+ keyframes,
611
+ breakpoints,
612
+ tokens,
613
+ textStyles,
614
+ containerSizes
615
+ }
616
+ });
617
+ //#endregion
618
+ //#region src/theme/utils.ts
619
+ /**
620
+ * Returns the foreground color to use on a "solid" background (bg.solid / bgSolid.solid).
621
+ * Uses explicit _light/_dark values because solid backgrounds (s90 for colored,
622
+ * s125 for neutral) don't fully invert at the crossover zone.
623
+ *
624
+ * - normal: s90 is dark/vivid in both modes → light text in both
625
+ * - bright: s90 is vivid/light in light mode (dark text), vivid in dark mode (light text)
626
+ * - neutral: solid is s125 which fully inverts → s00 auto-flips correctly
627
+ */
628
+ function fgOnSolid(kind, ps) {
629
+ switch (kind) {
630
+ case "bright": return { value: {
631
+ _dark: ps("s00").value,
632
+ _light: ps("s125").value
633
+ } };
634
+ case "normal":
635
+ case "neutral": return ps("s00");
636
+ }
637
+ }
638
+ /**
639
+ * Creates the bg/fg/bd semantic structure referencing a specific palette.
640
+ * The palette must be a valid token path like "colors.blue" or "colors.neutral".
641
+ *
642
+ * bg — alpha-based layers from transparent (min) through surface/subtle/shaded
643
+ * up to opaque solid; provides hover/active/disabled for each.
644
+ * bgSolid — solid-color equivalents of bg, using opaque s* steps instead of alpha a*.
645
+ * Use for surfaces that must not blend (popovers, dialogs, dropdowns).
646
+ * fg — text hierarchy from max (strongest) through heading/body/muted/subtle,
647
+ * plus link and onSolid (contrast color for solid backgrounds).
648
+ * bd — alpha-based borders at three weights: subtle, solid, strong.
649
+ */
650
+ function createSemanticSet(palette = "neutral", kind = "normal") {
651
+ const ps = (step) => ({ value: `{${palette}.${step}}` });
652
+ const solidAccent = {
653
+ DEFAULT: ps(kind === "neutral" ? "s125" : "s90"),
654
+ hover: kind === "neutral" ? ps("s120") : ps("s100"),
655
+ active: kind === "neutral" ? ps("s120") : ps("s100"),
656
+ disabled: ps("s60")
657
+ };
658
+ return {
659
+ bg: {
660
+ min: {
661
+ DEFAULT: ps("a00"),
662
+ hover: ps("a05"),
663
+ active: ps("a10"),
664
+ disabled: ps("a00")
665
+ },
666
+ surface: {
667
+ DEFAULT: ps("a10"),
668
+ hover: ps("a15"),
669
+ active: ps("a20"),
670
+ disabled: ps("a05")
671
+ },
672
+ subtle: {
673
+ DEFAULT: ps("a30"),
674
+ hover: ps("a40"),
675
+ active: ps("a50"),
676
+ disabled: ps("a15")
677
+ },
678
+ shaded: {
679
+ DEFAULT: ps("a50"),
680
+ hover: ps("a60"),
681
+ active: ps("a65"),
682
+ disabled: ps("a30")
683
+ },
684
+ solid: solidAccent
685
+ },
686
+ bgSolid: {
687
+ min: {
688
+ DEFAULT: ps("s00"),
689
+ hover: ps("s05"),
690
+ active: ps("s10"),
691
+ disabled: ps("s00")
692
+ },
693
+ surface: {
694
+ DEFAULT: ps("s10"),
695
+ hover: ps("s15"),
696
+ active: ps("s20"),
697
+ disabled: ps("s05")
698
+ },
699
+ subtle: {
700
+ DEFAULT: ps("s30"),
701
+ hover: ps("s40"),
702
+ active: ps("s50"),
703
+ disabled: ps("s15")
704
+ },
705
+ shaded: {
706
+ DEFAULT: ps("s50"),
707
+ hover: ps("s60"),
708
+ active: ps("s65"),
709
+ disabled: ps("s30")
710
+ },
711
+ solid: solidAccent
712
+ },
713
+ fg: {
714
+ max: ps("s125"),
715
+ onSolid: fgOnSolid(kind, ps),
716
+ heading: ps("s120"),
717
+ body: {
718
+ DEFAULT: ps("s115"),
719
+ hover: ps("s120"),
720
+ disabled: ps("s90")
721
+ },
722
+ muted: {
723
+ DEFAULT: ps("s100"),
724
+ hover: ps("s110"),
725
+ disabled: ps("s80")
726
+ },
727
+ subtle: {
728
+ DEFAULT: ps("s90"),
729
+ hover: ps("s100"),
730
+ disabled: ps("s70")
731
+ },
732
+ link: {
733
+ DEFAULT: ps("s110"),
734
+ hover: ps("s120"),
735
+ active: ps("s110"),
736
+ disabled: ps("s90")
737
+ }
738
+ },
739
+ bd: {
740
+ subtle: {
741
+ DEFAULT: ps("a40"),
742
+ hover: ps("a50"),
743
+ active: ps("a50"),
744
+ disabled: ps("a20")
745
+ },
746
+ solid: {
747
+ DEFAULT: ps("a60"),
748
+ hover: ps("a70"),
749
+ active: ps("a70"),
750
+ disabled: ps("a40")
751
+ },
752
+ strong: {
753
+ DEFAULT: ps("a80"),
754
+ hover: ps("a90"),
755
+ active: ps("a90"),
756
+ disabled: ps("a60")
757
+ }
758
+ }
759
+ };
760
+ }
761
+ //#endregion
3
762
  //#region src/main.ts
4
- const preset = definePreset({
763
+ const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
764
+ const scaleTokenValues = (tokens, factorVariable, { skipReferences = false } = {}) => {
765
+ const walk = (node) => {
766
+ if (!isObject(node)) return node;
767
+ if ("value" in node && typeof node["value"] === "string") {
768
+ const value = node["value"];
769
+ if (skipReferences && value.includes("{")) return node;
770
+ return {
771
+ ...node,
772
+ value: `calc(${value} * var(${factorVariable}, 1))`
773
+ };
774
+ }
775
+ return Object.fromEntries(Object.entries(node).map(([key, value]) => [key, walk(value)]));
776
+ };
777
+ return walk(tokens);
778
+ };
779
+ const scaledSpacing = scaleTokenValues(index_default.theme.tokens.spacing, "--density-factor");
780
+ const scaledRadii = scaleTokenValues(index_default.theme.tokens.radii, "--roundness-factor");
781
+ const scaledLineHeights = scaleTokenValues(index_default.theme.tokens.lineHeights, "--leading-factor");
782
+ const preset = definePreset$1({
5
783
  name: "@hashintel/ds-theme",
784
+ globalCss: defineGlobalStyles({ "html, body": {
785
+ colorPalette: "neutral",
786
+ focusRingColor: "colorPalette.bd.solid",
787
+ fontFamily: "body",
788
+ bg: "neutral.s00",
789
+ color: "fg.heading",
790
+ "--roundness-factor": "1",
791
+ "--leading-factor": "1",
792
+ "--density-factor": "1"
793
+ } }),
6
794
  conditions: { extend: {
7
- light: ":root &, .light &, [data-theme=light] &",
8
- dark: ".dark &, [data-theme=\"dark\"] &"
795
+ light: ":where(:root:not(.dark, [data-theme=\"dark\"])) &, .light &, [data-theme=light] &",
796
+ dark: ".dark &, [data-theme=\"dark\"] &",
797
+ supportHover: ["@media (hover: hover) and (pointer: fine)", "&:is(:hover, [data-support-hover])"],
798
+ focusVisibleWithin: "&:is(:has(:focus-visible), [data-focus-visible-within])",
799
+ inert: "&:is([inert], [inert] *, [data-inert])",
800
+ groupFocusVisibleWithin: ".group:is(:has(:focus-visible), [data-focus-visible-within]) &",
801
+ peerFocusVisibleWithin: ".peer:is(:has(:focus-visible), [data-focus-visible-within]) ~ &",
802
+ userValid: "&:is(:user-valid, [data-user-valid])",
803
+ userInvalid: "&:is(:user-invalid, [data-user-invalid])",
804
+ pointerFine: "@media (pointer: fine)",
805
+ pointerCoarse: "@media (pointer: coarse)",
806
+ pointerNone: "@media (pointer: none)",
807
+ anyPointerFine: "@media (any-pointer: fine)",
808
+ anyPointerCoarse: "@media (any-pointer: coarse)",
809
+ inHover: ":where(:is(*:hover, [data-in-hover])) &",
810
+ inFocus: ":where(:is(*:focus, [data-in-focus])) &",
811
+ inFocusVisible: ":where(:is(*:focus-visible, [data-in-focus-visible])) &",
812
+ inFocusWithin: ":where(:is(*:focus-within, [data-in-focus-within])) &",
813
+ hasHover: "&:is(:has(*:hover), [data-has-hover])",
814
+ hasFocus: "&:is(:has(*:focus), [data-has-focus])",
815
+ hasFocusVisible: "&:is(:has(*:focus-visible), [data-has-focus-visible])",
816
+ hasFocusWithin: "&:is(:has(*:focus-within), [data-has-focus-within])",
817
+ hasChecked: "&:is(:has(*:checked), [data-has-checked])"
9
818
  } },
10
- theme: {
819
+ utilities: { extend: {
820
+ leading: {
821
+ className: "leading",
822
+ values: {
823
+ tight: "0.9",
824
+ normal: "1",
825
+ loose: "1.1"
826
+ },
827
+ transform(value) {
828
+ return { "--leading-factor": value };
829
+ }
830
+ },
831
+ density: {
832
+ className: "density",
833
+ values: {
834
+ compact: "0.75",
835
+ normal: "1",
836
+ comfortable: "1.25"
837
+ },
838
+ transform(value) {
839
+ return { "--density-factor": value };
840
+ }
841
+ },
842
+ roundness: {
843
+ className: "roundness",
844
+ values: {
845
+ none: "0",
846
+ sm: "0.75",
847
+ md: "1",
848
+ lg: "1.5",
849
+ xl: "2"
850
+ },
851
+ transform(value) {
852
+ return { "--roundness-factor": value };
853
+ }
854
+ }
855
+ } },
856
+ theme: { extend: {
11
857
  tokens: {
12
- spacing,
13
- fonts,
14
- fontWeights,
15
- fontSizes,
16
- lineHeights,
17
- radii
18
- },
19
- extend: { semanticTokens: { colors } }
20
- }
858
+ fontSizes: fontSizes$1,
859
+ fontWeights: fontWeights$1,
860
+ fonts: {
861
+ display: { value: "var(--font-inter-tight), Inter Tight, ui-sans-serif, system-ui, sans-serif" },
862
+ body: { value: "var(--font-inter), Inter, ui-sans-serif, system-ui, sans-serif" },
863
+ mono: { value: "var(--font-geist-mono), Geist Mono, ui-monospace, SFMono-Regular, monospace" }
864
+ },
865
+ colors: staticColors,
866
+ sizes: index_default.theme.tokens.sizes,
867
+ shadows: index_default.theme.tokens.shadows,
868
+ spacing: scaledSpacing,
869
+ radii: scaledRadii,
870
+ lineHeights: scaledLineHeights
871
+ },
872
+ semanticTokens: {
873
+ colors: {
874
+ DEFAULT: createSemanticSet("colors.neutral", "neutral"),
875
+ ...palettes,
876
+ status: {
877
+ info: blue,
878
+ success: green,
879
+ warning: orange,
880
+ error: red
881
+ }
882
+ },
883
+ shadows: { elevation: {
884
+ drop: {
885
+ macro: { value: "{shadows.xs}" },
886
+ micro: { value: "{shadows.2xs}" }
887
+ },
888
+ lift: {
889
+ macro: { value: "{shadows.sm}" },
890
+ micro: { value: "{shadows.xs}" }
891
+ },
892
+ raise: {
893
+ macro: { value: "{shadows.md}" },
894
+ micro: { value: "{shadows.sm}" }
895
+ },
896
+ float: {
897
+ macro: { value: "{shadows.lg}" },
898
+ micro: { value: "{shadows.md}" }
899
+ }
900
+ } }
901
+ },
902
+ textStyles: {
903
+ xs: { value: {
904
+ fontSize: "{fontSizes.xs}",
905
+ lineHeight: "calc(1em * 1.6 * var(--leading-factor, 1))",
906
+ letterSpacing: "0.01em"
907
+ } },
908
+ sm: { value: {
909
+ fontSize: "{fontSizes.sm}",
910
+ lineHeight: "calc(1em * 1.6 * var(--leading-factor, 1))",
911
+ letterSpacing: "0.005em"
912
+ } },
913
+ base: { value: {
914
+ fontSize: "{fontSizes.base}",
915
+ lineHeight: "calc(1em * 1.5 * var(--leading-factor, 1))",
916
+ letterSpacing: "0em"
917
+ } },
918
+ lg: { value: {
919
+ fontSize: "{fontSizes.lg}",
920
+ lineHeight: "calc(1em * 1.5 * var(--leading-factor, 1))",
921
+ letterSpacing: "-0.005em"
922
+ } },
923
+ xl: { value: {
924
+ fontSize: "{fontSizes.xl}",
925
+ lineHeight: "calc(1em * 1.4 * var(--leading-factor, 1))",
926
+ letterSpacing: "-0.01em"
927
+ } },
928
+ "2xl": { value: {
929
+ fontSize: "{fontSizes.2xl}",
930
+ lineHeight: "calc(1em * 1.4 * var(--leading-factor, 1))",
931
+ letterSpacing: "-0.015em"
932
+ } },
933
+ "3xl": { value: {
934
+ fontSize: "{fontSizes.3xl}",
935
+ lineHeight: "calc(1em * 1.3 * var(--leading-factor, 1))",
936
+ letterSpacing: "-0.02em"
937
+ } },
938
+ "4xl": { value: {
939
+ fontSize: "{fontSizes.4xl}",
940
+ lineHeight: "calc(1em * 1.3 * var(--leading-factor, 1))",
941
+ letterSpacing: "-0.025em"
942
+ } }
943
+ },
944
+ colorPalette: {
945
+ enabled: true,
946
+ include: [
947
+ "bg.*",
948
+ "bgSolid.*",
949
+ "fg.*",
950
+ "bd.*",
951
+ "status.*"
952
+ ]
953
+ }
954
+ } }
21
955
  });
22
- var main_default = preset;
23
-
24
956
  //#endregion
25
- export { main_default as default, preset };
957
+ export { preset as default, preset };