JSPM

gatsby-plugin-emotion

2.0.0-alpha.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 54364
  • Score
    100M100P100Q154081F
  • License MIT

Gatsby plugin to add support for Emotion

Package Exports

  • gatsby-plugin-emotion

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-plugin-emotion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gatsby-plugin-emotion

Provide support for using the css-in-js library Emotion including server side rendering.

Install

npm install --save gatsby-plugin-emotion emotion emotion-server react-emotion

How to use

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.
            }
        }
    ]
];