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
Many utilities in Tailwind share a common namespace but map to different CSS properties. For example text-lg and text-black both share the text- namespace, but one is for font-size and the other is for color.
[…]
In these situations, you can “hint” the underlying type to Tailwind by adding a CSS data type before the value:
Many utilities in Tailwind share a common namespace but map to different CSS properties. For example text-lg and text-black both share the text- namespace, but one is for font-size and the other is for color.
[…]
In these situations, you can “hint” the underlying type to Tailwind by adding a CSS data type before the value:
Activity
wongjn commentedon Aug 13, 2024
As per the documentation for v3 (but still relevant for v4):
So for your example, we can add
lengthtype hint likeborder-b-[length:var(--spacing-4)], see https://play.tailwindcss.com/sdp5nlRpvw.sntran commentedon Aug 13, 2024
Ah yes! I remember seeing that documentation, but could not find it in time. Thanks!