+ 1

How to use all: revert; in tailwind

I want to revert all styling when screen size reach certain point and how to do that in tailwind

16th Jan 2022, 1:04 AM
EsaKurniawan
1 Réponse
+ 6
I'm not sure if it's possible to reset everything when the screen size changes using tailwind only. In real world projects we use the "mobile first" approach: 1. add styles for mobile screens 2. add styles for wider screens using modifiers: sm, md, lg etc. https://tailwindcss.com/docs/responsive-design Take a look at my code. You will see that I use "md:", "lg:" prefixes for classes for wider screens. https://code.sololearn.com/Wbx9QFDYoK94/?ref=app
24th Jan 2022, 9:38 AM
Igor Makarsky
Igor Makarsky - avatar