From c62d84baf31c4b5d17c5d764a1f11e192359738a Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:31:14 +0200 Subject: [PATCH] Lighten calculated light theme background colors To improve contrast to primary color for some themes --- src/theme.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme.ts b/src/theme.ts index bb3a5047..b5bd5472 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -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;