Replies: 3 comments 1 reply
-
As per the documentation, Tailwind supports Safari 16.4 at a minimum. If you need to support older browsers, consider using v3 instead. |
Beta Was this translation helpful? Give feedback.
-
@wongjn well I can not to do, |
Beta Was this translation helpful? Give feedback.
-
I don't think you can customize the media queries to use @theme {
/* Disable default responsive variants */
--breakpoint-*: initial;
}
@custom-variant sm (@media (min-width 40rem));
@custom-variant md (@media (min-width 48rem));
/* Etc. */ Though this is a work-around for media queries, there may be other aspects of Tailwind v4's generated CSS that may not be compatible with older Safari versions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in tailwind 4 the breakpoints handle this way:
Breakpoint prefix Minimum width CSS
sm 40rem (640px)
md 48rem (768px)
lg 64rem (1024px)
xl 80rem (1280px)
2xl 96rem (1536px)
but these media query works just on iphone safari 16.4 to up !
it must be such this (such as past tailwind version (3)):
how to handle these?!
but i do not know how to fix this entirely in tailwind!
TailwindCSS v4.0.6
Vite 6.1.0
Node v20.0.0
Safari v15
IOS
Beta Was this translation helpful? Give feedback.
All reactions