DEV Community

Cover image for Tailwind CSS plugin for hover/active states
Mykolas Mankevicius
Mykolas Mankevicius

Posted on

Tailwind CSS plugin for hover/active states

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay