Using tailwindcss with web components and ShadowDOM in LitElement
We recently wanted to use tailwindcss to help developers at one of our customers create maintainable
and scalable styling. At the same time we were creating web components for a design system. This
raises one big issue with tailwind since we were goi...
software-engineering-corner.zuehlke.com4 min read
Patrick Walther
Lead Software Architect @ DSI Engineering
One optimisation we did in the meantime was to pull
unsafeCSSout into a baseComponent so it is only ran once. In the solution above unsafeCSS will parse the CSS for every component, which is unnecessary.