JSPM

postcss-ng-tailwind-in-components

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 339
  • Score
    100M100P100Q99470F
  • License MIT

PostCSS plugin to instruct angular emulated encapsulation with tailwind @apply function

Package Exports

  • postcss-ng-tailwind-in-components

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-ng-tailwind-in-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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