DEV Community

Discussion on: Building a Tailwind CSS toggle/switch component

Collapse
 
dgonzalezr profile image
Dabiel González Ramos • Edited

I would say it all depends on how used to we are. If you think about it, when you have a “normal” CSS methodology, what you would do to understand the styles applied? You look for the class name in the CSS rules declaration and then look at all the rules there, right? Well, the difference with TW is that you read the styles applied in the markup instead, since every single class has only one specific purpose, as each CSS rule would have on the other way around.

Collapse
 
jt3k profile image
Andrey Gurtovoy

you can get used to taking off your pants over your head, but why?