@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
20 lines (16 loc) • 519 B
JavaScript
;
var mapColors = require('../../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.mapColors(color => ({
'--button-color-25': color['25'],
'--button-color-50': color['50'],
'--button-color-75': color['75'],
}), helpers);
}
exports.buttonColors = buttonColors;