leading-normal
should have apply line-height: normal
and not line-height: 1.5
#13200
Replies: 3 comments 2 replies
-
Hey! The names and values are some defaults we chose, if you want you can override More info: https://tailwindcss.com/docs/line-height#customizing-your-theme Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@RobinMalfait I know this, but still I wonder if the defaults are right for this property. Maybe it could be reconsidered for Tailwind v4 since it would obviously be a breaking change. Here is how I've set it up, which is more logical imho:
|
Beta Was this translation helpful? Give feedback.
-
@mrleblanc101 Yeah I think it is a regrettable name, and in hindsight I think I actually would never have included the relative values we have (like "tight", "loose", "normal", etc.) because in our own projects we only use the fixed values. I'm hesitant to change it though just because of it being a significant breaking change 😕 Even when we do a major version I try to be very conservative with breaking changes — we're "allowed" to do them of course but they cause people a lot of headache. I think if we made a change here I'd probably remove all of the named values and include a snippet in the upgrade guide for bringing them back. Will throw it on my list of stuff to consider before we ship a stable release 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
3.4.1
What build tool (or framework if it abstracts the build tool) are you using?
vite 5
What version of Node.js are you using?
20
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
A Tailwind Play link or public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.
A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.
Describe your issue
Confusingly,
leading-normal
applyline-height: 1.5
instead ofline-height: normal
.There is no way to opt into the font file default line-height.
You can always use
leading-[normal]
, but that seems weird.I think
line-height: 1.5
should be renameleading-regular
or something similar ?Beta Was this translation helpful? Give feedback.
All reactions