Variants factory
The variants factory plugin creates simple custom variants on the go and simply is a shorthand for addVariant
Tailwind plugin default functionality.
Configuration
The plugin can be configured with the theme.customVariants
property:
module.exports = {
theme: {
customVariants: {
children: '& > *', // like addVariant('children', '& > *')
},
},
};
Â
Â
Â
TIP
You should add new custom variants to your project via the theme.extend
property to not override these defaults.