Вы ограничены в том, какие цвета предоставлять через реквизит:
/**
* The color of the component. It supports those theme colors that make sense for this component.
*/
color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']),
Но если вы посмотрите на исходный код, то увидите свойства имени класса, которые использует MaterialUI, и переопределите их соответствующим образом:
/* Styles applied to the root element if `variant="contained"` and `color="primary"`. */
containedPrimary: {
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.main,
'&:hover': {
backgroundColor: theme.palette.primary.dark,
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: theme.palette.primary.main,
},
},
},
Как вы можете видеть, это позволит вам стилизовать (в данном случае кнопку), как это должно выглядеть с набором цветов primary
.