1.2.1 • Published 5 years ago

@wapps/gatsby-plugin-material-ui v1.2.1

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

@wapps/gatsby-plugin-material-ui

A Gatsby plugin for Material UI with built-in server-side rendering support.

Install

npm install --save @wapps/gatsby-plugin-material-ui@next @material-ui/core

How to use

Edit gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `@wapps/gatsby-plugin-material-ui`,
      options: {
        // Add any options here
      },
    },
  ],
};

Options

You can pass options to the plugin:

  • theme (Object optional): Default to {}.
  • dangerouslyUseGlobalCSS (Boolean optional): Defaults to false. Makes the Material-UI class names deterministic.
  • productionPrefix (String optional): Defaults to 'jss'. The string used to prefix the class names in production.
  • seed (String optional): Defaults to ''. The string used to uniquely identify the generator. It can be used to avoid class name collisions when using multiple generators.

For example:

options: {
  theme: {
    primaryColor: '#9c27b0',
  },
  productionPrefix: 'c',
}

Notes

This plugin is compatible with other CSS-in-JS solutions out of the box. To prevent unintentional style clobbering, it uses a custom jss instance to ensure that default Material-UI styles are injected before those generated by your styling library of choice. Read more about this strategy at the Material-UI docs.

2.0.0-alpha.2

5 years ago

1.2.1

5 years ago

2.0.0-alpha.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago