2,285 views
Shopify
adam@shopify
notecss

Did a deep dive to see if StyleX would work at Shopify.

Turned out to be a wash, similar to my other explorations into OOCSS.

7 comments #

366likes
10reposts

Join the conversation on

@argyleink A migration is only worth it if the gains outweigh the tradeoffs. If agents already handle CSS Modules well and StyleX forces you to lose flexibility, it’s hard to justify the switch.
ShubhShubh
@argyleink "more deterministic" mostly pays off when the old thing was breaking. if agents and humans already ship fine on CSS Modules, you're buying a solution and renting a 10% rewrite with it 🙃
Dusan OdalovicDusan Odalovic
@aykev @argyleink Thanks for the info. My original tweet was more aimed at the vast majority of apps (like the ones I work with) that are not anywhere near fb size. A lot of people adopt layers of complexity when the baseline features of CSS are now excellent (and getting better). Of course the
Sav TripodiSav Tripodi
@argyleink i love how you elaborated on wash
VLAD ARBATOV ㊙️VLAD ARBATOV ㊙️
@argyleink Same tradeoff shows up in icon components: deterministic styling helps, but not if it limits adaptive tokens or cross-framework theming.
SVG IconsSVG Icons
@argyleink Ohhh this is from 2023 damn. I think 2 weeks I was going to suggest this to someone as a concept that I didn’t think existed I think stylex has updated a few things since then but I wonder if this still is the same fundamentals @stylexjs
abstractionsabstractions
@abstractlysaid @argyleink The fundamentals are the same. We’ve basically had no breaking changes.
StyleXStyleX