UNPKG

@empathyco/x-tailwindcss

Version:
24 lines (21 loc) 575 B
'use strict'; /** * Default dynamic utility styles. * * @param helpers - A set of tailwind helpers to create the dynamic utilities. * @returns All the styles for each utility and the values they are going to be generated with. * * @public */ function dynamicUtilities({ theme }) { return { // TODO: replace this example styles with actual design styles 'font-util': { styles: (value) => ({ fontSize: value, }), values: theme('x.spacing'), }, }; } module.exports = dynamicUtilities;