Skip to content
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

Enable Bootstrap dark theme if user prefers dark color scheme #4653

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AntonKhorev
Copy link
Contributor

Adapted from https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript. I don't add any mode selector, the theme is set to system color mode.

Currently doesn't work with a lot of pages that set custom colors.

Javascript has to run as soon as possible to avoid flashes. Document ready event is too late.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant