Hacker News new | ask | show | jobs
by Loeffelmann 975 days ago
I don't understand why tailwind would force you to write more divs then CSS. How do selectors solve the problem of how many elements you need to use to achieve the same design?
1 comments

Extra divs are wrappers that help you style the parent element to add flex layouts for example. Or why do you think the official Tailwind template has so many nested divs with utility classes?
Sure but how would normal css make it so you don't have to use those?
Maybe check out the semantic CSS example using developer console:

https://nuejs.org/@spotlight/