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`],
}
Copycopy code to clipboardnpm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components