Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vltansky/postcss-ng-tailwind-in-components


https://github.com/vltansky/postcss-ng-tailwind-in-components

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

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

```js
plugins: [
require('postcss-ng-tailwind-in-components')({ parentSelector: '.dark'});
]
```

result:

```css
.dark .test {
color: red;
}
```
transforms to:
```css
.dark .test, :host-context(.dark) .test {
color: red;
}
```