0.0.4 • Published 4 years ago

postcss-ng-tailwind-in-components v0.0.4

Weekly downloads
1,236
License
MIT
Repository
github
Last release
4 years ago

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;
}