|
|
|
|
|
by namuol
4021 days ago
|
|
Like most CSS tooling, this is a treatment for a symptom of an underlying disease: the inherently global nature of CSS[1]. Rather than "blob" all your CSS together, and then "de-blob" it, why not build your CSS dynamically based on what components your app is using? [1] I strongly encourage you to watch this talk: https://vimeo.com/116209150 |
|
The reasons people are running into problems with global css scope is because they don't understand the basics of how to write effective and maintainable CSS. Seems like many front end devs nowadays grew up with css hand-holding libraries like bootstrap, and can't seem to wrap their heads around completely necessary things like taking account for CSS specificity and how the cascade works and how to use it to your advantage.