feat: dark mode

This commit is contained in:
Ibrahima G. Coulibaly
2025-03-31 01:27:44 +00:00
parent e53642db31
commit d676383d22
26 changed files with 297 additions and 551 deletions

View File

@@ -1,13 +1,50 @@
import { createTheme } from '@mui/material';
import { createTheme, ThemeOptions } from '@mui/material';
const theme = createTheme({
const sharedThemeOptions: ThemeOptions = {
typography: {
button: {
textTransform: 'none'
}
},
palette: { background: { default: '#ebf5ff' } },
zIndex: { snackbar: 100000 }
};
export const lightTheme = createTheme({
...sharedThemeOptions,
palette: {
background: {
default: '#F5F5FA',
hover: '#FAFAFD',
lightSecondary: '#EBF5FF',
darkSecondary: '#5581b5'
}
},
components: {
MuiButton: {
styleOverrides: {
contained: { color: '#ffffff', backgroundColor: '#1976d2' }
}
}
}
});
export default theme;
export const darkTheme = createTheme({
...sharedThemeOptions,
palette: {
mode: 'dark',
background: {
default: '#1C1F20',
paper: '#181a1b',
hover: '#1a1c1d',
lightSecondary: '#1E2021',
darkSecondary: '#3C5F8A'
},
text: { primary: '#ffffff' }
},
components: {
MuiButton: {
styleOverrides: {
contained: { color: '#ffffff', backgroundColor: '#145ea8' }
}
}
}
});