Hacker News new | ask | show | jobs
by TeeWEE 3959 days ago
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

1 comments

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