@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
19 lines (16 loc) • 472 B
JavaScript
import { textSizes } from './sizes.js';
/**
* Returns the default styles for component `text1`.
*
* @param helpers - The {@link TailwindHelpers} to generate CSS.
* @returns The {@link CssStyleOptions} for the component.
*/
function textDefault(helpers) {
const { theme } = helpers;
return {
fontFamily: theme('x.fontFamily.main'),
fontWeight: theme('x.fontWeight.regular'),
...textSizes(helpers).md,
};
}
export { textDefault };