@pandacss/config 0.0.2 → 0.3.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.
@@ -0,0 +1,2279 @@
1
+ // src/conditions.ts
2
+ var conditions = {
3
+ hover: "&:where(:hover, [data-hover])",
4
+ focus: "&:where(:focus, [data-focus])",
5
+ focusWithin: "&:focus-within",
6
+ focusVisible: "&:where(:focus-visible, [data-focus-visible])",
7
+ disabled: "&:where(:disabled, [disabled], [data-disabled])",
8
+ active: "&:where(:active, [data-active])",
9
+ visited: "&:visited",
10
+ target: "&:target",
11
+ readOnly: "&:where(:read-only, [data-read-only])",
12
+ readWrite: "&:read-write",
13
+ empty: "&:where(:empty, [data-empty])",
14
+ checked: "&:where(:checked, [data-checked], [aria-checked=true])",
15
+ enabled: "&:enabled",
16
+ expanded: "&:where([aria-expanded=true], [data-expanded])",
17
+ highlighted: "&[data-highlighted]",
18
+ before: "&::before",
19
+ after: "&::after",
20
+ firstLetter: "&::first-letter",
21
+ firstLine: "&::first-line",
22
+ marker: "&::marker",
23
+ selection: "&::selection",
24
+ file: "&::file-selector-button",
25
+ backdrop: "&::backdrop",
26
+ first: "&:first-child",
27
+ last: "&:last-child",
28
+ only: "&:only-child",
29
+ even: "&:even",
30
+ odd: "&:odd",
31
+ firstOfType: "&:first-of-type",
32
+ lastOfType: "&:last-of-type",
33
+ onlyOfType: "&:only-of-type",
34
+ peerFocus: ".peer:where(:focus, [data-focus]) ~ &",
35
+ peerHover: ".peer:where(:hover, [data-hover]) ~ &",
36
+ peerActive: ".peer:where(:active, [data-active]) ~ &",
37
+ peerFocusWithin: ".peer:focus-within ~ &",
38
+ peerFocusVisible: ".peer:where(:focus-visible, [data-focus-visible]) ~ &",
39
+ peerDisabled: ".peer:where(:disabled, [disabled], [data-disabled]) ~ &",
40
+ peerChecked: ".peer:where(:checked, [data-checked], [aria-checked=true]) ~ &",
41
+ peerInvalid: ".peer:where(:invalid, [data-invalid], [aria-invalid=true]) ~ &",
42
+ peerExpanded: ".peer:where([aria-expanded=true], [data-expanded]) ~ &",
43
+ peerPlaceholderShown: ".peer:placeholder-shown ~ &",
44
+ groupFocus: ".group:where(:focus, [data-focus]) &",
45
+ groupHover: ".group:where(:hover, [data-hover]) &",
46
+ groupActive: ".group:where(:active, [data-active]) &",
47
+ groupFocusWithin: ".group:focus-within &",
48
+ groupFocusVisible: ".group:where(:focus-visible, [data-focus-visible]) &",
49
+ groupDisabled: ".group:where(:disabled, [disabled], [data-disabled]) &",
50
+ groupChecked: ".group:where(:checked, [data-checked], [aria-checked=true]) &",
51
+ groupExpanded: ".group:where([aria-expanded=true], [data-expanded]) &",
52
+ groupInvalid: ".group:invalid &",
53
+ indeterminate: "&:where(:indeterminate, [data-indeterminate], [aria-checked=mixed])",
54
+ required: "&:required",
55
+ valid: "&:where(:valid, [data-valid])",
56
+ invalid: "&:where(:invalid, [data-invalid])",
57
+ autofill: "&:autofill",
58
+ inRange: "&:in-range",
59
+ outOfRange: "&:out-of-range",
60
+ placeholder: "&:placeholder",
61
+ placeholderShown: "&:placeholder-shown",
62
+ pressed: "&:where([aria-pressed=true], [data-pressed])",
63
+ selected: "&:where([aria-selected=true], [data-selected])",
64
+ default: "&:default",
65
+ optional: "&:optional",
66
+ open: "&[open]",
67
+ fullscreen: "&:fullscreen",
68
+ loading: "&:where([data-loading], [aria-busy=true])",
69
+ currentPage: "&[aria-current=page]",
70
+ currentStep: "&[aria-current=step]",
71
+ motionReduce: "@media (prefers-reduced-motion: reduce)",
72
+ motionSafe: "@media (prefers-reduced-motion: no-preference)",
73
+ print: "@media print",
74
+ landscape: "@media (orientation: landscape)",
75
+ portrait: "@media (orientation: portrait)",
76
+ dark: " &.dark, .dark &",
77
+ light: " &.light, .light &",
78
+ osDark: "@media (prefers-color-scheme: dark)",
79
+ osLight: "@media (prefers-color-scheme: light)",
80
+ highConstrast: "@media (forced-colors: active)",
81
+ lessContrast: "@media (prefers-contrast: less)",
82
+ moreContrast: "@media (prefers-contrast: more)",
83
+ ltr: "[dir=ltr] &",
84
+ rtl: "[dir=rtl] &",
85
+ scrollbar: "&::-webkit-scrollbar",
86
+ scrollbarThumb: "&::-webkit-scrollbar-thumb",
87
+ scrollbarTrack: "&::-webkit-scrollbar-track",
88
+ horizontal: "&[data-orientation=horizontal]",
89
+ vertical: "&[data-orientation=vertical]"
90
+ };
91
+
92
+ // src/utilities/background.ts
93
+ var background = {
94
+ backgroundPosition: {
95
+ shorthand: "bgPosition",
96
+ className: "bg"
97
+ },
98
+ backgroundPositionX: {
99
+ shorthand: "bgPositionX",
100
+ className: "bg-x"
101
+ },
102
+ backgroundPositionY: {
103
+ shorthand: "bgPositionY",
104
+ className: "bg-y"
105
+ },
106
+ backgroundAttachment: {
107
+ shorthand: "bgAttachment",
108
+ className: "bg"
109
+ },
110
+ backgroundClip: {
111
+ shorthand: "bgClip",
112
+ className: "bg-clip"
113
+ },
114
+ background: {
115
+ shorthand: "bg",
116
+ className: "bg",
117
+ values: "colors"
118
+ },
119
+ backgroundColor: {
120
+ shorthand: "bgColor",
121
+ className: "bg",
122
+ values: "colors"
123
+ },
124
+ backgroundOrigin: {
125
+ shorthand: "bgOrigin",
126
+ className: "bg-origin"
127
+ },
128
+ backgroundImage: {
129
+ shorthand: "bgImage",
130
+ className: "bg-img",
131
+ values: "assets"
132
+ },
133
+ backgroundRepeat: {
134
+ shorthand: "bgRepeat",
135
+ className: "bg-repeat"
136
+ },
137
+ backgroundBlendMode: {
138
+ shorthand: "bgBlendMode",
139
+ className: "bg-blend"
140
+ },
141
+ backgroundSize: {
142
+ shorthand: "bgSize",
143
+ className: "bg"
144
+ },
145
+ backgroundGradient: {
146
+ shorthand: "bgGradient",
147
+ className: "bg-gradient",
148
+ values(theme) {
149
+ return {
150
+ ...theme("gradients"),
151
+ "to-t": "linear-gradient(to top, var(--gradient))",
152
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
153
+ "to-r": "linear-gradient(to right, var(--gradient))",
154
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
155
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
156
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
157
+ "to-l": "linear-gradient(to left, var(--gradient))",
158
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
159
+ };
160
+ },
161
+ transform(value) {
162
+ return {
163
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
164
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
165
+ backgroundImage: value
166
+ };
167
+ }
168
+ },
169
+ textGradient: {
170
+ className: "text-gradient",
171
+ values(theme) {
172
+ return {
173
+ ...theme("gradients"),
174
+ "to-t": "linear-gradient(to top, var(--gradient))",
175
+ "to-tr": "linear-gradient(to top right, var(--gradient))",
176
+ "to-r": "linear-gradient(to right, var(--gradient))",
177
+ "to-br": "linear-gradient(to bottom right, var(--gradient))",
178
+ "to-b": "linear-gradient(to bottom, var(--gradient))",
179
+ "to-bl": "linear-gradient(to bottom left, var(--gradient))",
180
+ "to-l": "linear-gradient(to left, var(--gradient))",
181
+ "to-tl": "linear-gradient(to top left, var(--gradient))"
182
+ };
183
+ },
184
+ transform(value) {
185
+ return {
186
+ "--gradient-stops": "var(--gradient-from), var(--gradient-to)",
187
+ "--gradient": "var(--gradient-via-stops, var(--gradient-stops))",
188
+ backgroundImage: value,
189
+ backgroundClip: "text",
190
+ color: "transparent"
191
+ };
192
+ }
193
+ },
194
+ gradientFrom: {
195
+ className: "from",
196
+ values: "colors",
197
+ transform(value) {
198
+ return {
199
+ "--gradient-from": value
200
+ };
201
+ }
202
+ },
203
+ gradientTo: {
204
+ className: "to",
205
+ values: "colors",
206
+ transform(value) {
207
+ return {
208
+ "--gradient-to": value
209
+ };
210
+ }
211
+ },
212
+ gradientVia: {
213
+ className: "via",
214
+ values: "colors",
215
+ transform(value) {
216
+ return {
217
+ "--gradient-via-stops": "var(--gradient-from), var(--gradient-via), var(--gradient-to)",
218
+ "--gradient-via": value
219
+ };
220
+ }
221
+ }
222
+ };
223
+
224
+ // src/utilities/border.ts
225
+ var border = {
226
+ borderRadius: {
227
+ className: "rounded",
228
+ shorthand: "rounded",
229
+ values: "radii"
230
+ },
231
+ borderTopLeftRadius: {
232
+ className: "rounded-tl",
233
+ shorthand: "roundedTopLeft",
234
+ values: "radii"
235
+ },
236
+ borderTopRightRadius: {
237
+ className: "rounded-tr",
238
+ shorthand: "roundedTopRight",
239
+ values: "radii"
240
+ },
241
+ borderBottomRightRadius: {
242
+ className: "rounded-br",
243
+ shorthand: "roundedBottomRight",
244
+ values: "radii"
245
+ },
246
+ borderBottomLeftRadius: {
247
+ className: "rounded-bl",
248
+ shorthand: "roundedBottomLeft",
249
+ values: "radii"
250
+ },
251
+ borderTopRadius: {
252
+ className: "rounded-t",
253
+ shorthand: "roundedTop",
254
+ property: "borderRadius",
255
+ values: "radii",
256
+ transform(value) {
257
+ return {
258
+ borderTopLeftRadius: value,
259
+ borderTopRightRadius: value
260
+ };
261
+ }
262
+ },
263
+ borderRightRadius: {
264
+ className: "rounded-r",
265
+ shorthand: "roundedRight",
266
+ property: "borderRadius",
267
+ values: "radii",
268
+ transform(value) {
269
+ return {
270
+ borderTopRightRadius: value,
271
+ borderBottomRightRadius: value
272
+ };
273
+ }
274
+ },
275
+ borderBottomRadius: {
276
+ className: "rounded-b",
277
+ shorthand: "roundedBottom",
278
+ property: "borderRadius",
279
+ values: "radii",
280
+ transform(value) {
281
+ return {
282
+ borderBottomLeftRadius: value,
283
+ borderBottomRightRadius: value
284
+ };
285
+ }
286
+ },
287
+ borderLeftRadius: {
288
+ className: "rounded-l",
289
+ shorthand: "roundedLeft",
290
+ values: "radii",
291
+ property: "borderRadius",
292
+ transform(value) {
293
+ return {
294
+ borderTopLeftRadius: value,
295
+ borderBottomLeftRadius: value
296
+ };
297
+ }
298
+ },
299
+ borderStartStartRadius: {
300
+ className: "rounded-ss",
301
+ shorthand: "roundedStartStart",
302
+ values: "radii"
303
+ },
304
+ borderStartEndRadius: {
305
+ className: "rounded-se",
306
+ shorthand: "roundedStartEnd",
307
+ values: "radii"
308
+ },
309
+ borderStartRadius: {
310
+ className: "rounded-s",
311
+ values: "radii",
312
+ property: "borderRadius",
313
+ shorthand: "roundedStart",
314
+ transform(value) {
315
+ return {
316
+ borderStartStartRadius: value,
317
+ borderEndStartRadius: value
318
+ };
319
+ }
320
+ },
321
+ borderEndStartRadius: {
322
+ className: "rounded-es",
323
+ shorthand: "roundedEndStart",
324
+ values: "radii"
325
+ },
326
+ borderEndEndRadius: {
327
+ className: "rounded-ee",
328
+ shorthand: "roundedEndEnd",
329
+ values: "radii"
330
+ },
331
+ borderEndRadius: {
332
+ className: "rounded-e",
333
+ shorthand: "roundedEnd",
334
+ property: "borderRadius",
335
+ values: "radii",
336
+ transform(value) {
337
+ return {
338
+ borderStartEndRadius: value,
339
+ borderEndEndRadius: value
340
+ };
341
+ }
342
+ },
343
+ border: {
344
+ className: "border",
345
+ values: "borders"
346
+ },
347
+ borderColor: {
348
+ className: "border",
349
+ values: "colors"
350
+ },
351
+ borderInline: {
352
+ className: "border-x",
353
+ values: "borders",
354
+ shorthand: "borderX"
355
+ },
356
+ borderInlineWidth: {
357
+ className: "border-x",
358
+ values: "borderWidths",
359
+ shorthand: "borderXWidth"
360
+ },
361
+ borderInlineColor: {
362
+ className: "border-x",
363
+ values: "colors",
364
+ shorthand: "borderXColor"
365
+ },
366
+ borderBlock: {
367
+ className: "border-y",
368
+ values: "borders",
369
+ shorthand: "borderY"
370
+ },
371
+ borderBlockWidth: {
372
+ className: "border-y",
373
+ values: "borderWidths",
374
+ shorthand: "borderYWidth"
375
+ },
376
+ borderBlockColor: {
377
+ className: "border-y",
378
+ values: "colors",
379
+ shorthand: "borderYColor"
380
+ },
381
+ borderLeft: {
382
+ className: "border-l",
383
+ values: "borders"
384
+ },
385
+ borderLeftColor: {
386
+ className: "border-l",
387
+ values: "colors"
388
+ },
389
+ borderInlineStart: {
390
+ className: "border-s",
391
+ values: "borders",
392
+ shorthand: "borderStart"
393
+ },
394
+ borderInlineStartColor: {
395
+ className: "border-s",
396
+ values: "colors",
397
+ shorthand: "borderStartColor"
398
+ },
399
+ borderRight: {
400
+ className: "border-r",
401
+ values: "borders"
402
+ },
403
+ borderRightColor: {
404
+ className: "border-r",
405
+ values: "colors"
406
+ },
407
+ borderInlineEnd: {
408
+ className: "border-e",
409
+ values: "borders",
410
+ shorthand: "borderEnd"
411
+ },
412
+ borderInlineEndColor: {
413
+ className: "border-e",
414
+ values: "colors",
415
+ shorthand: "borderEndColor"
416
+ },
417
+ borderTop: {
418
+ className: "border-t",
419
+ values: "borders"
420
+ },
421
+ borderTopColor: {
422
+ className: "border-t",
423
+ values: "colors"
424
+ },
425
+ borderBottom: {
426
+ className: "border-b",
427
+ values: "borders"
428
+ },
429
+ borderBottomColor: {
430
+ className: "border-b",
431
+ values: "colors"
432
+ },
433
+ borderBlockEnd: {
434
+ className: "border-be",
435
+ values: "borders"
436
+ },
437
+ borderBlockEndColor: {
438
+ className: "border-be",
439
+ values: "colors"
440
+ },
441
+ borderBlockStart: {
442
+ className: "border-bs",
443
+ values: "borders"
444
+ },
445
+ borderBlockStartColor: {
446
+ className: "border-bs",
447
+ values: "colors"
448
+ }
449
+ };
450
+
451
+ // src/utilities/display.ts
452
+ var display = {
453
+ display: {
454
+ className: "d"
455
+ },
456
+ hideFrom: {
457
+ className: "hide",
458
+ values: "breakpoints",
459
+ transform(value, { raw }) {
460
+ return {
461
+ [`@breakpoint ${raw}`]: {
462
+ display: "none"
463
+ }
464
+ };
465
+ }
466
+ },
467
+ hideBelow: {
468
+ className: "show",
469
+ values: "breakpoints",
470
+ transform(value, { raw }) {
471
+ return {
472
+ [`@breakpoint ${raw}Down`]: {
473
+ display: "none"
474
+ }
475
+ };
476
+ }
477
+ }
478
+ };
479
+
480
+ // src/utilities/divide.ts
481
+ var divide = {
482
+ divideX: {
483
+ className: "divide-x",
484
+ values: { type: "string" },
485
+ transform(value) {
486
+ return {
487
+ "& > :not([hidden]) ~ :not([hidden])": {
488
+ borderInlineStartWidth: value,
489
+ borderInlineEndWidth: "0px"
490
+ }
491
+ };
492
+ }
493
+ },
494
+ divideY: {
495
+ className: "divide-y",
496
+ values: { type: "string" },
497
+ transform(value) {
498
+ return {
499
+ "& > :not([hidden]) ~ :not([hidden])": {
500
+ borderTopWidth: value,
501
+ borderBottomWidth: "0px"
502
+ }
503
+ };
504
+ }
505
+ },
506
+ divideColor: {
507
+ className: "divide",
508
+ values: "colors",
509
+ transform(value) {
510
+ return {
511
+ "& > :not([hidden]) ~ :not([hidden])": {
512
+ borderColor: value
513
+ }
514
+ };
515
+ }
516
+ },
517
+ divideStyle: {
518
+ className: "divide",
519
+ property: "borderStyle",
520
+ transform(value) {
521
+ return {
522
+ "& > :not([hidden]) ~ :not([hidden])": {
523
+ borderStyle: value
524
+ }
525
+ };
526
+ }
527
+ }
528
+ };
529
+
530
+ // src/utilities/effects.ts
531
+ var effects = {
532
+ boxShadow: {
533
+ shorthand: "shadow",
534
+ className: "shadow",
535
+ values: "shadows"
536
+ },
537
+ boxShadowColor: {
538
+ shorthand: "shadowColor",
539
+ className: "shadow",
540
+ values: "colors",
541
+ transform(value) {
542
+ return {
543
+ "--shadow-color": value
544
+ };
545
+ }
546
+ },
547
+ mixBlendMode: {
548
+ className: "mix-blend"
549
+ },
550
+ filter: {
551
+ className: "filter",
552
+ values: {
553
+ auto: [
554
+ "var(--blur)",
555
+ "var(--brightness)",
556
+ "var(--contrast)",
557
+ "var(--grayscale)",
558
+ "var(--hue-rotate)",
559
+ "var(--invert)",
560
+ "var(--saturate)",
561
+ "var(--sepia)",
562
+ "var(--drop-shadow)"
563
+ ].join(" ")
564
+ }
565
+ },
566
+ brightness: {
567
+ className: "brightness",
568
+ transform(value) {
569
+ return {
570
+ "--brightness": `brightness(${value})`
571
+ };
572
+ }
573
+ },
574
+ contrast: {
575
+ className: "contrast",
576
+ transform(value) {
577
+ return {
578
+ "--contrast": `constrast(${value})`
579
+ };
580
+ }
581
+ },
582
+ grayscale: {
583
+ className: "grayscale",
584
+ transform(value) {
585
+ return {
586
+ "--grayscale": `grayscale(${value})`
587
+ };
588
+ }
589
+ },
590
+ hueRotate: {
591
+ className: "hue-rotate",
592
+ transform(value) {
593
+ return {
594
+ "--hue-rotate": `hue-rotate(${value})`
595
+ };
596
+ }
597
+ },
598
+ invert: {
599
+ className: "invert",
600
+ transform(value) {
601
+ return {
602
+ "--invert": `invert(${value})`
603
+ };
604
+ }
605
+ },
606
+ saturate: {
607
+ className: "saturate",
608
+ transform(value) {
609
+ return {
610
+ "--saturate": `saturate(${value})`
611
+ };
612
+ }
613
+ },
614
+ sepia: {
615
+ className: "sepia",
616
+ transform(value) {
617
+ return {
618
+ "--sepia": `sepia(${value})`
619
+ };
620
+ }
621
+ },
622
+ dropShadow: {
623
+ className: "drop-shadow",
624
+ values: "dropShadows",
625
+ transform(value) {
626
+ return {
627
+ "--drop-shadow": value
628
+ };
629
+ }
630
+ },
631
+ blur: {
632
+ className: "blur",
633
+ values: "blurs",
634
+ transform(value) {
635
+ return {
636
+ "--blur": `blur(${value})`
637
+ };
638
+ }
639
+ },
640
+ backdropFilter: {
641
+ className: "backdrop",
642
+ values: {
643
+ auto: [
644
+ "var(--backdrop-blur)",
645
+ "var(--backdrop-brightness)",
646
+ "var(--backdrop-contrast)",
647
+ "var(--backdrop-grayscale)",
648
+ "var(--backdrop-hue-rotate)",
649
+ "var(--backdrop-invert)",
650
+ "var(--backdrop-saturate)",
651
+ "var(--backdrop-sepia)"
652
+ ].join(" ")
653
+ }
654
+ },
655
+ backdropBlur: {
656
+ className: "backdrop-blur",
657
+ values: "blurs",
658
+ transform(value) {
659
+ return {
660
+ "--backdrop-blur": `blur(${value})`
661
+ };
662
+ }
663
+ },
664
+ backdropBrightness: {
665
+ className: "backdrop-brightness",
666
+ transform(value) {
667
+ return {
668
+ "--backdrop-brightness": `brightness(${value})`
669
+ };
670
+ }
671
+ },
672
+ backdropContrast: {
673
+ className: "backdrop-contrast",
674
+ transform(value) {
675
+ return {
676
+ "--backdrop-contrast": `constrast(${value})`
677
+ };
678
+ }
679
+ },
680
+ backdropGrayscale: {
681
+ className: "backdrop-grayscale",
682
+ transform(value) {
683
+ return {
684
+ "--backdrop-grayscale": `grayscale(${value})`
685
+ };
686
+ }
687
+ },
688
+ backdropHueRotate: {
689
+ className: "backdrop-hue-rotate",
690
+ transform(value) {
691
+ return {
692
+ "--backdrop-hue-rotate": `hue-rotate(${value})`
693
+ };
694
+ }
695
+ },
696
+ backdropInvert: {
697
+ className: "backdrop-invert",
698
+ transform(value) {
699
+ return {
700
+ "--backdrop-invert": `invert(${value})`
701
+ };
702
+ }
703
+ },
704
+ backdropOpacity: {
705
+ className: "backdrop-opacity",
706
+ transform(value) {
707
+ return {
708
+ "--backdrop-opacity": value
709
+ };
710
+ }
711
+ },
712
+ backdropSaturate: {
713
+ className: "backdrop-saturate",
714
+ transform(value) {
715
+ return {
716
+ "--backdrop-saturate": `saturate(${value})`
717
+ };
718
+ }
719
+ },
720
+ backdropSepia: {
721
+ className: "backdrop-sepia",
722
+ transform(value) {
723
+ return {
724
+ "--backdrop-sepia": `sepia(${value})`
725
+ };
726
+ }
727
+ }
728
+ };
729
+
730
+ // src/utilities/flex-and-grid.ts
731
+ var flexGrid = {
732
+ flexBasis: {
733
+ className: "basis",
734
+ values(theme) {
735
+ return {
736
+ ...theme("spacing"),
737
+ "1/2": "50%",
738
+ "1/3": "33.333333%",
739
+ "2/3": "66.666667%",
740
+ "1/4": "25%",
741
+ "2/4": "50%",
742
+ "3/4": "75%",
743
+ "1/5": "20%",
744
+ "2/5": "40%",
745
+ "3/5": "60%",
746
+ "4/5": "80%",
747
+ "1/6": "16.666667%",
748
+ "2/6": "33.333333%",
749
+ "3/6": "50%",
750
+ "4/6": "66.666667%",
751
+ "5/6": "83.333333%",
752
+ "1/12": "8.333333%",
753
+ "2/12": "16.666667%",
754
+ "3/12": "25%",
755
+ "4/12": "33.333333%",
756
+ "5/12": "41.666667%",
757
+ "6/12": "50%",
758
+ "7/12": "58.333333%",
759
+ "8/12": "66.666667%",
760
+ "9/12": "75%",
761
+ "10/12": "83.333333%",
762
+ "11/12": "91.666667%",
763
+ full: "100%"
764
+ };
765
+ }
766
+ },
767
+ flex: {
768
+ className: "flex",
769
+ values: {
770
+ "1": "1 1 0%",
771
+ auto: "1 1 auto",
772
+ initial: "0 1 auto",
773
+ none: "none"
774
+ }
775
+ },
776
+ flexDirection: {
777
+ className: "flex",
778
+ shorthand: "flexDir"
779
+ },
780
+ flexGrow: {
781
+ className: "grow"
782
+ },
783
+ flexShrink: {
784
+ className: "shrink"
785
+ },
786
+ gridTemplateColumns: {
787
+ className: "grid-cols",
788
+ values: {
789
+ "1": "repeat(1, minmax(0, 1fr))",
790
+ "2": "repeat(2, minmax(0, 1fr))",
791
+ "3": "repeat(3, minmax(0, 1fr))",
792
+ "4": "repeat(4, minmax(0, 1fr))",
793
+ "5": "repeat(5, minmax(0, 1fr))",
794
+ "6": "repeat(6, minmax(0, 1fr))",
795
+ "7": "repeat(7, minmax(0, 1fr))",
796
+ "8": "repeat(8, minmax(0, 1fr))",
797
+ "9": "repeat(9, minmax(0, 1fr))",
798
+ "10": "repeat(10, minmax(0, 1fr))",
799
+ "11": "repeat(11, minmax(0, 1fr))",
800
+ "12": "repeat(12, minmax(0, 1fr))"
801
+ }
802
+ },
803
+ gridTemplateRows: {
804
+ className: "grid-cols",
805
+ values: {
806
+ "1": "repeat(1, minmax(0, 1fr))",
807
+ "2": "repeat(2, minmax(0, 1fr))",
808
+ "3": "repeat(3, minmax(0, 1fr))",
809
+ "4": "repeat(4, minmax(0, 1fr))",
810
+ "5": "repeat(5, minmax(0, 1fr))",
811
+ "6": "repeat(6, minmax(0, 1fr))",
812
+ "7": "repeat(7, minmax(0, 1fr))",
813
+ "8": "repeat(8, minmax(0, 1fr))",
814
+ "9": "repeat(9, minmax(0, 1fr))",
815
+ "10": "repeat(10, minmax(0, 1fr))",
816
+ "11": "repeat(11, minmax(0, 1fr))",
817
+ "12": "repeat(12, minmax(0, 1fr))"
818
+ }
819
+ },
820
+ gridColumn: {
821
+ className: "col-span",
822
+ values: {
823
+ full: "1 / -1",
824
+ "1": "span 1 / span 1",
825
+ "2": "span 2 / span 2",
826
+ "3": "span 3 / span 3",
827
+ "4": "span 4 / span 4",
828
+ "5": "span 5 / span 5",
829
+ "6": "span 6 / span 6",
830
+ "7": "span 7 / span 7",
831
+ "8": "span 8 / span 8",
832
+ "9": "span 9 / span 9",
833
+ "10": "span 10 / span 10",
834
+ "11": "span 11 / span 11",
835
+ "12": "span 12 / span 12"
836
+ }
837
+ },
838
+ gridRow: {
839
+ className: "row-span",
840
+ values: {
841
+ full: "1 / -1",
842
+ "1": "span 1 / span 1",
843
+ "2": "span 2 / span 2",
844
+ "3": "span 3 / span 3",
845
+ "4": "span 4 / span 4",
846
+ "5": "span 5 / span 5",
847
+ "6": "span 6 / span 6",
848
+ "7": "span 7 / span 7",
849
+ "8": "span 8 / span 8",
850
+ "9": "span 9 / span 9",
851
+ "10": "span 10 / span 10",
852
+ "11": "span 11 / span 11",
853
+ "12": "span 12 / span 12"
854
+ }
855
+ },
856
+ gridColumnStart: {
857
+ className: "col-start"
858
+ },
859
+ gridColumnEnd: {
860
+ className: "col-end"
861
+ },
862
+ gridAutoFlow: {
863
+ className: "grid-flow"
864
+ },
865
+ gridAutoColumns: {
866
+ className: "auto-cols",
867
+ values: {
868
+ min: "min-content",
869
+ max: "max-content",
870
+ fr: "minmax(0, 1fr)"
871
+ }
872
+ },
873
+ gridAutoRows: {
874
+ className: "auto-rows",
875
+ values: {
876
+ min: "min-content",
877
+ max: "max-content",
878
+ fr: "minmax(0, 1fr)"
879
+ }
880
+ },
881
+ gap: {
882
+ className: "gap",
883
+ values: "spacing"
884
+ },
885
+ gridGap: {
886
+ className: "gap",
887
+ values: "spacing"
888
+ },
889
+ gridRowGap: {
890
+ className: "gap-x",
891
+ values: "spacing"
892
+ },
893
+ gridColumnGap: {
894
+ className: "gap-y",
895
+ values: "spacing"
896
+ },
897
+ rowGap: {
898
+ className: "gap-x",
899
+ values: "spacing"
900
+ },
901
+ columnGap: {
902
+ className: "gap-y",
903
+ values: "spacing"
904
+ },
905
+ justifyContent: {
906
+ className: "justify"
907
+ },
908
+ alignContent: {
909
+ className: "content"
910
+ },
911
+ alignItems: {
912
+ className: "items"
913
+ },
914
+ alignSelf: {
915
+ className: "self"
916
+ }
917
+ };
918
+
919
+ // src/utilities/helpers.ts
920
+ var srMapping = {
921
+ true: {
922
+ position: "absolute",
923
+ width: "1px",
924
+ height: "1px",
925
+ padding: "0",
926
+ margin: "-1px",
927
+ overflow: "hidden",
928
+ clip: "rect(0, 0, 0, 0)",
929
+ whiteSpace: "nowrap",
930
+ borderWidth: "0"
931
+ },
932
+ false: {
933
+ position: "static",
934
+ width: "auto",
935
+ height: "auto",
936
+ padding: "0",
937
+ margin: "0",
938
+ overflow: "visible",
939
+ clip: "auto",
940
+ whiteSpace: "normal"
941
+ }
942
+ };
943
+ var helpers = {
944
+ srOnly: {
945
+ className: "sr",
946
+ values: { type: "boolean" },
947
+ transform(value) {
948
+ return srMapping[value] || {};
949
+ }
950
+ },
951
+ debug: {
952
+ className: "debug",
953
+ values: { type: "boolean" },
954
+ transform(value) {
955
+ if (!value)
956
+ return {};
957
+ return {
958
+ outline: "1px solid blue !important",
959
+ "&>*": {
960
+ outline: "1px solid red !important"
961
+ }
962
+ };
963
+ }
964
+ }
965
+ };
966
+
967
+ // src/utilities/interactivity.ts
968
+ var interactivity = {
969
+ accentColor: {
970
+ className: "accent",
971
+ values: "colors"
972
+ },
973
+ caretColor: {
974
+ className: "caret",
975
+ values: "colors"
976
+ },
977
+ scrollBehavior: {
978
+ className: "scroll"
979
+ },
980
+ scrollbar: {
981
+ className: "scrollbar",
982
+ values: ["visible", "hidden"],
983
+ transform(value) {
984
+ if (value === "visible") {
985
+ return {
986
+ msOverflowStyle: "auto",
987
+ scrollbarWidth: "auto",
988
+ "&::-webkit-scrollbar": {
989
+ display: "block"
990
+ }
991
+ };
992
+ }
993
+ if (value === "hidden") {
994
+ return {
995
+ msOverflowStyle: "none",
996
+ scrollbarWidth: "none",
997
+ "&::-webkit-scrollbar": {
998
+ display: "none"
999
+ }
1000
+ };
1001
+ }
1002
+ }
1003
+ },
1004
+ scrollMargin: {
1005
+ className: "scroll-m",
1006
+ values: "spacing"
1007
+ },
1008
+ scrollMarginX: {
1009
+ className: "scroll-mx",
1010
+ values: "spacing",
1011
+ property: "scrollMarginInline",
1012
+ transform(value) {
1013
+ return {
1014
+ scrollMarginInline: value
1015
+ };
1016
+ }
1017
+ },
1018
+ scrollMarginY: {
1019
+ className: "scroll-my",
1020
+ values: "spacing",
1021
+ property: "scrollMarginBlock",
1022
+ transform(value) {
1023
+ return {
1024
+ scrollMarginBlock: value
1025
+ };
1026
+ }
1027
+ },
1028
+ scrollMarginLeft: {
1029
+ className: "scroll-ml",
1030
+ values: "spacing"
1031
+ },
1032
+ scrollMarginRight: {
1033
+ className: "scroll-mr",
1034
+ values: "spacing"
1035
+ },
1036
+ scrollMarginTop: {
1037
+ className: "scroll-mt",
1038
+ values: "spacing"
1039
+ },
1040
+ scrollMarginBottom: {
1041
+ className: "scroll-mb",
1042
+ values: "spacing"
1043
+ },
1044
+ scrollMarginBlock: {
1045
+ className: "scroll-my",
1046
+ values: "spacing"
1047
+ },
1048
+ scrollMarginBlockEnd: {
1049
+ className: "scroll-mb",
1050
+ values: "spacing"
1051
+ },
1052
+ scrollMarginBlockStart: {
1053
+ className: "scroll-mt",
1054
+ values: "spacing"
1055
+ },
1056
+ scrollMarginInline: {
1057
+ className: "scroll-mx",
1058
+ values: "spacing"
1059
+ },
1060
+ scrollMarginInlineEnd: {
1061
+ className: "scroll-me",
1062
+ values: "spacing"
1063
+ },
1064
+ scrollMarginInlineStart: {
1065
+ className: "scroll-ms",
1066
+ values: "spacing"
1067
+ },
1068
+ scrollPadding: {
1069
+ className: "scroll-p",
1070
+ values: "spacing"
1071
+ },
1072
+ scrollPaddingBlock: {
1073
+ className: "scroll-pb",
1074
+ values: "spacing"
1075
+ },
1076
+ scrollPaddingBlockStart: {
1077
+ className: "scroll-pt",
1078
+ values: "spacing"
1079
+ },
1080
+ scrollPaddingBlockEnd: {
1081
+ className: "scroll-pb",
1082
+ values: "spacing"
1083
+ },
1084
+ scrollPaddingInline: {
1085
+ className: "scroll-px",
1086
+ values: "spacing"
1087
+ },
1088
+ scrollPaddingInlineEnd: {
1089
+ className: "scroll-pe",
1090
+ values: "spacing"
1091
+ },
1092
+ scrollPaddingInlineStart: {
1093
+ className: "scroll-ps",
1094
+ values: "spacing"
1095
+ },
1096
+ scrollPaddingX: {
1097
+ className: "scroll-px",
1098
+ values: "spacing",
1099
+ property: "scrollPaddingInline",
1100
+ transform(value) {
1101
+ return {
1102
+ scrollPaddingInline: value
1103
+ };
1104
+ }
1105
+ },
1106
+ scrollPaddingY: {
1107
+ className: "scroll-py",
1108
+ values: "spacing",
1109
+ property: "scrollPaddingBlock",
1110
+ transform(value) {
1111
+ return {
1112
+ scrollPaddingBlock: value
1113
+ };
1114
+ }
1115
+ },
1116
+ scrollPaddingLeft: {
1117
+ className: "scroll-pl",
1118
+ values: "spacing"
1119
+ },
1120
+ scrollPaddingRight: {
1121
+ className: "scroll-pr",
1122
+ values: "spacing"
1123
+ },
1124
+ scrollPaddingTop: {
1125
+ className: "scroll-pt",
1126
+ values: "spacing"
1127
+ },
1128
+ scrollPaddingBottom: {
1129
+ className: "scroll-pb",
1130
+ values: "spacing"
1131
+ },
1132
+ scrollSnapAlign: {
1133
+ className: "snap"
1134
+ },
1135
+ scrollSnapStop: {
1136
+ className: "snap"
1137
+ },
1138
+ scrollSnapType: {
1139
+ className: "snap",
1140
+ values: {
1141
+ none: "none",
1142
+ x: "x var(--scroll-snap-strictness)",
1143
+ y: "y var(--scroll-snap-strictness)",
1144
+ both: "both var(--scroll-snap-strictness)"
1145
+ }
1146
+ },
1147
+ scrollSnapStrictness: {
1148
+ className: "strictness",
1149
+ values: ["mandatory", "proximity"],
1150
+ transform(value) {
1151
+ return {
1152
+ "--scroll-snap-strictness": value
1153
+ };
1154
+ }
1155
+ },
1156
+ scrollSnapMargin: {
1157
+ className: "snap-m",
1158
+ values: "spacing"
1159
+ },
1160
+ scrollSnapMarginTop: {
1161
+ className: "snap-mt",
1162
+ values: "spacing"
1163
+ },
1164
+ scrollSnapMarginBottom: {
1165
+ className: "snap-mb",
1166
+ values: "spacing"
1167
+ },
1168
+ scrollSnapMarginLeft: {
1169
+ className: "snap-ml",
1170
+ values: "spacing"
1171
+ },
1172
+ scrollSnapMarginRight: {
1173
+ className: "snap-mr",
1174
+ values: "spacing"
1175
+ },
1176
+ touchAction: {
1177
+ className: "touch"
1178
+ },
1179
+ userSelect: {
1180
+ className: "select"
1181
+ }
1182
+ };
1183
+
1184
+ // src/utilities/layout.ts
1185
+ var layout = {
1186
+ aspectRatio: {
1187
+ className: "aspect",
1188
+ values: {
1189
+ square: "1 / 1",
1190
+ landscape: "4 / 3",
1191
+ portrait: "3 / 4",
1192
+ wide: "16 / 9",
1193
+ ultrawide: "18 / 5",
1194
+ golden: "1.618 / 1"
1195
+ }
1196
+ },
1197
+ boxDecorationBreak: {
1198
+ className: "decoration"
1199
+ },
1200
+ zIndex: {
1201
+ className: "z"
1202
+ },
1203
+ boxSizing: {
1204
+ className: "box"
1205
+ },
1206
+ objectPosition: {
1207
+ className: "object"
1208
+ },
1209
+ objectFit: {
1210
+ className: "object"
1211
+ },
1212
+ overscrollBehavior: {
1213
+ className: "overscroll"
1214
+ },
1215
+ overscrollBehaviorX: {
1216
+ className: "overscroll-x"
1217
+ },
1218
+ overscrollBehaviorY: {
1219
+ className: "overscroll-y"
1220
+ },
1221
+ position: {
1222
+ className: "pos",
1223
+ shorthand: "pos"
1224
+ },
1225
+ top: {
1226
+ className: "top",
1227
+ values: "spacing"
1228
+ },
1229
+ left: {
1230
+ className: "left",
1231
+ values: "spacing"
1232
+ },
1233
+ insetInline: {
1234
+ className: "inset-x",
1235
+ values: "spacing"
1236
+ },
1237
+ insetBlock: {
1238
+ className: "inset-y",
1239
+ values: "spacing"
1240
+ },
1241
+ inset: {
1242
+ className: "inset",
1243
+ values: "spacing"
1244
+ },
1245
+ insetBlockEnd: {
1246
+ className: "inset-b",
1247
+ values: "spacing"
1248
+ },
1249
+ insetBlockStart: {
1250
+ className: "inset-t",
1251
+ values: "spacing"
1252
+ },
1253
+ insetInlineEnd: {
1254
+ className: "end",
1255
+ values: "spacing",
1256
+ shorthand: ["insetEnd", "end"]
1257
+ },
1258
+ insetInlineStart: {
1259
+ className: "start",
1260
+ values: "spacing",
1261
+ shorthand: ["insetStart", "start"]
1262
+ },
1263
+ right: {
1264
+ className: "right",
1265
+ values: "spacing"
1266
+ },
1267
+ bottom: {
1268
+ className: "bottom",
1269
+ values: "spacing"
1270
+ },
1271
+ insetX: {
1272
+ className: "inset-x",
1273
+ values: "spacing",
1274
+ property: "insetInline",
1275
+ transform(value) {
1276
+ return {
1277
+ insetInline: value
1278
+ };
1279
+ }
1280
+ },
1281
+ insetY: {
1282
+ className: "inset-y",
1283
+ values: "spacing",
1284
+ property: "insetBlock",
1285
+ transform(value) {
1286
+ return {
1287
+ insetBlock: value
1288
+ };
1289
+ }
1290
+ },
1291
+ float: {
1292
+ className: "float",
1293
+ values: ["left", "right", "start", "end"],
1294
+ transform(value) {
1295
+ if (value === "start") {
1296
+ return {
1297
+ float: "left",
1298
+ '[dir="rtl"] &': {
1299
+ float: "right"
1300
+ }
1301
+ };
1302
+ }
1303
+ if (value === "end") {
1304
+ return {
1305
+ float: "right",
1306
+ '[dir="rtl"] &': {
1307
+ float: "left"
1308
+ }
1309
+ };
1310
+ }
1311
+ return {
1312
+ float: value
1313
+ };
1314
+ }
1315
+ },
1316
+ visibility: {
1317
+ className: "vis"
1318
+ }
1319
+ };
1320
+
1321
+ // src/utilities/list.ts
1322
+ var list = {
1323
+ listStyleType: {
1324
+ className: "list"
1325
+ },
1326
+ listStylePosition: {
1327
+ className: "list"
1328
+ },
1329
+ listStyleImage: {
1330
+ className: "list-img",
1331
+ values: "assets"
1332
+ }
1333
+ };
1334
+
1335
+ // src/utilities/outline.ts
1336
+ var outline = {
1337
+ outlineWidth: {
1338
+ className: "ring",
1339
+ shorthand: "ringWidth"
1340
+ },
1341
+ outlineColor: {
1342
+ className: "ring",
1343
+ values: "colors",
1344
+ shorthand: "ringColor"
1345
+ },
1346
+ outline: {
1347
+ className: "ring",
1348
+ shorthand: "ring",
1349
+ values: "borders",
1350
+ transform(value) {
1351
+ if (value === "none") {
1352
+ return { outline: "2px solid transparent", outlineOffset: "2px" };
1353
+ }
1354
+ return { outline: value };
1355
+ }
1356
+ },
1357
+ outlineOffset: {
1358
+ className: "ring",
1359
+ shorthand: "ringOffset",
1360
+ values: "spacing"
1361
+ }
1362
+ };
1363
+
1364
+ // src/utilities/sizing.ts
1365
+ var widthValues = (theme) => ({
1366
+ ...theme("sizes"),
1367
+ "1/2": "50%",
1368
+ "1/3": "33.333333%",
1369
+ "2/3": "66.666667%",
1370
+ "1/4": "25%",
1371
+ "2/4": "50%",
1372
+ "3/4": "75%",
1373
+ "1/5": "20%",
1374
+ "2/5": "40%",
1375
+ "3/5": "60%",
1376
+ "4/5": "80%",
1377
+ "1/6": "16.666667%",
1378
+ "2/6": "33.333333%",
1379
+ "3/6": "50%",
1380
+ "4/6": "66.666667%",
1381
+ "5/6": "83.333333%",
1382
+ "1/12": "8.333333%",
1383
+ "2/12": "16.666667%",
1384
+ "3/12": "25%",
1385
+ "4/12": "33.333333%",
1386
+ "5/12": "41.666667%",
1387
+ "6/12": "50%",
1388
+ "7/12": "58.333333%",
1389
+ "8/12": "66.666667%",
1390
+ "9/12": "75%",
1391
+ "10/12": "83.333333%",
1392
+ "11/12": "91.666667%",
1393
+ screen: "100vw"
1394
+ });
1395
+ var heightValues = (theme) => ({
1396
+ ...theme("sizes"),
1397
+ svh: "100svh",
1398
+ lvh: "100lvh",
1399
+ dvh: "100dvh",
1400
+ screen: "100vh",
1401
+ "1/2": "50%",
1402
+ "1/3": "33.333333%",
1403
+ "2/3": "66.666667%",
1404
+ "1/4": "25%",
1405
+ "2/4": "50%",
1406
+ "3/4": "75%",
1407
+ "1/5": "20%",
1408
+ "2/5": "40%",
1409
+ "3/5": "60%",
1410
+ "4/5": "80%",
1411
+ "1/6": "16.666667%",
1412
+ "2/6": "33.333333%",
1413
+ "3/6": "50%",
1414
+ "4/6": "66.666667%",
1415
+ "5/6": "83.333333%"
1416
+ });
1417
+ var sizing = {
1418
+ width: {
1419
+ shorthand: "w",
1420
+ className: "w",
1421
+ values: widthValues
1422
+ },
1423
+ inlineSize: {
1424
+ className: "w",
1425
+ values: widthValues
1426
+ },
1427
+ minWidth: {
1428
+ shorthand: "minW",
1429
+ className: "min-w",
1430
+ values: widthValues
1431
+ },
1432
+ minInlineSize: {
1433
+ className: "min-w",
1434
+ values: widthValues
1435
+ },
1436
+ maxWidth: {
1437
+ shorthand: "maxW",
1438
+ className: "max-w",
1439
+ values: widthValues
1440
+ },
1441
+ maxInlineSize: {
1442
+ className: "max-w",
1443
+ values: widthValues
1444
+ },
1445
+ height: {
1446
+ shorthand: "h",
1447
+ className: "h",
1448
+ values: heightValues
1449
+ },
1450
+ blockSize: {
1451
+ className: "h",
1452
+ values: heightValues
1453
+ },
1454
+ minHeight: {
1455
+ shorthand: "minH",
1456
+ className: "min-h",
1457
+ values: heightValues
1458
+ },
1459
+ minBlockSize: {
1460
+ className: "min-h",
1461
+ values: heightValues
1462
+ },
1463
+ maxHeight: {
1464
+ shorthand: "maxH",
1465
+ className: "max-h",
1466
+ values: heightValues
1467
+ },
1468
+ maxBlockSize: {
1469
+ className: "max-b",
1470
+ values: heightValues
1471
+ }
1472
+ };
1473
+
1474
+ // src/utilities/spacing.ts
1475
+ var spacing = {
1476
+ padding: {
1477
+ className: "p",
1478
+ shorthand: "p",
1479
+ values: "spacing"
1480
+ },
1481
+ paddingLeft: {
1482
+ className: "pl",
1483
+ shorthand: "pl",
1484
+ values: "spacing"
1485
+ },
1486
+ paddingRight: {
1487
+ className: "pr",
1488
+ shorthand: "pr",
1489
+ values: "spacing"
1490
+ },
1491
+ paddingTop: {
1492
+ className: "pt",
1493
+ shorthand: "pt",
1494
+ values: "spacing"
1495
+ },
1496
+ paddingBottom: {
1497
+ className: "pb",
1498
+ shorthand: "pb",
1499
+ values: "spacing"
1500
+ },
1501
+ paddingBlock: {
1502
+ className: "py",
1503
+ values: "spacing",
1504
+ shorthand: ["py", "paddingY"]
1505
+ },
1506
+ paddingBlockEnd: {
1507
+ className: "pb",
1508
+ values: "spacing"
1509
+ },
1510
+ paddingBlockStart: {
1511
+ className: "pt",
1512
+ values: "spacing"
1513
+ },
1514
+ paddingInline: {
1515
+ className: "px",
1516
+ values: "spacing",
1517
+ shorthand: ["paddingX", "px"]
1518
+ },
1519
+ paddingInlineEnd: {
1520
+ className: "pe",
1521
+ shorthand: ["pe", "paddingEnd"],
1522
+ values: "spacing"
1523
+ },
1524
+ paddingInlineStart: {
1525
+ className: "ps",
1526
+ shorthand: ["ps", "paddingStart"],
1527
+ values: "spacing"
1528
+ },
1529
+ marginLeft: {
1530
+ className: "ml",
1531
+ shorthand: "ml",
1532
+ values: "spacing"
1533
+ },
1534
+ marginRight: {
1535
+ className: "mr",
1536
+ shorthand: "mr",
1537
+ values: "spacing"
1538
+ },
1539
+ marginTop: {
1540
+ className: "mt",
1541
+ shorthand: "mt",
1542
+ values: "spacing"
1543
+ },
1544
+ marginBottom: {
1545
+ className: "mb",
1546
+ shorthand: "mb",
1547
+ values: "spacing"
1548
+ },
1549
+ margin: {
1550
+ className: "m",
1551
+ shorthand: "m",
1552
+ values: "spacing"
1553
+ },
1554
+ marginBlock: {
1555
+ className: "my",
1556
+ values: "spacing",
1557
+ shorthand: ["my", "marginY"]
1558
+ },
1559
+ marginBlockEnd: {
1560
+ className: "mb",
1561
+ values: "spacing"
1562
+ },
1563
+ marginBlockStart: {
1564
+ className: "mt",
1565
+ values: "spacing"
1566
+ },
1567
+ marginInline: {
1568
+ className: "mx",
1569
+ values: "spacing",
1570
+ shorthand: ["mx", "marginX"]
1571
+ },
1572
+ marginInlineEnd: {
1573
+ className: "me",
1574
+ shorthand: ["me", "marginEnd"],
1575
+ values: "spacing"
1576
+ },
1577
+ marginInlineStart: {
1578
+ className: "ms",
1579
+ shorthand: ["ms", "marginStart"],
1580
+ values: "spacing"
1581
+ }
1582
+ };
1583
+
1584
+ // src/utilities/svg.ts
1585
+ var svg = {
1586
+ fill: {
1587
+ className: "fill",
1588
+ values: "colors"
1589
+ },
1590
+ stroke: {
1591
+ className: "stroke",
1592
+ values: "colors"
1593
+ }
1594
+ };
1595
+
1596
+ // src/utilities/tables.ts
1597
+ var tables = {
1598
+ borderCollapse: {
1599
+ className: "border"
1600
+ },
1601
+ borderSpacing: {
1602
+ className: "border-spacing",
1603
+ values: "spacing"
1604
+ },
1605
+ borderSpacingX: {
1606
+ className: "border-spacing-x",
1607
+ values: "spacing",
1608
+ transform(value) {
1609
+ return {
1610
+ borderSpacing: `${value} var(--border-spacing-y)`
1611
+ };
1612
+ }
1613
+ },
1614
+ borderSpacingY: {
1615
+ className: "border-spacing-y",
1616
+ values: "spacing",
1617
+ transform(value) {
1618
+ return {
1619
+ borderSpacing: `var(--border-spacing-x) ${value}`
1620
+ };
1621
+ }
1622
+ },
1623
+ tableLayout: {
1624
+ className: "table"
1625
+ }
1626
+ };
1627
+
1628
+ // src/utilities/transforms.ts
1629
+ var transforms = {
1630
+ transformOrigin: {
1631
+ className: "origin"
1632
+ },
1633
+ scale: {
1634
+ className: "scale",
1635
+ property: "scale",
1636
+ values: {
1637
+ auto: "var(--scale-x) var(--scale-y)"
1638
+ }
1639
+ },
1640
+ scaleX: {
1641
+ className: "scale-x",
1642
+ transform(value) {
1643
+ return {
1644
+ "--scale-x": value
1645
+ };
1646
+ }
1647
+ },
1648
+ scaleY: {
1649
+ className: "scale-y",
1650
+ transform(value) {
1651
+ return {
1652
+ "--scale-y": value
1653
+ };
1654
+ }
1655
+ },
1656
+ translate: {
1657
+ className: "translate",
1658
+ property: "translate",
1659
+ values: {
1660
+ auto: "var(--translate-x) var(--translate-y)"
1661
+ }
1662
+ },
1663
+ translateX: {
1664
+ shorthand: "x",
1665
+ className: "translate-x",
1666
+ values(theme) {
1667
+ return {
1668
+ ...theme("spacing"),
1669
+ "1/2": "50%",
1670
+ "1/3": "33.333333%",
1671
+ "2/3": "66.666667%",
1672
+ "1/4": "25%",
1673
+ "2/4": "50%",
1674
+ "3/4": "75%",
1675
+ full: "100%"
1676
+ };
1677
+ },
1678
+ transform(value) {
1679
+ return {
1680
+ "--translate-x": value
1681
+ };
1682
+ }
1683
+ },
1684
+ translateY: {
1685
+ shorthand: "y",
1686
+ className: "translate-y",
1687
+ values(theme) {
1688
+ return {
1689
+ ...theme("spacing"),
1690
+ "1/2": "50%",
1691
+ "1/3": "33.333333%",
1692
+ "2/3": "66.666667%",
1693
+ "1/4": "25%",
1694
+ "2/4": "50%",
1695
+ "3/4": "75%",
1696
+ full: "100%"
1697
+ };
1698
+ },
1699
+ transform(value) {
1700
+ return {
1701
+ "--translate-y": value
1702
+ };
1703
+ }
1704
+ }
1705
+ };
1706
+
1707
+ // src/utilities/transitions.ts
1708
+ var transitions = {
1709
+ transitionTimingFunction: {
1710
+ className: "ease",
1711
+ values: "easings"
1712
+ },
1713
+ transitionDelay: {
1714
+ className: "delay",
1715
+ values: "durations"
1716
+ },
1717
+ transitionDuration: {
1718
+ className: "duration",
1719
+ values: "durations"
1720
+ },
1721
+ transitionProperty: {
1722
+ className: "transition",
1723
+ values: {
1724
+ all: "all",
1725
+ none: "none",
1726
+ opacity: "opacity",
1727
+ shadow: "box-shadow",
1728
+ transform: "transform",
1729
+ base: "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
1730
+ background: "background, background-color",
1731
+ colors: "color, background-color, border-color, outline-color, text-decoration-color, fill, stroke"
1732
+ }
1733
+ },
1734
+ animation: {
1735
+ className: "animation",
1736
+ values: "animations"
1737
+ },
1738
+ animationDelay: {
1739
+ className: "animation-delay",
1740
+ values: "durations"
1741
+ }
1742
+ };
1743
+
1744
+ // src/utilities/typography.ts
1745
+ var typography = {
1746
+ color: {
1747
+ className: "text",
1748
+ values: "colors"
1749
+ },
1750
+ fontFamily: {
1751
+ className: "font",
1752
+ values: "fonts"
1753
+ },
1754
+ fontSize: {
1755
+ className: "fs",
1756
+ values: "fontSizes"
1757
+ },
1758
+ fontWeight: {
1759
+ className: "font",
1760
+ values: "fontWeights"
1761
+ },
1762
+ fontSmoothing: {
1763
+ className: "smoothing",
1764
+ values: {
1765
+ antialiased: "antialiased",
1766
+ "subpixel-antialiased": "auto"
1767
+ },
1768
+ transform(value) {
1769
+ return {
1770
+ WebkitFontSmoothing: value
1771
+ };
1772
+ }
1773
+ },
1774
+ fontVariantNumeric: {
1775
+ className: "numeric"
1776
+ },
1777
+ letterSpacing: {
1778
+ className: "tracking",
1779
+ values: "letterSpacings"
1780
+ },
1781
+ lineHeight: {
1782
+ className: "leading",
1783
+ values: "lineHeights"
1784
+ },
1785
+ textAlign: {
1786
+ className: "text"
1787
+ },
1788
+ textDecoration: {
1789
+ className: "text-decor"
1790
+ },
1791
+ textDecorationColor: {
1792
+ className: "text-decor",
1793
+ values: "colors"
1794
+ },
1795
+ textEmphasisColor: {
1796
+ className: "text-emphasis",
1797
+ values: "colors"
1798
+ },
1799
+ textDecorationStyle: {
1800
+ className: "decoration"
1801
+ },
1802
+ textDecorationThickness: {
1803
+ className: "decoration"
1804
+ },
1805
+ textUnderlineOffset: {
1806
+ className: "underline-offset"
1807
+ },
1808
+ textTransform: {
1809
+ className: "text"
1810
+ },
1811
+ textIndent: {
1812
+ className: "indent",
1813
+ values: "spacing"
1814
+ },
1815
+ textShadow: {
1816
+ className: "text-shadow",
1817
+ values: "shadows"
1818
+ },
1819
+ textOverflow: {
1820
+ className: "text"
1821
+ },
1822
+ verticalAlign: {
1823
+ className: "align"
1824
+ },
1825
+ wordBreak: {
1826
+ className: "break"
1827
+ },
1828
+ textWrap: {
1829
+ className: "text",
1830
+ values: ["wrap", "balance", "nowrap"],
1831
+ transform(value) {
1832
+ return { textWrap: value };
1833
+ }
1834
+ },
1835
+ truncate: {
1836
+ className: "truncate",
1837
+ values: { type: "boolean" },
1838
+ transform(value) {
1839
+ if (!value)
1840
+ return {};
1841
+ return {
1842
+ overflow: "hidden",
1843
+ textOverflow: "ellipsis",
1844
+ whiteSpace: "nowrap"
1845
+ };
1846
+ }
1847
+ },
1848
+ lineClamp: {
1849
+ className: "clamp",
1850
+ transform(value) {
1851
+ if (value === "none") {
1852
+ return {
1853
+ WebkitLineClamp: "unset"
1854
+ };
1855
+ }
1856
+ return {
1857
+ overflow: "hidden",
1858
+ display: "-webkit-box",
1859
+ WebkitLineClamp: value,
1860
+ WebkitBoxOrient: "vertical"
1861
+ };
1862
+ }
1863
+ }
1864
+ };
1865
+
1866
+ // src/utilities/index.ts
1867
+ var utilities = Object.assign(
1868
+ {},
1869
+ layout,
1870
+ display,
1871
+ flexGrid,
1872
+ spacing,
1873
+ outline,
1874
+ divide,
1875
+ sizing,
1876
+ typography,
1877
+ list,
1878
+ background,
1879
+ border,
1880
+ effects,
1881
+ tables,
1882
+ transitions,
1883
+ transforms,
1884
+ interactivity,
1885
+ svg,
1886
+ helpers
1887
+ );
1888
+
1889
+ // src/patterns.ts
1890
+ function definePattern(config) {
1891
+ return config;
1892
+ }
1893
+ var box = definePattern({
1894
+ properties: {},
1895
+ transform(props) {
1896
+ return props;
1897
+ }
1898
+ });
1899
+ var flex = definePattern({
1900
+ properties: {
1901
+ align: { type: "property", value: "alignItems" },
1902
+ justify: { type: "property", value: "justifyContent" },
1903
+ direction: { type: "property", value: "flexDirection" },
1904
+ wrap: { type: "property", value: "flexWrap" },
1905
+ basis: { type: "property", value: "flexBasis" },
1906
+ grow: { type: "property", value: "flexGrow" },
1907
+ shrink: { type: "property", value: "flexShrink" }
1908
+ },
1909
+ transform(props) {
1910
+ const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
1911
+ return {
1912
+ display: "flex",
1913
+ flexDirection: direction,
1914
+ alignItems: align,
1915
+ justifyContent: justify,
1916
+ flexWrap: wrap2,
1917
+ flexBasis: basis,
1918
+ flexGrow: grow,
1919
+ flexShrink: shrink,
1920
+ ...rest
1921
+ };
1922
+ }
1923
+ });
1924
+ var stack = definePattern({
1925
+ properties: {
1926
+ align: { type: "property", value: "alignItems" },
1927
+ justify: { type: "property", value: "justifyContent" },
1928
+ direction: { type: "property", value: "flexDirection" },
1929
+ gap: { type: "property", value: "gap" }
1930
+ },
1931
+ transform(props) {
1932
+ const { align, justify, direction = "column", gap = "10px", ...rest } = props;
1933
+ return {
1934
+ display: "flex",
1935
+ flexDirection: direction,
1936
+ alignItems: align,
1937
+ justifyContent: justify,
1938
+ gap,
1939
+ ...rest
1940
+ };
1941
+ }
1942
+ });
1943
+ var vstack = definePattern({
1944
+ jsx: "VStack",
1945
+ properties: {
1946
+ justify: { type: "property", value: "justifyContent" },
1947
+ gap: { type: "property", value: "gap" }
1948
+ },
1949
+ transform(props) {
1950
+ const { justify, gap = "10px", ...rest } = props;
1951
+ return {
1952
+ display: "flex",
1953
+ alignItems: "center",
1954
+ justifyContent: justify,
1955
+ gap,
1956
+ flexDirection: "column",
1957
+ ...rest
1958
+ };
1959
+ }
1960
+ });
1961
+ var hstack = definePattern({
1962
+ jsx: "HStack",
1963
+ properties: {
1964
+ justify: { type: "property", value: "justifyContent" },
1965
+ gap: { type: "property", value: "gap" }
1966
+ },
1967
+ transform(props) {
1968
+ const { justify, gap = "10px", ...rest } = props;
1969
+ return {
1970
+ display: "flex",
1971
+ alignItems: "center",
1972
+ justifyContent: justify,
1973
+ gap,
1974
+ flexDirection: "row",
1975
+ ...rest
1976
+ };
1977
+ }
1978
+ });
1979
+ var spacer = definePattern({
1980
+ properties: {
1981
+ size: { type: "token", value: "spacing" }
1982
+ },
1983
+ transform(props, { map }) {
1984
+ const { size, ...rest } = props;
1985
+ return {
1986
+ alignSelf: "stretch",
1987
+ justifySelf: "stretch",
1988
+ flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
1989
+ ...rest
1990
+ };
1991
+ }
1992
+ });
1993
+ var circle = definePattern({
1994
+ properties: {
1995
+ size: { type: "property", value: "width" }
1996
+ },
1997
+ transform(props) {
1998
+ const { size, ...rest } = props;
1999
+ return {
2000
+ display: "flex",
2001
+ alignItems: "center",
2002
+ justifyContent: "center",
2003
+ flex: "0 0 auto",
2004
+ width: size,
2005
+ height: size,
2006
+ borderRadius: "9999px",
2007
+ ...rest
2008
+ };
2009
+ }
2010
+ });
2011
+ var square = definePattern({
2012
+ properties: {
2013
+ size: { type: "property", value: "width" }
2014
+ },
2015
+ transform(props) {
2016
+ const { size, ...rest } = props;
2017
+ return {
2018
+ display: "flex",
2019
+ alignItems: "center",
2020
+ justifyContent: "center",
2021
+ flex: "0 0 auto",
2022
+ width: size,
2023
+ height: size,
2024
+ ...rest
2025
+ };
2026
+ }
2027
+ });
2028
+ var grid = definePattern({
2029
+ properties: {
2030
+ gap: { type: "property", value: "gap" },
2031
+ columnGap: { type: "property", value: "gap" },
2032
+ rowGap: { type: "property", value: "gap" },
2033
+ columns: { type: "number" },
2034
+ minChildWidth: { type: "token", value: "sizes", property: "width" }
2035
+ },
2036
+ transform(props, { map }) {
2037
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", columns, minChildWidth, ...rest } = props;
2038
+ return {
2039
+ display: "grid",
2040
+ gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${v}, 1fr))`) : void 0,
2041
+ gap,
2042
+ columnGap,
2043
+ rowGap,
2044
+ ...rest
2045
+ };
2046
+ }
2047
+ });
2048
+ var gridItem = definePattern({
2049
+ properties: {
2050
+ colSpan: { type: "number" },
2051
+ rowSpan: { type: "number" },
2052
+ colStart: { type: "number" },
2053
+ rowStart: { type: "number" },
2054
+ colEnd: { type: "number" },
2055
+ rowEnd: { type: "number" }
2056
+ },
2057
+ transform(props, { map }) {
2058
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
2059
+ const spanFn = (v) => v === "auto" ? v : `span ${v}`;
2060
+ return {
2061
+ gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
2062
+ gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
2063
+ gridColumnEnd: colEnd,
2064
+ gridRowEnd: rowEnd,
2065
+ ...rest
2066
+ };
2067
+ }
2068
+ });
2069
+ var wrap = definePattern({
2070
+ properties: {
2071
+ gap: { type: "property", value: "gap" },
2072
+ rowGap: { type: "property", value: "gap" },
2073
+ columnGap: { type: "property", value: "gap" },
2074
+ align: { type: "property", value: "alignItems" },
2075
+ justify: { type: "property", value: "justifyContent" }
2076
+ },
2077
+ transform(props) {
2078
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
2079
+ return {
2080
+ display: "flex",
2081
+ flexWrap: "wrap",
2082
+ alignItems: align,
2083
+ justifyContent: justify,
2084
+ gap,
2085
+ columnGap,
2086
+ rowGap,
2087
+ ...rest
2088
+ };
2089
+ }
2090
+ });
2091
+ var container = definePattern({
2092
+ properties: {},
2093
+ transform(props) {
2094
+ return {
2095
+ position: "relative",
2096
+ maxWidth: "8xl",
2097
+ mx: "auto",
2098
+ px: { base: "4", md: "6", lg: "8" },
2099
+ ...props
2100
+ };
2101
+ }
2102
+ });
2103
+ var center = definePattern({
2104
+ properties: {
2105
+ inline: { type: "boolean" }
2106
+ },
2107
+ transform(props) {
2108
+ const { inline, ...rest } = props;
2109
+ return {
2110
+ display: inline ? "inline-flex" : "flex",
2111
+ alignItems: "center",
2112
+ justifyContent: "center",
2113
+ ...rest
2114
+ };
2115
+ }
2116
+ });
2117
+ var aspectRatio = definePattern({
2118
+ properties: {
2119
+ ratio: { type: "number" }
2120
+ },
2121
+ blocklist: ["aspectRatio"],
2122
+ transform(props) {
2123
+ const { ratio, ...rest } = props;
2124
+ return {
2125
+ aspectRatio: ratio,
2126
+ overflow: "hidden",
2127
+ display: "flex",
2128
+ justifyContent: "center",
2129
+ alignItems: "center",
2130
+ "&>img, &>video": {
2131
+ width: "100%",
2132
+ height: "100%",
2133
+ objectFit: "cover"
2134
+ },
2135
+ ...rest
2136
+ };
2137
+ }
2138
+ });
2139
+ var divider = definePattern({
2140
+ properties: {
2141
+ orientation: { type: "enum", value: ["horizontal", "vertical"] },
2142
+ thickness: { type: "token", value: "sizes", property: "borderWidth" },
2143
+ color: { type: "token", value: "colors", property: "borderColor" }
2144
+ },
2145
+ transform(props, { map }) {
2146
+ const { orientation = "horizontal", thickness = "1px", color, ...rest } = props;
2147
+ return {
2148
+ "--thickness": thickness,
2149
+ width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
2150
+ height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
2151
+ borderInlineStartWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
2152
+ borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
2153
+ borderColor: color,
2154
+ ...rest
2155
+ };
2156
+ }
2157
+ });
2158
+ var linkBox = definePattern({
2159
+ properties: {},
2160
+ transform(props) {
2161
+ return {
2162
+ position: "relative",
2163
+ "& :where(a, abbr)": {
2164
+ position: "relative",
2165
+ zIndex: "1"
2166
+ },
2167
+ ...props
2168
+ };
2169
+ }
2170
+ });
2171
+ var linkOverlay = definePattern({
2172
+ jsxElement: "a",
2173
+ properties: {},
2174
+ transform(props) {
2175
+ return {
2176
+ position: "static",
2177
+ _before: {
2178
+ content: '""',
2179
+ display: "block",
2180
+ position: "absolute",
2181
+ cursor: "inherit",
2182
+ inset: "0",
2183
+ zIndex: "0",
2184
+ ...props["_before"]
2185
+ },
2186
+ ...props
2187
+ };
2188
+ }
2189
+ });
2190
+ var float = definePattern({
2191
+ properties: {
2192
+ offsetX: { type: "token", value: "spacing", property: "left" },
2193
+ offsetY: { type: "token", value: "spacing", property: "top" },
2194
+ offset: { type: "token", value: "spacing", property: "top" },
2195
+ placement: {
2196
+ type: "enum",
2197
+ value: [
2198
+ "bottom-end",
2199
+ "bottom-start",
2200
+ "top-end",
2201
+ "top-start",
2202
+ "bottom-center",
2203
+ "top-center",
2204
+ "middle-center",
2205
+ "middle-end",
2206
+ "middle-start"
2207
+ ]
2208
+ }
2209
+ },
2210
+ transform(props, { map }) {
2211
+ const { offset = "0", offsetX = offset, offsetY = offset, placement = "top-end", ...rest } = props;
2212
+ return {
2213
+ display: "inline-flex",
2214
+ justifyContent: "center",
2215
+ alignItems: "center",
2216
+ position: "absolute",
2217
+ insetBlockStart: map(placement, (v) => {
2218
+ const [side] = v.split("-");
2219
+ const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
2220
+ return map2[side];
2221
+ }),
2222
+ insetBlockEnd: map(placement, (v) => {
2223
+ const [side] = v.split("-");
2224
+ const map2 = { top: "auto", middle: "50%", bottom: offsetY };
2225
+ return map2[side];
2226
+ }),
2227
+ insetInlineStart: map(placement, (v) => {
2228
+ const [, align] = v.split("-");
2229
+ const map2 = { start: offsetX, center: "50%", end: "auto" };
2230
+ return map2[align];
2231
+ }),
2232
+ insetInlineEnd: map(placement, (v) => {
2233
+ const [, align] = v.split("-");
2234
+ const map2 = { start: "auto", center: "50%", end: offsetX };
2235
+ return map2[align];
2236
+ }),
2237
+ translate: map(placement, (v) => {
2238
+ const [side, align] = v.split("-");
2239
+ const mapX = { start: "-50%", center: "-50%", end: "50%" };
2240
+ const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
2241
+ return `${mapX[align]} ${mapY[side]}`;
2242
+ }),
2243
+ ...rest
2244
+ };
2245
+ }
2246
+ });
2247
+ var patterns = {
2248
+ box,
2249
+ flex,
2250
+ stack,
2251
+ vstack,
2252
+ hstack,
2253
+ spacer,
2254
+ square,
2255
+ circle,
2256
+ center,
2257
+ linkBox,
2258
+ linkOverlay,
2259
+ aspectRatio,
2260
+ grid,
2261
+ gridItem,
2262
+ wrap,
2263
+ container,
2264
+ divider,
2265
+ float
2266
+ };
2267
+
2268
+ // src/index.ts
2269
+ var definePreset = (preset2) => preset2;
2270
+ var preset = definePreset({
2271
+ conditions,
2272
+ utilities,
2273
+ patterns
2274
+ });
2275
+ var src_default = preset;
2276
+ export {
2277
+ src_default as default,
2278
+ preset
2279
+ };