Replies: 1 comment 1 reply
-
The idea is definitely understandable, but I’m not sure it fully aligns with Tailwind’s design philosophy. Classes like Interestingly, this also mirrors how CSS works -->you can define font weights using either numbers ( That said, having something like |
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.
-
Font weights are often specified numerically (e.g., 400, 500) in design tools like Figma or existing codebases. Remembering which number maps to which Tailwind class name (e.g.,
font-medium
) can be mentally taxing.It would be helpful if typing something like
font-7
triggered a suggestion likefont-bold
[font-weight: 700;
] making it easier to convert numeric weights into Tailwind utilities without memorizing the mapping.A simple solution could be to add alias utilities with numeric suffixes, such as
font-bold-700
, so they show up in fuzzy search when typingfont-7
.Beta Was this translation helpful? Give feedback.
All reactions