I have a react material UI project that uses the AccordionSummary component. I want to change the default colour of this component. I've tried to do this like so
import { createTheme } from '@mui/material';
export const theme = createTheme({
overrides: {
MuiAccordionSummary: {
root: {
backgroundColor: 'rgba(255, 0, 0, 0.4)'
}
}
}
});
And then applying the theme to the root:
import { ThemeProvider } from '@material-ui/core/styles';
import { theme } from '@utils/theme';
function MyApp({ Component, pageProps }) {
return (
<>
<ThemeProvider theme={theme}>
<Header />
<Component {...pageProps} />
</ThemeProvider>
</>
);
}
export default MyApp;
I'm also using nextjs. But I can't seem to change the colour. Any help appreciated!