Twitter | Search | |
Kye Hohenberger
The future of css-in-js is going to look something like styled-system with its responsive values. Source for Box 👇
Reply Retweet Like More
Ben Adam 6 Sep 17
Replying to @kyehohenberger
I actually disagree ... We went really far down this road and the downfall is it requires learning a pseudo css lang on top of actual css
Reply Retweet Like
Ben Adam 6 Sep 17
Replying to @benadam11
this made the cost of learning for new devs we were trying to onboard to our system high ... we moved back to style objects
Reply Retweet Like
Kye Hohenberger 6 Sep 17
Replying to @benadam11
That is an interesting take. I would think this would be simple enough to catch on. At small size and up use this value and so on...
Reply Retweet Like
Ben Adam 6 Sep 17
Replying to @kyehohenberger
as long as the prop values correlate to the same css values you should be fine - it gets confusing when they are similar but different
Reply Retweet Like
Kye Hohenberger 6 Sep 17
Replying to @benadam11
Do you use the css prop or just have a styles var at the top level?
Reply Retweet Like
Ben Adam 6 Sep 17
Replying to @kyehohenberger
we use the css prop (w/ cxs)
Reply Retweet Like
Kye Hohenberger 6 Sep 17
Replying to @benadam11
🏎 mode
Reply Retweet Like
Rafał Filipek 6 Sep 17
Replying to @kyehohenberger
Totally! Right from my Gitlab. Also first attempts in that subject
Reply Retweet Like
Robin Weser 6 Sep 17
Replying to @kyehohenberger
I've been using Fela like this for >1yr. While using it myself feels completely delightful, I actually think it's terrible at the same time
Reply Retweet Like
Robin Weser 6 Sep 17
Replying to @robinweser
Not even sure why actually, but it feels too implicit I guess. Had hard times selling/teaching that to my coworkers
Reply Retweet Like
Chris Lloyd 6 Sep 17
Replying to @kyehohenberger
We have a similar "Box" - dev mostly don't write CSS anymore. It's so much nicer when styling is in the JS toolchain and colo with markup
Reply Retweet Like
Travis Arnold 7 Sep 17
Replying to @benadam11
I have to disagree as well. I really like having the active queries outside of just styles. That way you can control props or whatever else.
Reply Retweet Like
Travis Arnold 7 Sep 17
Replying to @benadam11
messed around with the idea a couple of months ago similar to react-media but lets you do container queries as well
Reply Retweet Like