BLACK LIVES MATTER
Be aware. Be angry. Do better. Demand change. Show your support any way you can. Click on the link above to find protests, petitions, and other ways to help. DO NOT LET IT GO SILENT.
Interaction Variants Plugin for Tailwind CSS
Requirements
This plugin requires Tailwind CSS 1.2 or later. If your project uses an older version of Tailwind, you should install the latest 2.x version of this plugin (npm install tailwindcss-interaction-variants@2.x
).
Installation
npm install tailwindcss-interaction-variants
Usage
// tailwind.config.jsmoduleexports = theme: backgroundColor: 'black': 'black' variants: backgroundColor: 'group-focus-within' 'group-focus-visible' 'group-active' 'group-visited' 'group-disabled' 'hocus' 'group-hocus' 'can-hover' 'no-hover' plugins: ;
The above configuration would generate the following CSS:
{} {}