How can I change the subheader text color to white in a Material UI Card with a dark background?
Here is my code:
const useStyles = makeStyles(theme => ({
menuColor: {
backgroundColor: theme.palette.primary.main,
color: '#ffffff',
},
}));
const ProfileUser = () => {
const classes = useStyles();
return (
<Card elevation={0} className={classes.menuColor}>
<CardHeader
avatar={<Avatar />}
title="Person name"
titleTypographyProps="h4"
subheaderTypographyProps="body1"
subheader="Person role"
/>
</Card>
);
};
export default ProfileUser;