Feat: add theme switcher (#18093)

This commit is contained in:
KVOJJJin 2025-05-14 09:06:14 +08:00 • committed by GitHub
commit 3548c133e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 330 additions and 54 deletions

View file

@ -65,8 +65,7 @@ const LocaleLayout = async ({
<TanstackQueryIniter>
<ThemeProvider
attribute='data-theme'
forcedTheme='light'
defaultTheme='light' // TODO: change to 'system' when dark mode ready
defaultTheme='system'
enableSystem
disableTransitionOnChange
>