Skip to content

Commit

Permalink
enable auto dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jecr committed Jun 6, 2024
1 parent df4724b commit afad3a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/packages/core/src/AppProvider/themes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const useTheme = () => useMuiTheme() as MuiTheme;

const Theme: React.FC = ({ children }) => {
// Uncomment to use dark mode
/* // Detect system color mode
// Detect system color mode
const prefersDarkMode =
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches; */
const prefersDarkMode = false;
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;

return (
<ThemeProvider variant={prefersDarkMode ? THEME_VARIANTS.dark : THEME_VARIANTS.light}>
{children}
Expand Down

0 comments on commit afad3a3

Please sign in to comment.