Why only support mt-1.5 and but not mt-1.2, mt-1.6 etc #15702
Replies: 3 comments 3 replies
-
What "other" are you referring to? I believe the bare values support increments of |
Beta Was this translation helpful? Give feedback.
-
Supporting |
Beta Was this translation helpful? Give feedback.
-
@adamwathan First of all, thank you for creating such a wonderful tool. I'm a heavy user of Tailwind CSS. Like @anhdd-kuro, I would also like to see support for values that aren't divisible by 0.25. @theme {
--spacing: 0.0625rem; /* 1px */
}
@utility text-* {
font-size: calc(--value(number) * var(--spacing));
line-height: calc(--modifier(number) * var(--spacing));
line-height: --modifier([length], [*]);
} I have set up font size utilities like this, and I need to use utilities like I think it's fine that the default settings are in 0.25 increments, but at lease it would be nice to have an option for users to disable this. From what I can see in the source code, it doesn't seem possible to make a simple plugin to change this either. |
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.
-
I see that v4 supports
mt-1.5
but not the other. Why is that? Are there any problems?If the generated css become
I can't see any problem with other numbers then. Or maybe this is a bug ?
Beta Was this translation helpful? Give feedback.
All reactions