0.5.0 • Published 4 years ago

gatsby-plugin-glaze v0.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

🍩 gatsby-plugin-glaze

Applies glaze theming on Gatsby sites.

📚 Usage

  1. Install the package and its peer dependencies along with the Gatsby plugin for treat:

    npm install gatsby-plugin-glaze glaze treat react-treat gatsby-plugin-treat
  2. Add newly installed plugins to gatsby-config.js:

    module.exports = {
      plugins: ['gatsby-plugin-glaze', 'gatsby-plugin-treat'],
    };
  3. Override the default theme, as shown through an example project:

    /* src/gatsby-plugin-glaze/theme.treat.js */
    
    import { createTheme, defaultTokens } from 'glaze';
    
    export default createTheme({
      ...defaultTokens,
      // Customization...
    });

⚙️ Options

Additional configuration can be specified using Gatsby plugin options:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-glaze',
      options: {
        // Reduce client runtime size by omitting style generation on the fly
        disableStyleInjection: true,
      },
    },
    ,
    'gatsby-plugin-treat',
  ],
};
0.5.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago