Using styled-components in Gatsby

1 · · July 10, 2019, 10:21 p.m.
When creating a new Gatsby.js project, there are several available options for styling. We could write our own CSS/SCSS stylesheets, install frameworks like Bootstrap, and/or use various CSS-in-JS solutions. styled-components is one of the most popular CSS-in-JSS solutions, and for good reason. It’s powerful, easy to learn, and it works flawlessly with Gatsby. Let’s explore how to add it into your project! This post assumes that you already have a working Gatsby.js project that is ready to edit....