-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dark mode #1
Comments
Great suggestion!! I'll try to implement it tonight, I'll let you know. ^^ |
Hey... Check this out I'll update the documentation to include dark mode example. |
Hey thanks forthe quick reply @christhofer! I think I still don't see dark mode. I did your approach previously but had no luck. I'm on the latest Tailwind version (2.2.7) and using the following configuration:
IDK if setting darkMode = 'media' is doing this. In the meantime, I'm getting the theme preference from the class attribute and then setting the appropriate loading-dark style accordingly without relying on dark:... |
@antoniobologna you can go to the tailwindplay link I gave above, change the tailwind config darkMode to class, and try to toggle the in dark class in the html If you are using darkMode: 'media', you can see that in action by changing your OS mode to dark. |
Sorry, I accidentally clicked close. @antoniobologna I see that you are not using JIT Without JIT, only color-related class get dark: variants, and because .loading is not a built-in tailwind class, it does not have dark: by default My example above is using mode: 'jit' |
thank you @christhofer i was using |
Great plugin :) is there a chance there will be an future update to include dark mode?
i.e.
dark:loading-gray
The text was updated successfully, but these errors were encountered: