| 1 |
/** @type {import("@mui/material").ThemeOptions} */ |
| 2 |
const baseThemeOptions = { |
| 3 |
components: { |
| 4 |
MuiListItemIcon: { |
| 5 |
styleOverrides: { |
| 6 |
root: { |
| 7 |
minWidth: "36px", |
| 8 |
}, |
| 9 |
}, |
| 10 |
}, |
| 11 |
MuiCardContent: { |
| 12 |
styleOverrides: { |
| 13 |
root: { |
| 14 |
":last-child": { |
| 15 |
paddingBottom: "16px", |
| 16 |
}, |
| 17 |
}, |
| 18 |
}, |
| 19 |
}, |
| 20 |
MuiCardActions: { |
| 21 |
styleOverrides: { |
| 22 |
root: { |
| 23 |
overflowX: "auto", |
| 24 |
}, |
| 25 |
}, |
| 26 |
}, |
| 27 |
}, |
| 28 |
}; |
| 29 |
|
| 30 |
// https://github.com/binwiederhier/ntfy-android/blob/main/app/src/main/res/values/colors.xml |
| 31 |
|
| 32 |
/** @type {import("@mui/material").ThemeOptions} */ |
| 33 |
export const lightTheme = { |
| 34 |
...baseThemeOptions, |
| 35 |
components: { |
| 36 |
...baseThemeOptions.components, |
| 37 |
}, |
| 38 |
palette: { |
| 39 |
mode: "light", |
| 40 |
primary: { |
| 41 |
main: "#338574", |
| 42 |
}, |
| 43 |
secondary: { |
| 44 |
main: "#6cead0", |
| 45 |
}, |
| 46 |
error: { |
| 47 |
main: "#c30000", |
| 48 |
}, |
| 49 |
}, |
| 50 |
}; |
| 51 |
|
| 52 |
/** @type {import("@mui/material").ThemeOptions} */ |
| 53 |
export const darkTheme = { |
| 54 |
...baseThemeOptions, |
| 55 |
components: { |
| 56 |
...baseThemeOptions.components, |
| 57 |
MuiSnackbarContent: { |
| 58 |
styleOverrides: { |
| 59 |
root: { |
| 60 |
color: "#000", |
| 61 |
backgroundColor: "#aeaeae", |
| 62 |
}, |
| 63 |
}, |
| 64 |
}, |
| 65 |
}, |
| 66 |
palette: { |
| 67 |
mode: "dark", |
| 68 |
background: { |
| 69 |
paper: "#1b2124", |
| 70 |
}, |
| 71 |
primary: { |
| 72 |
main: "#65b5a3", |
| 73 |
}, |
| 74 |
secondary: { |
| 75 |
main: "#6cead0", |
| 76 |
}, |
| 77 |
error: { |
| 78 |
main: "#fe4d2e", |
| 79 |
}, |
| 80 |
}, |
| 81 |
}; |