CONTACT US

The styled-components happy path

Illustration of rolling green hills with a winding white path. Text reads The styled-components Happy Path. A smiling cartoon person with brown hair and a yellow scarf stands on the right.

When we extend the component mindset to our CSS, we gain all sorts of new superpowers:

  • The ability to know, with confidence, whether it’s safe to remove a CSS declaration (no possibility of it affecting some totally-separate part of the application!).
  • A complete lack of specificity issues, no more trying to find tricks to bump up specificity.
  • A neat and trim mental model that fits in your head and helps you understand exactly what your pages will look like, without needing to do a bunch of manual testing.

 

Article link copied

Close button