3 ms·
Having used both Tailwind and a more traditional scss system in the past. I think my personal favorite is styled components[0]. It strikes a good balance betwee
by poetril 4y ago
Having used both Tailwind and a more traditional scss system in the past. I think my personal favorite is styled components[0]. It strikes a good balance between not having to move between many files, like you might find your self doing with traditional css/scss system. While being declarative and semantically easy to read.
It is not perfect by any means, and in larger components/pages it can lead to some pretty long, difficult to reason about files. But its the best workflow I've had the opportunity to work with so far.
[0] https://emotion.sh/docs/styled https://emotion.sh/docs/styled
- fragile_frogs 4y agoYou could combine styled-components/emotion with something like open-props[0]. You get all the power that comes with CSS and a set of variables to help you create a consistent design. That's how I manage my styling. [0] https://open-props.style https://open-props.style
- poetril 4y agoOoo, that is very interesting. I will have to give that a shot, thanks for sharing!