Files
jellyfin-web/src/themes/light/index.ts
T
thornbill 1929ba8eb2 Backport pull request #5589 from jellyfin-web/release-10.9.z
Add support for user themes for mui components

Original-merge: 61976b8101d8d58334df2f4df2d1138cdbebbd4e

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-05-26 18:49:25 -04:00

31 lines
950 B
TypeScript

import createTheme, { type ThemeOptions } from '@mui/material/styles/createTheme';
import merge from 'lodash-es/merge';
import { DEFAULT_THEME_OPTIONS } from 'themes/defaults';
const options: ThemeOptions = {
palette: {
mode: 'light',
background: {
default: '#f2f2f2',
// NOTE: The original theme uses #303030 for the drawer and app bar but we would need the drawer to use
// dark mode for a color that dark to work properly which would require a separate ThemeProvider just for
// the drawer... which is not worth the trouble in my opinion
paper: '#e8e8e8'
}
},
components: {
MuiAppBar: {
styleOverrides: {
colorPrimary: {
backgroundColor: '#e8e8e8'
}
}
}
}
};
const theme = createTheme(merge({}, DEFAULT_THEME_OPTIONS, options));
export default theme;