@viget/tailwindcss-plugins
Version:
A collection of custom plugins for Tailwind CSS.
34 lines (26 loc) • 564 B
Markdown
This plugin adds parent-expanded variants to Tailwind. This is useful for accessibility approaches using `aria-expanded="true"`.
```js
const plugins = require('@viget/tailwindcss-plugins')
module.exports = {
theme: {
rotate: {
'180': '180deg',
},
},
plugins: [
plugins.parentExpanded,
// ...
],
}
```
The above configuration would create the following css:
```css
.rotate-180 {
--transform-rotate: 180deg;
}
[] .parent-expanded\:rotate-180 {
--transform-rotate: 180deg;
}
```