Replies: 3 comments
-
See #3720 (comment) |
Beta Was this translation helpful? Give feedback.
-
I was a bit confused by this too when I first started using Tailwind. Basically, the prefixes reflect how the class is used, not the exact CSS property.
So even though The docs show this pattern too:
Hope this clears it up a bit! 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you both for the comments! That does help give me some context for some of the decisions made. Appreciate it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is more of a curiosity question, but why does Tailwind use different prefixes for typography?
text-*
for color, size, alignment, etc.font-*
for weight, family, etc.italic
doesn't have a prefixWould it make sense to group all these typography-related properties under
text-*
?Is there a technical distinction between
text
andfont
that makes sense of the division?There didn't seem to be a pattern because
font-size
is prefixed undertext-*
andfont-weight
is prefixed underfont-*
.Mostly wondering about the idea/rationale behind the concept!
Beta Was this translation helpful? Give feedback.
All reactions