Skip to content

Commit

Permalink
vinvoor: use system color default
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 20, 2024
1 parent f5f4c2f commit a44e466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vinvoor/src/providers/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const ThemeContext = createContext<ThemeContextProps>({

export const ThemeProvider: FC<ThemeProviderProps> = ({ children }) => {
const [themeMode, setThemeMode] = useState<ThemeMode>(
(import.meta.env.VITE_DEFAULT_THEME_MODE as ThemeMode) || "light",
window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light",
);

const setTheme = (theme: ThemeMode) => {
Expand Down

0 comments on commit a44e466

Please sign in to comment.