You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think with the darkMode: 'media' config you should render the color variables for the defaultTheme in :root and the other theme using a prefers-color-scheme media-query and not just the theme-name as selector.
HeroUI Version
2.6.13
Describe the bug
I think with the
darkMode: 'media'
config you should render the color variables for thedefaultTheme
in:root
and the other theme using a prefers-color-scheme media-query and not just the theme-name as selector.Right now, if I have
The default theme variables are generated like this:
But the dark mode only like this:
This way, dark mode is not rendered if the user "prefers" dark 😔
I think generating it like this would make more sense b/c the user would get the right theme without the need to install extra libs and run JS...
Or something similar...
What do you think?
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
see above
Expected behavior
Get dark mode if I prefer "dark"
Screenshots or Videos
No response
Operating System Version
all
Browser
Chrome
The text was updated successfully, but these errors were encountered: