My bud.config.js
has .useTailwindFontSize()
enabled. The Tailwind sizes all show up on the backend fine - I can select (for example) 6xl
and apply it to a paragraph element. On the front, the text appears with the correct class - has-6-xl-font-size
. However, the size changes but the line height doesn’t, making this approach unusable without custom CSS.
Backend:
Frontend:
To get it to display properly I have to add this as custom CSS which seems a bit odd:
.has-6-xl-font-size {
@apply text-6xl;
}
Is it supposed to be like this?
Is it possible to sort this somewhere in a config file so that the Tailwind sizes output different line heights too?