Hacker News new | past | comments | ask | show | jobs | submit login

I agree with you, however the only way to really componentize (decouple) your css from the rest of the webapp is to use the shadowdom.

In Web Components writing specific CSS for a component is fine. And it wont pollute or over-rule your other css rules. Since its the shadowdom




Or you could use CSS modules: https://github.com/css-modules/css-modules




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

Search: