-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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 theme for Bootstrap v5 #31175
Comments
copy of #27514 |
yeah, pretty nice feature it would be, also a button class along with it for toggling will be nice. |
You can already use |
Duplicate of #27514. |
It would be nice if you just can add the |
I was tinkering with this if anyone's interested... |
That looks amazing! |
Super helpful bit of code there, thanks! |
Dark mode is not easy ... I discussed (and POC'ed) this at length back in May 2020 in my quasi-white-paper The Definitive Guide to Dark Mode and Bootstrap 4 (Also on GitHub.) And subsequently also churned the Bootstrap 5β1 variant (Also on GitHub.) There are huge contentions around how to make "dark mode" available. For example:
and
My gut tells me most want the toggle button over the pure OS-does-the-choice - because they've seen some other site that does that and want the same... even though I guess it comes down to time ... both to decide on how to do this and then churn the code, then test it. |
Implementing dark mode would be easier if Bootstrap was less "light mode" in the first place. For example card, pagination, popover, modal body |
Nowadays, dark theme is very important and is beneficial to your vision (quoted from rxoptical.com)
So I was thinking, why not have an option for dark theme? I know this is possible already with just changing the variables file or using Bootswatch, but other frameworks support an actual dark theme option. It could be as easy as adding
darktheme="true"
to the tag, etc. I would love to see this supported in Bootstrap 5.The text was updated successfully, but these errors were encountered: