@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
27 lines (24 loc) • 695 B
JavaScript
;
/**
* Default utility styles.
*
* @param helpers - A set of tailwind helpers to create the utilities.
* @returns All the styles for each utility.
*
* @public
*/
function utilities({ theme }) {
return {
// TODO: replace this example styles with actual design styles
'.x-border-large': {
borderStyle: 'solid',
borderWidth: theme('x.borderWidth.4'),
borderColor: theme('x.colors.neutral.100'),
},
// This is here to not include it in the bundle if it is not being used
'.x-disable-icon-offset *': {
'--enableIconOffset': 'var(--OFF)',
},
};
}
module.exports = utilities;