---
title: "Comment by Patrick Walther on \"Using tailwindcss with web components and ShadowDOM in LitElement\" | Hashnode"
description: "One 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 CS"
url: "https://hashnode.com/posts/using-tailwindcss-with-web-components-and-shadowdom-in-litelement/6372143ca49f113eedbc36ad/comment/6424408e509c0c9e8981b0ca"
---

[Discussion](https://hashnode.com/posts/using-tailwindcss-with-web-components-and-shadowdom-in-litelement/6372143ca49f113eedbc36ad)

Comment [Using tailwindcss with web components and ShadowDOM in LitElement](https://hashnode.com/posts/using-tailwindcss-with-web-components-and-shadowdom-in-litelement/6372143ca49f113eedbc36ad)

[Patrick Walther](https://hashnode.com/@r3dDoX)

[Mar 29, 2023](https://hashnode.com/posts/using-tailwindcss-with-web-components-and-shadowdom-in-litelement/6372143ca49f113eedbc36ad/comment/6424408e509c0c9e8981b0ca)

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