NextJS 13 tailwind responsive websites

I'm trying to make a simple responsive website with nextjs 13 and tailwind, but the media queries aren't working as expected. When on mobile "md:" classes is triggered. Is this a bug?
22 Replies
Min
Min2y ago
full width on small devices working with browser resize: https://gyazo.com/c6371c2b99b45d9b7ead0c43abb2561c
Gyazo
Gyazo
Dosha
Dosha2y ago
im pretty sure the devs said that tailwind is still buggy like its not first class support yet
needmorewood
needmorewood2y ago
is this a fresh project? can u post code and/or the site
Min
Min2y ago
recreated the issue here in a fresh project
Min
Min2y ago
GitHub
GitHub - robharding/next13-tailwind-test
Contribute to robharding/next13-tailwind-test development by creating an account on GitHub.
Min
Min2y ago
test the font color changing resizing the window and then test on mobile using chrome dev tools
needmorewood
needmorewood2y ago
oh i know what ur saying
needmorewood
needmorewood2y ago
Customizing Screens - Tailwind CSS
Customizing the default breakpoints for your project.
needmorewood
needmorewood2y ago
it is working as expected i would read about the link i posted above and consider creating your own media queries i guess if its not what you want you can extend tailwinds functionality to do what you want so take advantage of that
Min
Min2y ago
iphone se is 375 x 667 so shouldn't it be showing black text in my example? using the default media queries
needmorewood
needmorewood2y ago
its based on min width so anything bigger than 768px is red which is what you have written in your example at least
Min
Min2y ago
Want results from more Discord servers?
Add your server