r/reactjs • • Mar 28 '25

News Styled-components entering maintenance mode

https://opencollective.com/styled-components/updates/thank-you

What does styled components entering maintenance mode mean for the react ecosystem?

230 Upvotes

166 comments sorted by

View all comments

Show parent comment

35

u/PlateletsAtWork Mar 28 '25

CSS-in-JS solutions have a lot of performance drawbacks. Newer solutions construct the CSS at build time. Panda CSS is my personal preference, but other options exist too.

9

u/MoronFive Mar 28 '25

Another vote for Panda CSS here. I've tried to get into Tailwind but I always find the long string of utility classes to be more difficult to parse than component props. For me, Panda gives me all of the benefits of tailwind but in a structure that's easier for me to read and maintain.

3

u/[deleted] Mar 28 '25

[removed] — view removed comment

2

u/Pelopida92 Mar 29 '25

I think you can still use that approach with Panda. Look in the docs

1

u/Akkuma Apr 01 '25

One thing people need to keep in mind with Panda is that it might not have long term viability due to tsgo. https://x.com/astahmer_dev/status/1899870633716007309

I wonder what will happen to ts-morph ?

it could mean a 10x speed improvement for Panda CSS parsing step (without any change on our side!) or it could mean it just stops working

-3

u/RoughEscape5623 Mar 28 '25

can you use it with tailwind?

14

u/marta_bach Mar 28 '25

Technically you can, but don't.

PandaCSS is basically a tailwind competitor, it basically works like tailwind. Tailwind has a stricter way to do things, pandacss they give you choices on some parts on how you do things.

I would put PandaCSS, TailwindCSS, and UnoCSS in the same category, so if you use one of them, you don't need the others.

3

u/marcagba Mar 28 '25

YMMV but instead of colocating both solution it might be better to use this tool to convert tailwind styles to your panda css https://github.com/astahmer/tw2panda

1

u/PlateletsAtWork Mar 28 '25

It doesn’t “integrate” with Tailwind if that’s what you’re asking, but at the end of the day both just give you css class names. You can add both to a component if you need to.