Replies: 1 comment
-
I too am interested in this! I am definitely using tailwind for my next project but ideally I would like to use it with blazor component isolation as well. Blazor auto builds CSS by looking for
So I am wondering if we can use gulp to watch for e.g. MyComponent.razor.scss files that contain @apply rules and spit out postcss processed .css files that sit next to the original scss files? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the release of .Net 5.0, Microsoft introduced the concept of isolated CSS. Meaning, one can write a "component" which encapsulates some small HTML markup, and further one can attach a CSS file directly on the component and the CSS is "Isolated" to that component.
So, if I have a "Card.razor" component which represents a header and a body I could have "Card.Razor.css" attached to it where I defined the styles which apply to the card.
The issue with the above approach is that the @apply does not seem to do anything in the isolated css files.
Is there a way to configure the Tailwind processor to crawl the solution and look at ALL css files for things with the @apply directive?
Beta Was this translation helpful? Give feedback.
All reactions