S
SolidJS10mo ago
aryzing

How to build styled Web Component with a CSS library?

Solid's solid-element is great for building Web Components. Styles inlined on components work just fine. However, when the component starts getting complex, it's helpful to make use of some sort of CSS library. When building with Vite, many of the CSS libraries output CSS files or inject code that injects the styles in the DOM (which don't penetrate the shadow DOM boundary). What's the best way to handle styles when building a Web Component with Solid?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server