postcss-ng-tailwind-in-components
v0.0.4
Published
PostCSS plugin to instruct angular emulated encapsulation with tailwind @apply function
Downloads
1,879
Maintainers
Readme
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;
}