@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
20 lines (17 loc) • 489 B
JavaScript
;
/**
* Util to add background on hover for component `button`.
*
* @param helpers - The {@link TailwindHelpers} to generate CSS.
* @returns The {@link CssStyleOptions} for the util.
*/
function backgroundOnHover(helpers) {
const { theme } = helpers;
return {
'&:hover': {
borderColor: theme('x.colors.neutral.10'),
backgroundColor: theme('x.colors.neutral.10'),
},
};
}
exports.backgroundOnHover = backgroundOnHover;