Skip to content

Commit 2c38860

Browse files
committed
fix: explictly set .light class for light mode, close #87
1 parent 099da82 commit 2c38860

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/client/logic/dark.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { useDark, useToggle } from '@vueuse/core'
22

3-
export const isDark = useDark()
3+
export const isDark = useDark({
4+
valueDark: 'dark',
5+
valueLight: 'light',
6+
})
47
export const toggleDark = useToggle(isDark)

0 commit comments

Comments
 (0)