Variants
Hover states
You can use the h:
variants in order to target the :hover
function across the entirety of the Yumma CSS utility classes.
For instance, if you want to apply the bg-pink
class on hover, you can use the h:bg-pink
class.
Move the mouse over the button to see how the background color changes.
In this example, we have a button component using the :hover
utility class, which in this context is being used to change the bg-pink
to bg-d-pink-2
when the user hovers the mouse over the element.