mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 01:05:58 +02:00
feat: default to darkmode instead of lightmode
This commit is contained in:
@@ -17,7 +17,7 @@ interface IScopedDownChildren {
|
||||
export const ThemeContext = createContext<IThemeContext | null>(null)
|
||||
|
||||
const ThemeProvider: FC<IScopedDownChildren> = ({ children }) => {
|
||||
const [theme, setTheme] = useLocalStorage("theme", "light")
|
||||
const [theme, setTheme] = useLocalStorage("theme", "dark")
|
||||
|
||||
const themeObject = useMemo(
|
||||
() => (theme === "dark" ? darkTheme : lightTheme),
|
||||
|
||||
Reference in New Issue
Block a user