News for hackers. Stuff that matters.
Re:TailwindCSS v2.0 by iaml on Thursday November 19, 2020 @03:18AM (#25147329)
There's another approach that is more rooted into react paradigm - styled-components. I still don't understand what people see in tailwind as most of the arguments I see in this thread could also be applied to it, but you also get type-checking (typescript), theming, ecosystem of plugins and a lot of other cool things.
Re:TailwindCSS v2.0 by mercer on Saturday November 21, 2020 @07:41AM (#25169380)
I agree that styled-components takes care of a bunch of issues that make some of us reach for Tailwind.

However, aside from requiring a very specific tech stack, it doesn't solve the problem of every component potentially having slightly differing styles. There's ways to handle this, but one thing I like about Tailwind is that the defaults are stronger across components, while still leaving space to deal with all the one-offs.

Re:TailwindCSS v2.0 by iaml on Friday November 27, 2020 @05:37AM (#25227424)
I believe in some environments (when you have designs already) building off normalize+react-aria(for logic) and thought-out architecture could be as productive as tailwind, especially if you already have some helper functions on-hand. For me, storing mixins for common behaviours inside theme allows to construct lightweight variations where I need them, and you can dynamically modify it in react.