mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
feat: dark mode
This commit is contained in:
@@ -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' }
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user