You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this does a great job out of the box for articles. That said, I also use prose for a lot of other places on our sites and the leading often feels like too much when its a smaller amount of content.
I think by default the leading is 1.75em. I'd prefer to set that to 1.5em but that is hardcoded in tailwind typography. Prose exposes other variables with the --tw-prose variable. Would be nice to get a --tw-prose-leading variable that we could use to adjust typography to our preferences. I haven't looked at how this would work with the different sizes like prose-lg though and if the leading stays the same. If not maybe a leading scale global that could adjust all leadings like --tw-prose-leading-modifier: 0.9 that gets multiplied with the leading value.
Right now, I do just put custom leading-* classes on all of my prose elements, but it would be great to have a way to just globally override this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I think this does a great job out of the box for articles. That said, I also use prose for a lot of other places on our sites and the leading often feels like too much when its a smaller amount of content.
I think by default the leading is 1.75em. I'd prefer to set that to 1.5em but that is hardcoded in tailwind typography. Prose exposes other variables with the
--tw-prose
variable. Would be nice to get a--tw-prose-leading
variable that we could use to adjust typography to our preferences. I haven't looked at how this would work with the different sizes likeprose-lg
though and if the leading stays the same. If not maybe a leading scale global that could adjust all leadings like--tw-prose-leading-modifier: 0.9
that gets multiplied with the leading value.Right now, I do just put custom
leading-*
classes on all of my prose elements, but it would be great to have a way to just globally override this.Beta Was this translation helpful? Give feedback.
All reactions