@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
18 lines (15 loc) • 483 B
JavaScript
import { mapColors } from '../../utils/map-colors.js';
/**
* Returns the `color` variants for component `button`.
*
* @param helpers - The {@link TailwindHelpers} to generate CSS.
* @returns The {@link CssStyleOptions} for the variant.
*/
function buttonColors(helpers) {
return mapColors(color => ({
'--button-color-25': color['25'],
'--button-color-50': color['50'],
'--button-color-75': color['75'],
}), helpers);
}
export { buttonColors };