[openstreetmap/openstreetmap-website] Dim map tiles in dark mode (PR #4712)

Anton Khorev notifications at github.com
Wed Apr 17 02:16:39 UTC 2024


Map tiles are going to be too bright in dark mode. The question is then what to do with them. There are two options: dim them or invert them, and the existing dark themes like [this one](https://userstyles.world/style/15596/openstreetmap-dark-theme) may offer a choice.

Here I'm making a conservative choice of 80% dimming.

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/de1a5883-bcb3-462a-95f2-ce560ea6078f)

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Set map background to secondary body color
  * Dim map tiles in dark mode

-- File Changes --

    M app/assets/stylesheets/common.scss (7)
    M app/views/layouts/map.html.erb (2)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list