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
MinOP3y ago
full width on small devices working with browser resize: https://gyazo.com/c6371c2b99b45d9b7ead0c43abb2561c
Gyazo
Gyazo
Dosha
Dosha3y ago
im pretty sure the devs said that tailwind is still buggy like its not first class support yet
needmorewood
needmorewood3y ago
is this a fresh project? can u post code and/or the site
Min
MinOP3y ago
recreated the issue here in a fresh project
Min
MinOP3y ago
GitHub
GitHub - robharding/next13-tailwind-test
Contribute to robharding/next13-tailwind-test development by creating an account on GitHub.
Min
MinOP3y ago
test the font color changing resizing the window and then test on mobile using chrome dev tools
Min
MinOP3y ago
needmorewood
needmorewood3y ago
oh i know what ur saying
needmorewood
needmorewood3y ago
Customizing Screens - Tailwind CSS
Customizing the default breakpoints for your project.
needmorewood
needmorewood3y 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
MinOP3y ago
iphone se is 375 x 667 so shouldn't it be showing black text in my example? using the default media queries
needmorewood
needmorewood3y 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
MinOP3y ago
Min
MinOP3y ago
but on width=375 its still red
needmorewood
needmorewood3y ago
ah ok i was just moving it back and forth i see ur issue let me open this on mobile
Min
MinOP3y ago
yeah thats what I was doing in development until I realized it looked funky actually loaded on my phone
needmorewood
needmorewood3y ago
maybe u found a tailwind bug or something or a chrome bug hmmm
needmorewood
needmorewood3y ago
tried different tailwind versions and it works fine guess you found yourself a next bug
Min
MinOP3y ago
Cool
Want results from more Discord servers?
Add your server