Implement dark mode

Resolves #206
This commit is contained in:
nimbleghost
2023-06-28 16:45:40 +02:00
parent d40b776205
commit 4f39c7c155
10 changed files with 69 additions and 29 deletions

View File

@@ -1,18 +1,7 @@
import { red } from "@mui/material/colors";
import { createTheme } from "@mui/material/styles";
import { grey, red } from "@mui/material/colors";
const theme = createTheme({
palette: {
primary: {
main: "#338574",
},
secondary: {
main: "#6cead0",
},
error: {
main: red.A400,
},
},
/** @type {import("@mui/material").ThemeOptions} */
const themeOptions = {
components: {
MuiListItemIcon: {
styleOverrides: {
@@ -31,6 +20,32 @@ const theme = createTheme({
},
},
},
});
};
export default theme;
/** @type {import("@mui/material").ThemeOptions['palette']} */
export const lightPalette = {
mode: "light",
primary: {
main: "#338574",
},
secondary: {
main: "#6cead0",
},
error: {
main: red.A400,
},
};
/** @type {import("@mui/material").ThemeOptions['palette']} */
export const darkPalette = {
...lightPalette,
mode: "dark",
background: {
paper: grey["800"],
},
primary: {
main: "#6cead0",
},
};
export default themeOptions;