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...

Markdown supported · ⌘↵ to post
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.