我试图将 MuiTheme 的默认背景颜色设置为渐变,我有以下代码:
export const theme = createMuiTheme({
palette: {
type: "dark",
background: {
default: "linear-gradient(45deg, #fe6b8b 30%, #ff8e53 90%)",
},
},
})
Run Code Online (Sandbox Code Playgroud)
但是我注意到,material-ui 将其设置为background-color并且不允许使用渐变。
有没有办法绕过这个并让它变得background相反?