Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The way I see it, the problem is the C in CSS. If you rely on `.author-bio > h2`, then every time you make a change to `.author-bio`, you have to consider all the contexts in which this class may be used globally in your site, and if you change the styles for `h2` even more so. Sure you can say you encapsulate every context with a globally unique id, but since you’re probably already using some kind of templating system for you HTML, it’s easier to specify the styles there. It’s basically the difference between having variables scoped global vs. local by default.


The « > » part should not be necessary 90% of the time.

And while using Tailwind, I still have to know where I include my components. I still need to test different instances in different places.

With that in mind, I don't see the added benefit of Tailwind here (again, other than limiting the damage done by careless devs). Maybe I'm missing something?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: