Posts, a community app by Read.cv

Thread
Logan Liffick

Tailwind, styled components, or both 🤔

Nate Dunn
Replying to @loganliffick

Very different approaches, so using the together might be more trouble than it's worth. Imo, Tailwind offers 90% of what you need, especially with arbitrary values. tailwindcss.com/docs/adding-cu…

Adding Custom Styles - Tailwind CSS
Best practices for adding your own custom styles to Tailwind.
John Eatmon
Replying to @loganliffick @natedunn

Have you looked into Class Variance Authority? Plays nicely with TW

Logan Liffick
Replying to @johneatmon @natedunn

Also update on the tailwind v styled front: tailwind eats styled for lunch. This is how ive wanted to build for years 👏 Variants looks slick too, that’s sort of how I used to run styled in components to conditionally cut down on exports.

Nate Dunn
Replying to @loganliffick @johneatmon

Pretty rare to hear someone catch on right away. Usually it take some time. 🤭 but I’m glad you like it!

Logan Liffick
Replying to @natedunn @johneatmon

I grew up on bem so not suuuuper new to utility class css but this is so much better 😊