This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.d.ts
1629 lines (1501 loc) · 39.4 KB
/
theme.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="tailwind.d.ts" />
declare namespace Tailwind {
interface ConfigUtils {
colors: DefaultColors
negative<T extends Record<string, string>>(
value: T,
): { [P in keyof T]: `-${T[P]}` }
breakpoints<T extends Record<string, unknown>>(
value: T,
): { [K in keyof T as `screen-${string & K}`]: T[K] }
}
interface ResolvePath {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(path: string, defaultValue?: unknown): any
}
interface ResolveThemePath extends ResolvePath, ConfigUtils {
theme: ResolvePath
}
type WithResolveThemePath<T> =
| T
| ((theme: ResolveThemePath, configUtils: ConfigUtils) => T | void)
interface CustomPalette {
[key: string | symbol]: ColorValue
}
interface ColorValueFunc {
(options: {
/** ex: `var(--tw-text-opacity)` */
opacityValue?: string
/** ex: `--tw-text-opacity` */
opacityVariable?: string
}): Primitive
}
type ColorValue = ColorValueFunc | CustomPalette | Primitive
interface BaseColors {
inherit?: ColorValue
current?: ColorValue
transparent?: ColorValue
black?: ColorValue
white?: ColorValue
slate?: ColorValue
gray?: ColorValue
zinc?: ColorValue
neutral?: ColorValue
stone?: ColorValue
red?: ColorValue
orange?: ColorValue
amber?: ColorValue
yellow?: ColorValue
lime?: ColorValue
green?: ColorValue
emerald?: ColorValue
teal?: ColorValue
cyan?: ColorValue
sky?: ColorValue
blue?: ColorValue
indigo?: ColorValue
violet?: ColorValue
purple?: ColorValue
fuchsia?: ColorValue
pink?: ColorValue
rose?: ColorValue
}
interface FontSizeValueExtension extends ConfigObject {
/** @link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height */
lineHeight?: CSSValue
/** @link https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing */
letterSpacing?: CSSValue
/** @link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight */
fontWeight?: CSSValue
}
type FontSizeValue =
| CSSValue
| [fontSize: CSSValue, lineHeight: CSSValue]
| [fontSize: CSSValue, options: FontSizeValueExtension]
type ScreenValue =
| CSSValue
| { raw?: CSSValue }
| { min?: CSSValue; max?: CSSValue }
interface FontFamilyValueExtension extends ConfigObject {
/** https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings */
fontFeatureSettings?: CSSValue
}
type FontFamilyValue =
| CSSValue
| CSSValue[]
| [value: CSSValue | CSSValue[], options: FontFamilyValueExtension]
interface ContainerConfig extends ConfigObject {
center?: boolean
padding?: CSSValue | { [key: string]: CSSValue }
screens?: { [key: string]: ScreenValue }
}
type WithResolvePathPalette<
T extends Record<string | symbol, unknown> = {},
> = WithResolveThemePath<
{
[key: string | symbol]: ColorValue
} & BaseColors & { [P in keyof T]?: ColorValue }
>
/** User-defined theme */
interface CustomTheme {}
type CoreThemeObject<
T extends Record<string | symbol, unknown> = {},
V = ConfigEntry,
> = WithResolveThemePath<
{
[key: string | symbol]: V
} & {
[P in keyof T]?: V
}
>
interface Theme {
/** Extend your theme.
*
* {@link https://tailwindcss.com/docs/configuration Reference}
*/
extend?: Omit<Theme, "extend"> & CustomTheme
/** Using responsive utility variants to build adaptive user interfaces.
*
* {@link https://tailwindcss.com/docs/responsive-design Reference}
*/
screens?: CoreThemeObject<{
sm: ScreenValue
md: ScreenValue
lg: ScreenValue
xl: ScreenValue
"2xl": ScreenValue
}>
/** A component for fixing an element's width to the current breakpoint.
*
* {@link https://tailwindcss.com/docs/container Reference}
*/
container?: ContainerConfig
/** Customizing the default color palette for your project.
*
* {@link https://tailwindcss.com/docs/customizing-colors Reference}
*/
colors?: WithResolvePathPalette
/** Utilities for controlling the accented color of a form control.
*
* {@link https://tailwindcss.com/docs/accent-color Reference}
*/
accentColor?: WithResolvePathPalette<{ auto: "auto" }>
/** Utilities for animating elements with CSS animations.
*
* {@link https://tailwindcss.com/docs/animation Reference}
*/
animation?: CoreThemeObject<{
none: "none"
spin: "spin 1s linear infinite"
ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
bounce: "bounce 1s infinite"
}>
/** Utilities for controlling the aspect ratio of an element.
*
* {@link https://tailwindcss.com/docs/aspect-ratio Reference}
*/
aspectRatio?: CoreThemeObject<{
auto: "auto"
square: "1 / 1"
video: "16 / 9"
}>
/** Utilities for applying backdrop blur filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-blur Reference}
*/
backdropBlur?: Theme["blur"]
/** Utilities for applying backdrop brightness filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-brightness Reference}
*/
backdropBrightness?: Theme["brightness"]
/** Utilities for applying backdrop contrast filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-contrast Reference}
*/
backdropContrast?: Theme["contrast"]
/** Utilities for applying backdrop grayscale filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-grayscale Reference}
*/
backdropGrayscale?: Theme["grayscale"]
/** Utilities for applying backdrop hue-rotate filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-hue-rotate Reference}
*/
backdropHueRotate?: Theme["hueRotate"]
/** Utilities for applying backdrop invert filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-invert Reference}
*/
backdropInvert?: Theme["invert"]
/** Utilities for applying backdrop opacity filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-opacity Reference}
*/
backdropOpacity?: Theme["opacity"]
/** Utilities for applying backdrop saturation filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-saturate Reference}
*/
backdropSaturate?: Theme["saturate"]
/** Utilities for applying backdrop sepia filters to an element.
*
* {@link https://tailwindcss.com/docs/backdrop-sepia Reference}
*/
backdropSepia?: Theme["sepia"]
/** Utilities for controlling an element's background color.
*
* {@link https://tailwindcss.com/docs/background-color Reference}
*/
backgroundColor?: WithResolvePathPalette
/** Utilities for controlling an element's background image.
*
* {@link https://tailwindcss.com/docs/background-image Reference}
*/
backgroundImage?: CoreThemeObject<{
none: "none"
"gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))"
"gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))"
"gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))"
"gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))"
"gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))"
"gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))"
"gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))"
"gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
}>
/** Utilities for controlling an element's background image.
*
* {@link https://tailwindcss.com/docs/background-image Reference}
*/
backgroundPosition?: CoreThemeObject<{
bottom: "bottom"
center: "center"
left: "left"
"left-bottom": "left bottom"
"left-top": "left top"
right: "right"
"right-bottom": "right bottom"
"right-top": "right top"
top: "top"
}>
/** Utilities for controlling the background size of an element's background image.
*
* {@link https://tailwindcss.com/docs/background-size Reference}
*/
backgroundSize?: CoreThemeObject<{
auto: "auto"
cover: "cover"
contain: "contain"
}>
/** Utilities for applying blur filters to an element.
*
* {@link https://tailwindcss.com/docs/blur Reference}
*/
blur?: CoreThemeObject<{
0: "0"
none: "0"
sm: "4px"
DEFAULT: "8px"
md: "12px"
lg: "16px"
xl: "24px"
"2xl": "40px"
"3xl": "64px"
}>
/** Utilities for controlling the color of an element's borders.
*
* {@link https://tailwindcss.com/docs/border-color Reference}
*/
borderColor?: WithResolvePathPalette<{ DEFAULT: unknown }>
/** Utilities for controlling the border radius of an element.
*
* {@link https://tailwindcss.com/docs/border-radius Reference}
*/
borderRadius?: CoreThemeObject<{
DEFAULT: "0.25rem"
none: "0px"
sm: "0.125rem"
md: "0.375rem"
lg: "0.5rem"
xl: "0.75rem"
"2xl": "1rem"
"3xl": "1.5rem"
full: "9999px"
}>
borderSpacing?: Theme["spacing"]
/** Utilities for controlling the width of an element's borders.
*
* {@link https://tailwindcss.com/docs/border-width Reference}
*/
borderWidth?: CoreThemeObject<{
DEFAULT: "1px"
0: "0px"
2: "2px"
4: "4px"
8: "8px"
}>
/** Utilities for controlling the box shadow of an element.
*
* {@link https://tailwindcss.com/docs/box-shadow Reference}
*/
boxShadow?: CoreThemeObject<
{
sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)"
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)"
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
none: "none"
},
string | string[]
>
/** Utilities for controlling the color of a box shadow.
*
* {@link https://tailwindcss.com/docs/box-shadow-color Reference}
*/
boxShadowColor?: WithResolvePathPalette
/** Utilities for applying brightness filters to an element.
*
* {@link https://tailwindcss.com/docs/brightness Reference}
*/
brightness?: CoreThemeObject<{
0: "0"
50: ".5"
75: ".75"
90: ".9"
95: ".95"
100: "1"
105: "1.05"
110: "1.1"
125: "1.25"
150: "1.5"
200: "2"
}>
/** Utilities for controlling the color of the text input cursor.
*
* {@link https://tailwindcss.com/docs/caret-color Reference}
*/
caretColor?: WithResolvePathPalette
/** Utilities for controlling the number of columns within an element.
*
* {@link https://tailwindcss.com/docs/columns Reference}
*/
columns?: CoreThemeObject<{
auto: "auto"
1: "1"
2: "2"
3: "3"
4: "4"
5: "5"
6: "6"
7: "7"
8: "8"
9: "9"
10: "10"
11: "11"
12: "12"
"3xs": "16rem"
"2xs": "18rem"
xs: "20rem"
sm: "24rem"
md: "28rem"
lg: "32rem"
xl: "36rem"
"2xl": "42rem"
"3xl": "48rem"
"4xl": "56rem"
"5xl": "64rem"
"6xl": "72rem"
"7xl": "80rem"
}>
/** Utilities for controlling the content of the before and after pseudo-elements.
*
* {@link https://tailwindcss.com/docs/content Reference}
*/
content?: CoreThemeObject<{
none: "none"
}>
/** Utilities for applying contrast filters to an element.
*
* {@link https://tailwindcss.com/docs/contrast Reference}
*/
contrast?: CoreThemeObject<{
0: "0"
50: ".5"
75: ".75"
100: "1"
125: "1.25"
150: "1.5"
200: "2"
}>
/** Utilities for controlling the cursor style when hovering over an element.
*
* {@link https://tailwindcss.com/docs/cursor Reference}
*/
cursor?: CoreThemeObject<{
auto: "auto"
default: "default"
pointer: "pointer"
wait: "wait"
text: "text"
move: "move"
help: "help"
"not-allowed": "not-allowed"
none: "none"
"context-menu": "context-menu"
progress: "progress"
cell: "cell"
crosshair: "crosshair"
"vertical-text": "vertical-text"
alias: "alias"
copy: "copy"
"no-drop": "no-drop"
grab: "grab"
grabbing: "grabbing"
"all-scroll": "all-scroll"
"col-resize": "col-resize"
"row-resize": "row-resize"
"n-resize": "n-resize"
"e-resize": "e-resize"
"s-resize": "s-resize"
"w-resize": "w-resize"
"ne-resize": "ne-resize"
"nw-resize": "nw-resize"
"se-resize": "se-resize"
"sw-resize": "sw-resize"
"ew-resize": "ew-resize"
"ns-resize": "ns-resize"
"nesw-resize": "nesw-resize"
"nwse-resize": "nwse-resize"
"zoom-in": "zoom-in"
"zoom-out": "zoom-out"
}>
/** Utilities for controlling the border color between elements.
*
* {@link https://tailwindcss.com/docs/divide-color Reference}
*/
divideColor?: WithResolvePathPalette
/** Utilities for controlling the border width between elements.
*
* {@link https://tailwindcss.com/docs/divide-width Reference}
*/
divideWidth?: Theme["borderWidth"]
/** Utilities for applying drop-shadow filters to an element.
*
* {@link https://tailwindcss.com/docs/drop-shadow Reference}
*/
dropShadow?: CoreThemeObject<{
sm: "drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))"
DEFAULT: "drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))"
md: "drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))"
lg: "drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))"
xl: "drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))"
"2xl": "drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))"
none: "drop-shadow(0 0 #0000)"
}>
/** Utilities for styling the fill of SVG elements.
*
* {@link https://tailwindcss.com/docs/fill Reference}
*/
fill?: WithResolvePathPalette<{ none: "none" }>
/** Utilities for controlling how flex items both grow and shrink.
*
* {@link https://tailwindcss.com/docs/flex Reference}
*/
flex?: CoreThemeObject<{
1: "1 1 0%"
auto: "1 1 auto"
initial: "0 1 auto"
none: "none"
}>
/** Utilities for controlling the initial size of flex items.
*
* {@link https://tailwindcss.com/docs/flex-basis Reference}
*/
flexBasis?: Theme["spacing"] &
CoreThemeObject<{
auto: "auto"
"1/2": "50%"
"1/3": "33.333333%"
"2/3": "66.666667%"
"1/4": "25%"
"2/4": "50%"
"3/4": "75%"
"1/5": "20%"
"2/5": "40%"
"3/5": "60%"
"4/5": "80%"
"1/6": "16.666667%"
"2/6": "33.333333%"
"3/6": "50%"
"4/6": "66.666667%"
"5/6": "83.333333%"
"1/12": "8.333333%"
"2/12": "16.666667%"
"3/12": "25%"
"4/12": "33.333333%"
"5/12": "41.666667%"
"6/12": "50%"
"7/12": "58.333333%"
"8/12": "66.666667%"
"9/12": "75%"
"10/12": "83.333333%"
"11/12": "91.666667%"
full: "100%"
}>
/** Utilities for controlling how flex items grow.
*
* {@link https://tailwindcss.com/docs/flex-grow Reference}
*/
flexGrow?: CoreThemeObject<{
DEFAULT: "1"
0: "0"
}>
/** Utilities for controlling how flex items shrink.
*
* {@link https://tailwindcss.com/docs/flex-shrink Reference}
*/
flexShrink?: CoreThemeObject<{
DEFAULT: "1"
0: "0"
}>
/** Utilities for controlling the font family of an element.
*
* {@link https://tailwindcss.com/docs/font-family Reference}
*/
fontFamily?: CoreThemeObject<
{
sans: FontFamilyValue
serif: FontFamilyValue
mono: FontFamilyValue
},
FontFamilyValue
>
/** Utilities for controlling the font size of an element.
*
* {@link https://tailwindcss.com/docs/font-size Reference}
*/
fontSize?: CoreThemeObject<
{
xs: FontSizeValue
sm: FontSizeValue
base: FontSizeValue
lg: FontSizeValue
xl: FontSizeValue
"2xl": FontSizeValue
"3xl": FontSizeValue
"4xl": FontSizeValue
"5xl": FontSizeValue
"6xl": FontSizeValue
"7xl": FontSizeValue
"8xl": FontSizeValue
"9xl": FontSizeValue
},
FontSizeValue
>
/** Utilities for controlling the font weight of an element.
*
* {@link https://tailwindcss.com/docs/font-weight Reference}
*/
fontWeight?: CoreThemeObject<{
thin: "100"
extralight: "200"
light: "300"
normal: "400"
medium: "500"
semibold: "600"
bold: "700"
extrabold: "800"
black: "900"
}>
/** Utilities for controlling gutters between grid and flexbox items.
*
* {@link https://tailwindcss.com/docs/gap Reference}
*/
gap?: Theme["spacing"]
/** Utilities for controlling the color stops in background gradients.
*
* {@link https://tailwindcss.com/docs/gradient-color-stops Reference}
*/
gradientColorStops?: WithResolvePathPalette
/** Utilities for applying grayscale filters to an element.
*
* {@link https://tailwindcss.com/docs/grayscale Reference}
*/
grayscale?: CoreThemeObject<{
DEFAULT: "100%"
0: "0"
}>
/** Utilities for applying hue-rotate filters to an element.
*
* {@link https://tailwindcss.com/docs/hue-rotate Reference}
*/
hueRotate?: CoreThemeObject<{
0: "0deg"
15: "15deg"
30: "30deg"
60: "60deg"
90: "90deg"
180: "180deg"
}>
/** Utilities for controlling the size of implicitly-created grid columns.
*
* {@link https://tailwindcss.com/docs/grid-auto-columns Reference}
*/
gridAutoColumns?: CoreThemeObject<{
auto: "auto"
min: "min-content"
max: "max-content"
fr: "minmax(0, 1fr)"
}>
/** Utilities for controlling the size of implicitly-created grid rows.
*
* {@link https://tailwindcss.com/docs/grid-auto-rows Reference}
*/
gridAutoRows?: CoreThemeObject<{
auto: "auto"
min: "min-content"
max: "max-content"
fr: "minmax(0, 1fr)"
}>
/** Utilities for controlling how elements are sized and placed across grid columns.
*
* {@link https://tailwindcss.com/docs/grid-column Reference}
*/
gridColumn?: CoreThemeObject<{
auto: "auto"
"span-1": "span 1 / span 1"
"span-2": "span 2 / span 2"
"span-3": "span 3 / span 3"
"span-4": "span 4 / span 4"
"span-5": "span 5 / span 5"
"span-6": "span 6 / span 6"
"span-7": "span 7 / span 7"
"span-8": "span 8 / span 8"
"span-9": "span 9 / span 9"
"span-10": "span 10 / span 10"
"span-11": "span 11 / span 11"
"span-12": "span 12 / span 12"
"span-full": "1 / -1"
}>
/** Utilities for controlling how elements are sized and placed across grid columns.
*
* {@link https://tailwindcss.com/docs/grid-column Reference}
*/
gridColumnStart?: CoreThemeObject<{
auto: "auto"
1: "1"
2: "2"
3: "3"
4: "4"
5: "5"
6: "6"
7: "7"
8: "8"
9: "9"
10: "10"
11: "11"
12: "12"
13: "13"
}>
/** Utilities for controlling how elements are sized and placed across grid columns.
*
* {@link https://tailwindcss.com/docs/grid-column Reference}
*/
gridColumnEnd?: CoreThemeObject<{
auto: "auto"
1: "1"
2: "2"
3: "3"
4: "4"
5: "5"
6: "6"
7: "7"
8: "8"
9: "9"
10: "10"
11: "11"
12: "12"
13: "13"
}>
/** Utilities for controlling how elements are sized and placed across grid rows.
*
* {@link https://tailwindcss.com/docs/grid-row Reference}
*/
gridRow?: CoreThemeObject<{
auto: "auto"
"span-1": "span 1 / span 1"
"span-2": "span 2 / span 2"
"span-3": "span 3 / span 3"
"span-4": "span 4 / span 4"
"span-5": "span 5 / span 5"
"span-6": "span 6 / span 6"
"span-full": "1 / -1"
}>
/** Utilities for controlling how elements are sized and placed across grid rows.
*
* {@link https://tailwindcss.com/docs/grid-row Reference}
*/
gridRowStart?: CoreThemeObject<{
auto: "auto"
1: "1"
2: "2"
3: "3"
4: "4"
5: "5"
6: "6"
7: "7"
}>
/** Utilities for controlling how elements are sized and placed across grid rows.
*
* {@link https://tailwindcss.com/docs/grid-row Reference}
*/
gridRowEnd?: CoreThemeObject<{
auto: "auto"
1: "1"
2: "2"
3: "3"
4: "4"
5: "5"
6: "6"
7: "7"
}>
/** Utilities for specifying the columns in a grid layout.
*
* {@link https://tailwindcss.com/docs/grid-template-columns Reference}
*/
gridTemplateColumns?: CoreThemeObject<{
none: "none"
1: "repeat(1, minmax(0, 1fr))"
2: "repeat(2, minmax(0, 1fr))"
3: "repeat(3, minmax(0, 1fr))"
4: "repeat(4, minmax(0, 1fr))"
5: "repeat(5, minmax(0, 1fr))"
6: "repeat(6, minmax(0, 1fr))"
7: "repeat(7, minmax(0, 1fr))"
8: "repeat(8, minmax(0, 1fr))"
9: "repeat(9, minmax(0, 1fr))"
10: "repeat(10, minmax(0, 1fr))"
11: "repeat(11, minmax(0, 1fr))"
12: "repeat(12, minmax(0, 1fr))"
}>
/** Utilities for specifying the rows in a grid layout.
*
* {@link https://tailwindcss.com/docs/grid-template-rows Reference}
*/
gridTemplateRows?: CoreThemeObject<{
none: "none"
1: "repeat(1, minmax(0, 1fr))"
2: "repeat(2, minmax(0, 1fr))"
3: "repeat(3, minmax(0, 1fr))"
4: "repeat(4, minmax(0, 1fr))"
5: "repeat(5, minmax(0, 1fr))"
6: "repeat(6, minmax(0, 1fr))"
}>
/** Utilities for setting the height of an element.
*
* {@link https://tailwindcss.com/docs/height Reference}
*/
height?: Theme["spacing"] &
CoreThemeObject<{
auto: "auto"
"1/2": "50%"
"1/3": "33.333333%"
"2/3": "66.666667%"
"1/4": "25%"
"2/4": "50%"
"3/4": "75%"
"1/5": "20%"
"2/5": "40%"
"3/5": "60%"
"4/5": "80%"
"1/6": "16.666667%"
"2/6": "33.333333%"
"3/6": "50%"
"4/6": "66.666667%"
"5/6": "83.333333%"
full: "100%"
screen: "100vh"
min: "min-content"
max: "max-content"
fit: "fit-content"
}>
/** Utilities for controlling the placement of positioned elements.
*
* {@link https://tailwindcss.com/docs/top-right-bottom-left Reference}
*/
inset?: Theme["spacing"] &
CoreThemeObject<{
auto: "auto"
"1/2": "50%"
"1/3": "33.333333%"
"2/3": "66.666667%"
"1/4": "25%"
"2/4": "50%"
"3/4": "75%"
full: "100%"
}>
/** Utilities for applying invert filters to an element.
*
* {@link https://tailwindcss.com/docs/invert Reference}
*/
invert?: CoreThemeObject<{
DEFAULT: "100%"
0: "0"
}>
/** Utilities for applying saturation filters to an element.
*
* {@link https://tailwindcss.com/docs/saturate Reference}
*/
saturate?: CoreThemeObject<{
0: "0"
50: ".5"
100: "1"
150: "1.5"
200: "2"
}>
/** Utilities for applying sepia filters to an element.
*
* {@link https://tailwindcss.com/docs/sepia Reference}
*/
sepia?: CoreThemeObject<{
DEFAULT: "100%"
0: "0"
}>
/** Utilities for animating elements with CSS animations.
*
* {@link https://tailwindcss.com/docs/animation Reference}
*/
keyframes?: CoreThemeObject<{
spin: CSSProperties
ping: CSSProperties
pulse: CSSProperties
bounce: CSSProperties
}>
/** Utilities for controlling the tracking (letter spacing) of an element.
*
* {@link https://tailwindcss.com/docs/letter-spacing Reference}
*/
letterSpacing?: CoreThemeObject<{
tighter: "-0.05em"
tight: "-0.025em"
normal: "0em"
wide: "0.025em"
wider: "0.05em"
widest: "0.1em"
}>
/** Utilities for controlling the leading (line height) of an element.
*
* {@link https://tailwindcss.com/docs/line-height Reference}
*/
lineHeight?: CoreThemeObject<{
none: "1"
tight: "1.25"
snug: "1.375"
normal: "1.5"
relaxed: "1.625"
loose: "2"
3: ".75rem"
4: "1rem"
5: "1.25rem"
6: "1.5rem"
7: "1.75rem"
8: "2rem"
9: "2.25rem"
10: "2.5rem"
}>
/** Utilities for controlling the bullet/number style of a list.
*
* {@link https://tailwindcss.com/docs/list-style-type Reference}
*/
listStyleType?: CoreThemeObject<{
none: "none"
disc: "disc"
decimal: "decimal"
}>
/** Utilities for controlling an element's margin.
*
* {@link https://tailwindcss.com/docs/margin Reference}
*/
margin?: Theme["spacing"] & CoreThemeObject<{ auto: "auto" }>
/** Utilities for setting the maximum height of an element.
*
* {@link https://tailwindcss.com/docs/max-height Reference}
*/
maxHeight?: Theme["spacing"] &
CoreThemeObject<{
full: "100%"
screen: "100vh"
min: "min-content"
max: "max-content"
fit: "fit-content"
}>
/** Utilities for setting the maximum width of an element.
*
* {@link https://tailwindcss.com/docs/max-width Reference}
*/
maxWidth?: CoreThemeObject<{
none: "none"
0: "0rem"
xs: "20rem"
sm: "24rem"
md: "28rem"
lg: "32rem"
xl: "36rem"
"2xl": "42rem"
"3xl": "48rem"
"4xl": "56rem"
"5xl": "64rem"
"6xl": "72rem"
"7xl": "80rem"