Post

Yes but unfortunately many people still don’t recognise that the problem it was meant to solve is still relevant.

0 reposts1 like

Attaching styles to html elements. We don’t really have a good way to do that today. CSS modules are ok, but you still have to create two files just to make a button. Vue and Svelte are much better, but there isn’t an equivalent for React to my knowledge.

And it's fast, simple, & forward compatible with new CSS features because it's just CSS: 1. Write CSS in a css`...` tag 2. A small helper creates a constructible stylesheet from it 3. New element instances attach the stylesheet to their shadow roots Fully compatible with native CSS modules too.