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