Tailwind v4.1.18 Custom breakpoints With tw: prefix is not generating media queries #19437
-
|
As the title suggests I'm trying to migrate to vite tailwind v4.1.18 from v3 and have defined some custom breakpoints to match some old bootstrap sections of our codebase. My main.css master tailwind file looks like this
It is correctly genereating tailwind with the prefix of tw: (IE tw:flex etc..) but when I use sm:tw:flex it does not generate the media query nor generate it. Could someone please help? I would previously use sm:tw-flex but the prefix now needs to be tw: which has thrown me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
tw:always go first, so you'd dotw:sm:flex