Tailwind CSS plugin for hover/active states



This content originally appeared on DEV Community and was authored by Mykolas Mankevicius

The problem:

I need a card with a main action on hover of the card, but it also can have secondary actions, and working on those actions shouldn’t cause the main card styles to change

The solution:

I’ve created a plugin for tailwind

Here is the link to the gist with all the required info:

https://gist.github.com/Neophen/2f512ace1e7182e5346076333e4a0fdc


This content originally appeared on DEV Community and was authored by Mykolas Mankevicius