Provide drop-in support for using the css-in-js library JSS including server rendering.
npm install gatsby-plugin-jss react-jss
Add the plugin to your gatsby-config.js
.
plugins: [`gatsby-plugin-jss`]
Or with theme
const theme = {
fontSize: 16,
fontFamily: "Roboto",
color: "#212121",
}
plugins: [
{
resolve: "gatsby-plugin-jss",
options: { theme },
},
]