Relative Content

Tag Archive for cssreactjsmaterial-uimakestyles

React MUI 5 unable to overwrite default styles with custom-defined styles

I am trying to overwrite default MUI 5 Button styles with custom styles (using either withStyles or through a className (defined using makeStyles), but the default styles are always on top of the custom ones. The issue with withStyles was resolved by adding those styles to the global style overrides when defining the theme, but the className-based ones are problematic.