|
|
|
|
|
by matthewmacleod
1814 days ago
|
|
Yes. I've most commonly seen it used for exactly that purpose – people who have no interest in knowing CSS but need to style something. I think this is probably one of the most common sources of complaints. Some people who already know CSS in-depth will see Tailwind being endorsed by others, take a look themselves, and come to the conclusion "why on earth would I ever use this". I totally understand that, because it's how I feel. But it's important to remember that people still want to style things without being CSS experts, and one of the things Tailwind is good at is letting that happen. It clearly fills a need and yelling at the proverbial clouds isn't going to help. |
|
But for the life of me I could never come up with a consistent set of rules like margins, paddings, colors etc.
Tailwind is a mini design system on its own (even if it's "just a utility-first CSS framework"). I don't have to spend too much time thinking which margins to add or set the typography right. Set an `m-2` and a `text-sm`, and you're done :)
All/Most of that can definitely be replicated with, say, CSS vars, but then you're back to "okay, how do I consistently name these components".