Skip to content
Snippets Groups Projects
ThemeProvider.jsx 1.14 KiB
Newer Older
  • Learn to ignore specific revisions
  • import { MuiThemeProvider, createTheme } from '@material-ui/core/styles'
    
    import indigo from '@material-ui/core/colors/indigo'
    import lightBlue from '@material-ui/core/colors/lightBlue'
    
    
        },
        sourceCode: {
          fontFamily: '"Fira code", "Fira Mono", monospace'
    
      },
      palette: {
        primary: {
          main: indigo[700]
        },
        secondary: {
          main: lightBlue[600]
        },
    
        default: {
          main: '#00000089'
        },
    
      render() {
        return (
          <MuiThemeProvider theme={theme}>{this.props.children}</MuiThemeProvider>
        )
      }
    }