Theming styled-components with CSS custom properties

TLDRWith Vue, I used to write pure CSS in the old-school style tag. With React, I wanted to experience something different, so I decided to give styled-components a try. It helps to keep a maintainable styling which is both easy to refactor and expand. But if you overuse their props system, your styling can become less readable and messy.

Post cover image
Table of contents
CSS custom propertiesCSS custom properties vs styled-components propsstyled-components global styleTheming
2 Comments

Sort: