Roast my icon hover states: build or borrow?
Rebuilding the sidebar for our Next.js SaaS dashboard. Static icons looked flat against the gradient, so I added hover states. First tried rolling my own CSS animations—ended up duplicating classes and breaking the design system’s timing. Then copied SVG paths into framer-motion components, but the motion curves never matched. Finally used ItsHover, swapped the color prop, and it just worked. No extra CSS, no extra bundles.
But now I’m stuck: should hover states for icons be part of the design system, or is it okay to pull in a library for motion? I’m torn between keeping the stack minimal and not reinventing the wheel for every edge case. Plus, I’m worried the motion curves won’t hold up across browsers.
How do you handle icon hover states in your stack?