Skip to content

Commit

Permalink
fix: change theme from unistyle
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Dec 11, 2024
1 parent cb8ca6c commit e5bd6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/use-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useTheme() {
useEffect(() => {
if (userTheme === 'system') {
Appearance.setColorScheme(null)
UnistylesRuntime.setTheme(systemTheme === 'dark' ? 'dark' : 'light')
UnistylesRuntime.setTheme(UnistylesRuntime.colorScheme === 'unspecified' ? 'light' : UnistylesRuntime.colorScheme)
return
}
Appearance.setColorScheme(userTheme)
Expand Down

0 comments on commit e5bd6a4

Please sign in to comment.