DEV Community

loading...

Discussion on: TailwindCSS vs Styled-Components in ReactJs

Collapse
almarrr profile image
Almar Groenewald

I'm using a combination, works like a charm!

Collapse
willholmes profile image
Will Holmes Author

What was your use case for using a combination of both of them?

Collapse
almarrr profile image
Almar Groenewald

There are times when I need animations and other complex stuff which isn’t in Tailwind. Then I like the styled component syntax for hovers etc. Also it improves the readability of my code, like Is very clear. And I also can add class names to it from tailwind.

Thread Thread
willholmes profile image
Will Holmes Author

Ahhhh I like that! Throughout building my Tailwind app I've noticed the lack of animations and have had to resort to CSS. But never thought to combine the two! I like the approach!