title: Using tailwindcss in custom angular library
body: <p>I am using Angular 12 to create a custom library. In this library I want to use tailwindcss to style my custom component. I declared tailwindcss an a peer dependency and created the tailwinscss.config.js file in the root of the library folder and imported all necessary modules into the scss file of the component. Unfortunately tailwind classes are not loaded.</p>
  <p>Then I noted that if my application where I import my library into also uses tailwind and uses any class that is also used in the library, the custom component is styled correctly.</p>
  <p>For example: my custom component has class <code>bg-green-800</code>. When I load this component in my app, it does not apply the background color. Then I create an element in my app and also apply <code>bg-green-800</code>. From now on both element and custom component show the correct background color.</p>
  <p>Is there a way to use tailwindcss in a custom angular library?</p>