Hacker News new | ask | show | jobs
by beepbooptheory 774 days ago
Maybe I'm the minority here, but with something like Vite I can import a css file directly into a given component's file and call it a day. Haven't worried about scoping in forever, and only need to manage a number of distinct, small, and comprehensible css files.
2 comments

But they're still separate files. You still have your markup in one place and your CSS in another place, and you need to solve the hardest problem in computer science (naming things) any time you make substantial changes. I think Tailwind has some shortcomings, but I really like that styling and markup live together.
Tailwind kills the scoping problem too

I went through a very similar story to the author and ended up with the same conclusion. Once I tried it, everything else felt terrible