nuxt-modules / color-mode

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

Reactive `useColorMode()` value #248

Closed itsmnthn closed 7 months ago

itsmnthn commented 7 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 7 months ago

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