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