postcss-ng-tailwind-in-components

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i postcss-ng-tailwind-in-components

Weekly Downloads

383

Version

0.0.4

License

MIT

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • vl.tansky