PostCSS use Tailwind CSS functions in Angular components
PostCSS plugin that make Tailwind CSS function with parent selectors (like dark:) work in Angular components
plugins: [
require('postcss-ng-tailwind-in-components')({ parentSelector: '.dark'});
]
result:
.dark .test {
color: red;
}
transforms to:
.dark .test, :host-context(.dark) .test {
color: red;
}