UNPKG

@empathyco/x-tailwindcss

Version:
20 lines (17 loc) 489 B
'use strict'; /** * 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;