You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
263 B
TypeScript

// these APIs are auto-imported from @vueuse/core
export const isDark = useDark({
selector: 'html',
attribute: 'theme-mode',
valueDark: 'dark',
valueLight: '',
})
export const toggleDark = useToggle(isDark)
export const preferredDark = usePreferredDark()