Replies: 2 comments
-
|
You can do this with If you prefer to use the pre built versions from CDN you'll have to handle it in Javascript similar to the code here: Might be they simplify this towards the stable release, IMO could argue standard should be css using media query to set CSS variables so defaults work with prefers-color-scheme while still allowing global and local overrides. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, we have |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for creating a dark mode. Is it possible to implement without the js toggle button? I see mention of it on getbootstrap.com but is requires experience with SASS. I think the js button is redundant when "prefers-color-scheme" already knows the user's preference.
Beta Was this translation helpful? Give feedback.
All reactions