3 ms·
For inline CSS, I love Styled-System [1] for css as props. My components die and get redesigned too frequently to care for anything else. So I prefer them encap
by parhamn 4y ago
For inline CSS, I love Styled-System [1] for css as props. My components die and get redesigned too frequently to care for anything else. So I prefer them encapsulated in the Component itself.
I find css-as-props is better than a huge string of classes, as it much more readable and statically analyzable. I wonder if anyone is working on a successor to styled-system (though it works fine).
[1] https://styled-system.com/ https://styled-system.com/
- pcthrowaway 4y agoI've been working on a fork of a project that uses styled recently, and I'm pretty sure it's responsible for slowing down VS Code to the point of being unusable, though I don't understand why. I'll take tailwind over Styled any day