[openstreetmap/openstreetmap-website] Enable Bootstrap dark theme if user prefers dark color scheme (PR #4653)

Anton Khorev notifications at github.com
Sat Apr 6 13:22:01 UTC 2024


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.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4653

-- Commit Summary --

  * Enable Bootstrap dark theme if user prefers dark color scheme

-- File Changes --

    M app/assets/javascripts/application.js (8)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4653.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4653.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4653
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4653 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240406/c0d9e70c/attachment.htm>


More information about the rails-dev mailing list