mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Make light theme the default
This commit is contained in:
parent
3672a13ac8
commit
0ee653f631
@ -2,14 +2,14 @@ import { useEffect, useState } from "react"
|
|||||||
import { type Theme, ThemeContext } from "@/lib/ThemeContext"
|
import { type Theme, ThemeContext } from "@/lib/ThemeContext"
|
||||||
|
|
||||||
type ThemeProviderProps = {
|
type ThemeProviderProps = {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
defaultTheme?: Theme
|
defaultTheme?: Theme;
|
||||||
storageKey?: string
|
storageKey?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ThemeProvider({
|
export function ThemeProvider({
|
||||||
children,
|
children,
|
||||||
defaultTheme = "system",
|
defaultTheme = "light",
|
||||||
storageKey = "theme",
|
storageKey = "theme",
|
||||||
...props
|
...props
|
||||||
}: ThemeProviderProps) {
|
}: ThemeProviderProps) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user