tailwind w- h- custom value's

Hello all, how often do you guys utilize custom value's over w-2 h-3? I see myself using them everywhere, but sometimes it just doesn't seem to feel right like there is an in-between that is missing and it makes me feel like I'm straying from the path
4 Replies
Ramsay
Ramsay15mo ago
Tailwind's default sizings were carefully chosen to lead to a consistent design. Obviously it's fine to use custom values when the default ones aren't working but as a general rule you should probably stick to the default sizings unless you know what you're doing as a designer
djcmurphy
djcmurphy15mo ago
If you want to center stuff and have trouble getting it pixel perfect with padding alone, maybe use flex with justify-center & items-center.
word
word15mo ago
Well, I don't know if that's what you're seeking, but you might be missing 0.5, 1.5, and so on up until 2.5. Apart from this, there really are situations in which a small adjustment, more precise and particular, is necessary. If you could point out some use cases, I could share some thoughts.
Mediocre
Mediocre15mo ago
If you are using custom values then I'd suggest adding those to the tailwind config to keep everything visually consistent.
Want results from more Discord servers?
Add your server
More Posts