$ npm install gatsby-plugin-emotion
Provide support for using the css-in-js library Emotion including server side rendering.
npm install --save gatsby-plugin-emotion emotion emotion-server react-emotion
Add the plugin to your gatsby-config.js.
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-emotion`,
options: {
// Accepts all options defined by `babel-plugin-emotion` plugin.
}
}
]
];
© 2010 - cnpmjs.org x YWFE | Home | YWFE