Lighten calculated light theme background colors

To improve contrast to primary color for some themes
This commit is contained in:
schroda
2024-09-09 19:31:14 +02:00
parent 1423ca23be
commit c62d84baf3

View File

@@ -57,8 +57,8 @@ export const createTheme = (
default: darken(baseTheme.palette.primary.main, 0.85),
};
const backgroundLight: Palette['background'] = {
paper: lighten(baseTheme.palette.primary.dark, 0.75),
default: lighten(baseTheme.palette.primary.dark, 0.85),
paper: lighten(baseTheme.palette.primary.dark, 0.8),
default: lighten(baseTheme.palette.primary.dark, 0.9),
};
const backgroundThemeMode = isDarkMode ? backgroundDark : backgroundLight;
const automaticBackground = setPureBlackMode ? backgroundTrueBlack : backgroundThemeMode;