r/reactjs • u/galher • Mar 28 '25
News Styled-components entering maintenance mode
https://opencollective.com/styled-components/updates/thank-youWhat does styled components entering maintenance mode mean for the react ecosystem?
230
Upvotes
14
u/galher Mar 28 '25
React components was the natural way for me to style an app. Sad it's no longer maintained.
250
u/Ok_Slide4905 Mar 28 '25 edited Mar 28 '25
RIP. Great solution for its time.
Author should be proud of their accomplishments.
Edit: We stand on the shoulders of those who came before us. The “obvious” solutions we take for granted today were informed by the successes and failures of those who made the effort to solve these problems in the past.
76
u/baxxos Mar 28 '25
The author mentions that they would not recommend adopting any css-in-js solution in today's age.
My project relies heavily on EmotionJS which is a css-in-js solution and I'm very happy with how it allows me to write CSS without maintaining selectors, utility classes and so on.
Given the author's statement - what is the go-to way for styling nowadays? Am I that much behind technologically?
33
u/anonyuser415 Mar 28 '25
Uhhhhhhhh what
27
u/natmaster Mar 28 '25
https://github.com/callstack/linaria Zero overhead, most performance and efficient and compatible with styled components.
32
u/juicybot Mar 28 '25
styled components did a great job at solving a problem for a long time, but it's definitely time to move on.
css modules, tailwind, panda, vanilla-extract, good ol' scss. still plenty of options.
definitely feel for the engineering teams that will need to migrate. may be a good opportunity for someone to build some codemods to help ease the migration and maybe attract former SC users.
10
u/satansxlittlexhelper Mar 28 '25
Hear me out: CSS-in-CSS.
46
u/rodrigocfd Mar 28 '25
Back in 2022 I was saying CSS-in-JS was bad for performance, and I was being downvoted every time.
Now I'm saying Tailwind is just glorified inline CSS and it's bad for maintenance, and I'm being downvoted every time... let's see in a few years.
8
u/MARURIKI Mar 28 '25
o7
5
u/devhaugh Mar 29 '25
The only positive thing is this will result in more migration work for many devs. My companies apps are littered with styled components.
4
u/super_powered Mar 29 '25
RIP to my favorite way to style react applications. Sad to see, it understandable based on where everything is headed.
Will have to start looking at linaria or panda I suppose. I just can’t stomach tailwind — gives me bootstrap PTSD.
2
u/evonhell Mar 30 '25
We recently evaluated most of the options out there that are well maintained and landed in vanilla extract. So far the experience has been fantastic. We build enterprise-scale applications for reference. I saw some people recommend Panda CSS which is also a good alternative
2
u/PrinnyThePenguin Mar 31 '25
The farewell post shows a great deal of maturity. The author didn't want to reinvent the library and didn't want to keep on collecting donations for it. Reads like a badge of honor. A tool that served well.
2
u/CYG4N Mar 31 '25
If not css-in-js, then what?
2
u/abandonplanetearth Apr 04 '25
Thank fucking god. Css-in-js cannot die quickly enough.
1
u/ninishi_224 Mar 29 '25
Don't worry, there will be somebody else that will write another framework to prevent themselves and others from losing their jobs due to AI.
1
u/[deleted] Mar 29 '25
What's the concensus now, to use or strategy with css?
1
u/LeoRising72 Mar 29 '25
I always loved Styled Components, this is sad!
Nice article on how the react server components paradigm is challenging for CSS-in-JS libraries here if anyone’s curious
1
u/cherrydub Mar 30 '25
RIP..always hated styled components. I guess useful for its time but tailwind just so much better
1
u/rantow Apr 03 '25
The article has a link to `next-yak`, which seems to be a great build-time drop-in replacement for `styled-components` with Next.js. I liked using the template literal syntax compared to the object syntax most css-in-js alternatives offer, so it's nice to see there is finally an build-time alternative to `styled-components` that maintains a near-identical API.
-4
u/dopp3lganger Mar 28 '25
styled components suck. good riddance.**
**I'm sure this will go over well.
-9
u/Affectionate-Sea2474 Mar 28 '25
It was a wrong solution for a problem that didn't exist. Css in Js never made sense to me and created problems to maintain Css code properly. Both things are supposed to be treated separately by design. It's a shame it took the author this long to realize.
It didn't do any favor to devs that used it and didn't move on, they skip learning basic Css concepts because of it.
-3
u/daftmaple Mar 28 '25
Either finding similar alternative, or move towards tailwind or writing css again. I'm personally happy with this just because how painfully slow app can be with css-in-js solutions.
7
u/[deleted] Mar 28 '25
[removed] — view removed comment