The theme I designed import { createMuiTheme } from 'material-ui/styles';
export const MyTheme = createMuiTheme({
palette: {
primary: {
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
},
secondary: {
light: '#ff7961',
main: '#f44336',
dark: '#ba000d',
contrastText: '#000',
},
error: {
light: '#FF5F57',
main: '#CE160C',
dark: '#380300',
//contrastText: will be calculated to contast with palette.primary.main
}
}
});
Implementation in my application
<MuiThemeProvider theme={MyTheme}>
<AppContainer>
<BrowserRouter children={ routes } basename={ baseUrl } />
</AppContainer>
</MuiThemeProvider>
Is it possible to adjust the hover style of MenuItem
within Menu
and Select
using the theme?
https://i.sstatic.net/y8Nqv.png
https://i.sstatic.net/MpU1h.png