Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-compiled

Provide support for using the css-in-js library Compiled.

Install

npm

npm install gatsby-plugin-compiled @compiled/css-in-js

yarn

yarn add gatsby-plugin-compiled @compiled/css-in-js

How to use

Add the plugin to your gatsby-config.js.

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-compiled`,
      options: {
        // Accepts all options defined by `@compiled/babel-plugin-css-in-js` plugin.
      },
    },
  ],
};
© 2023 Gatsby, Inc.