I'm trying to set fontWeight: 'bold' for all of my button elements. I've made various attempts in my createTheme function:
export const muiTheme = createTheme({
typography: {
fontFamily: "poppins",
button: {
fontWeight: "bold",
color: "blue",
},
},
components: {
MuiButton: {
styleOverrides: {
text: {
fontWeight: "bold",
color: "black",
},
textPrimary: {
fontWeight: "bold",
color: "black",
},
},
},
MuiButtonBase: {
styleOverrides: {
root: {
fontWeight: "bold",
color: "black",
},
},
},
},
});
None of the above is having any effect on my code with the exception of the fontFamily