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

Get current system mode, regardless of preference #191

Open kalnode opened 1 year ago

kalnode commented 1 year ago

Hello,

Question: Is there a built-in helper to get the current system value (prefers-color-scheme), regardless of this module's current color preferences?

Reason: I'm trying to provide extra user preferences such that they select preferred "tints" like...

Example: "Preferred system tints" System Dark: [ 'monotone-dark', 'teal-dark', 'sepia-dark'] System Light: [ 'monotone-light', 'teal-light', 'sepia-light']