Skip to content

Commit 4c69c7c

Browse files
committed
Define tall and touch tailwind custom variants
1 parent ecfb254 commit 4c69c7c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/tailwind-config.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@
8484
--z-index-5: 5;
8585
--z-index-10: 10;
8686
--z-index-max: 2147483647;
87-
88-
/* Custom breakpoints */
89-
--breakpoint-tall: (min-height: 32rem);
90-
--breakpoint-touch: (pointer: coarse);
9187
}
9288

89+
/* Tailwind has a built-in pointer-coarse variant. This alias exists for
90+
compatibility. */
91+
@custom-variant touch (@media (pointer: coarse));
92+
93+
@custom-variant tall (@media (min-height: 32rem));
94+
9395
/* Custom keyframes and animations */
9496
@keyframes fade-in {
9597
0% {

0 commit comments

Comments
 (0)