gatsby-plugin-material-ui icon indicating copy to clipboard operation
gatsby-plugin-material-ui copied to clipboard

styles not being applied

Open jeffwillette opened this issue 6 years ago • 2 comments

Hi I am using material-ui ^1.0.0-beta.34 and I can't seem to get the styles applied in gatsby...

gatsby-config.js

    {
      resolve: 'gatsby-plugin-material-ui',
      options: {
        pathToTheme: 'src/mui-theme'
      }
    },

mui-theme.js

import { createMuiTheme } from 'material-ui';
import green from 'material-ui/colors/green';
import grey from 'material-ui/colors/grey';

export default createMuiTheme({
  palette: {
    primary: green,
    secondary: grey,
    error: {
      light: 'rgba(128,0,0,.9)',
      main: 'rgba(128,0,0,.9)',
      dark: 'rgba(128,0,0,.9)',
      contrastText: '#FFFFFF'
    },
    background: {
      default: '#FFFFFF'
    }
  },
  overrides: {
    MuiButton: {
      root: {
        borderRadius: 5
      }
    },
    MuiPaper: {
      root: {
        boxShadow:
          '0px 1px 1px -1px rgba(0, 0, 0, 0.2),' +
          '0px 3px 1px -1px rgba(0, 0, 0, 0.14),' +
          '0px 1px 1px -1px rgba(0, 0, 0, 0.12)'
      },
      rounded: {
        borderRadius: 5
      }
    }
  }
});

I'm not getting any errors so I'm not sure where to turn next...

jeffwillette avatar May 15 '18 04:05 jeffwillette

I have the same problem.

mares29 avatar Jul 24 '18 21:07 mares29

Same

ColinTS avatar Dec 08 '18 05:12 ColinTS