Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AdamBD opened this issue Aug 6, 2021 · 1 comment
Labels
question Further information is requested

Comments

@AdamBD
Copy link

AdamBD commented Aug 6, 2021

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 AdamBD added the question Further information is requested label Aug 6, 2021
Copy link
Contributor

atinux commented Aug 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants