PWThere are different approaches to that currently. Since we are using lit to write our custom elements we would probably use their packages that allow ssr: https://lit.dev/docs/ssr/overview/ But currently we are not doing any ssr.Reply·Article·Apr 19, 2023·Finally, custom form elements that don't suck!
PWOne optimisation we did in the meantime was to pull unsafeCSS out into a baseComponent so it is only ran once. In the solution above unsafeCSS will parse the CSS for every component, which is unnecessary.Comment·Article·Mar 29, 2023·Using tailwindcss with web components and ShadowDOM in LitElement
PWThank you! Yeah that makes sense since they pierce through the ShadowDOM. We use them too in our component library for that use case.Reply·Article·Nov 1, 2022·Moving from Sass to CSS variables to implement Dark Mode