gatsby 3 starter styled components code example
Example: install styled components in Gatsby
npm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components
Also requires this addition to gatsby-config.js
module.exports = {
plugins: [`gatsby-plugin-styled-components`],
}