Good one. To people setting up brand new MUI v5 projects in 2021, the official way to override default styles now is through the sx prop or the styled() utility function. Custom theme properties could be accessed via importing your theme and wrapping components inside ThemeProvider.
Good one. To people setting up brand new MUI v5 projects in 2021, the official way to override default styles now is through the
sx
prop or thestyled()
utility function. Custom theme properties could be accessed via importing your theme and wrapping components insideThemeProvider
.Acutally you can just use 'primary.main' for color: