I'm not very deep into React yet...
The AppBar is styled like a button which i don't like.
So I want to change it's colors but also have it working switching light and dark scheme.
[Edit] I want to define own colors for AppBar (without changing present colors) und add them to light/dark theme respectively so it's changing automatically to light/dark when i switch themes. [/Edit]
Changing colors with ThemeProvider is already not working:
const theme = createMuiTheme({
palette: {
// type: 'dark'
},
overrides: {
MuiTypography: {
h1: {
fontSize: 24,
fontWeight: "normal"
},
h2: {
fontSize: 22,
fontWeight: "normal"
},
},
MuiAppBar: {
background: 'white',
borderBottom: "1px solid lightGray",
}
},
MuiTypography works, though. (As I see here https://material-ui.com/customization/default-theme/ there's no AppBar only Typography.)
How can I tell AppBar to use other colors than primary/secondary while staying synced with the built-in light-dark-theme mechanic?