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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    393
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    393
  • 0.0.3
    54
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i postcss-ng-tailwind-in-components

Weekly Downloads

447

Version

0.0.4

License

MIT

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • vl.tansky