where the error is occurred?
this is my end points:
theme: {
screens: {
‘mobile-sm’: ‘320px’,
‘mobile-md’: ‘481px’,
‘tablet’: ‘769px’,
‘desktop-sm’: ‘1025px’,
‘desktop-md’: ‘1201px’
},
I need to apply style as, flex-col in the mobile view and flex-row in desktop view
2
Answers
When you’re in-line styling the element try something like this
sm
md
andlg
will use@media
queries for each respective breakpoint which, by default – I believe – are set to 640p, 768px, and 1024px.It’s common practice to style smaller views first as they, tend to, need more fine-tuned styling. Keep in mind you can override styles like this:
If you want to apply your own breakpoints, then do the following:
Tailwind CSS encourages this mobile-first approach.