nuxt-modules / color-mode

Dark and Light mode with auto detection made easy with Nuxt 🌗
https://color-mode.nuxtjs.org
MIT License
1.07k stars 98 forks source link

Reactive `useColorMode()` value #248

Closed itsmnthn closed 4 months ago

itsmnthn commented 4 months ago

A useColorMode() returning reactive variable would be nice feature gives ability to watch and react to the color mode changes.

Current workaround is to use useLocalStorage('nuxt-color-mode', 'auto') to react to the color mode changes.

itsmnthn commented 4 months ago

Hmm, it is reactive I think, types don't specify this though