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
The script (with default options) doesn't detect prefer-color-scheme and set invalid LocalStorage darkMode value in the beginning. If my OS theme is dark mode and I'm visiting a page that is drkmd.js loaded for the first time, the page will still be in light mode as it doesn't detect the system theme. Even if I choose the default theme as dark in the script tag (data-drkmd-opts='{ "defaultTheme": "dark" }') or set data-theme=dark/body.theme-dark in the markup + my system theme is dark, it still sets the light theme automatically as darkMode=false in LocalStorage.
The script (with default options) doesn't detect prefer-color-scheme and set invalid LocalStorage darkMode value in the beginning. If my OS theme is dark mode and I'm visiting a page that is drkmd.js loaded for the first time, the page will still be in light mode as it doesn't detect the system theme. Even if I choose the default theme as dark in the script tag (
data-drkmd-opts='{ "defaultTheme": "dark" }'
) or setdata-theme=dark
/body.theme-dark
in the markup + my system theme is dark, it still sets the light theme automatically as darkMode=false in LocalStorage.📚 To Reproduce
cdpn.io
and reload the page.💡 Expected behavior
Quoting from Browser Compatibility section in README:
This.
⚙️ Environment
The text was updated successfully, but these errors were encountered: