color-mode icon indicating copy to clipboard operation
color-mode copied to clipboard

Is this module supposed to autodetect the preferences and change styling accordingly?

Open AdamBD opened this issue 4 years ago • 1 comments

I have the following set in assets/main.css

@layer base {
  .dark-mode body {
    background-color: #091a28;
    color: #ebf4f1;
  }
  .sepia-mode body {
    background-color: #f1e7d0;
    color: #433422;
  }
}

(Am using tailwind)

But when the page loads even though it detects the user using system detection it doesnt apply the dark color scheme (If the users system setting is dark). Is there additional work needed to understand WHAT the users system setting is?

AdamBD avatar Aug 06 '21 16:08 AdamBD

Can you please create a reproduction? It should work under the hood. see https://tailwindcss.nuxtjs.org/examples/dark-mode

atinux avatar Aug 23 '21 15:08 atinux