omni-tools/src/config/muiConfig.ts
Ibrahima G. Coulibaly d676383d22 feat: dark mode
2025-03-31 01:27:44 +00:00

51 lines
1018 B
TypeScript

import { createTheme, ThemeOptions } from '@mui/material';
const sharedThemeOptions: ThemeOptions = {
typography: {
button: {
textTransform: 'none'
}
},
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 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' }
}
}
}
});