Skip to content

Commit 3156fae

Browse files
committed
[grid] Migrating theme to Material v5
1 parent a687d4f commit 3156fae

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { createTheme, Theme, adaptV4Theme } from '@mui/material/styles'
1+
import { createTheme, Theme } from '@mui/material/styles'
22
import typography from './typography'
3-
import { red } from '@mui/material/colors'
43

54
// A custom theme for this app
6-
const theme: Theme = createTheme(adaptV4Theme({
5+
const theme: Theme = createTheme({
76
palette: {
87
primary: {
98
main: '#615E9B'
@@ -12,13 +11,13 @@ const theme: Theme = createTheme(adaptV4Theme({
1211
main: '#F7F8F8'
1312
},
1413
error: {
15-
main: red.A400
14+
main: '#FF1744'
1615
},
1716
background: {
1817
default: '#F7F8F8'
1918
}
2019
},
2120
typography
22-
}))
21+
})
2322

2423
export default theme

0 commit comments

Comments
 (0)