This commit is contained in:
Daniel Shleifman
2021-06-26 22:28:50 +03:00
parent 9b521ef06c
commit e2241cf7fd
8 changed files with 22 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ export const darkTheme = createMuiTheme({
palette: {
type: THEME_MODES.DARK,
primary: { main: mainColors.dark.primary },
secondary: { main: mainColors.dark.secondary },
},
})
export const lightTheme = createMuiTheme({
@@ -19,6 +20,7 @@ export const lightTheme = createMuiTheme({
palette: {
type: THEME_MODES.LIGHT,
primary: { main: mainColors.light.primary },
secondary: { main: mainColors.light.secondary },
},
})
@@ -48,6 +50,7 @@ export const useMaterialUITheme = () => {
palette: {
type: theme,
primary: { main: mainColors[theme].primary },
secondary: { main: mainColors[theme].secondary },
},
}),
[theme],