<p dir="auto">I guess <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2285362548" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4769" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4769/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4769">#4769</a> meant "how about we use dark tile variants when available". If <a href="https://www.thunderforest.com/maps/transport-dark/" rel="nofollow">Transport Dark</a> is approved to be used on the osm website, we can switch to it in dark mode when "Transport Map" is selected.</p>
<p dir="auto">Here's how it can work together with prefers-color-scheme switching from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2281155202" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4761" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4761/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4761">#4761</a>:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/8f0000ba-04f5-4540-ae9d-ce73f16bd770">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/381f1092-55fb-433c-87a2-93dbfae9a105">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/ea3f6bbb-f703-48e1-8b40-ad84a64f035b">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/d2b9c0e5-2688-4f45-9b25-fbb90b829546">image.png (view on web)</a></p>
<p dir="auto">Layers without alternative dark tiles get dimmed, layers with switch to their alternative tiles.</p>
<p dir="auto">I modified leaflet-osm in this repository directly. Is <a href="https://github.com/openstreetmap/leaflet-osm">https://github.com/openstreetmap/leaflet-osm</a> maintained? Its <a href="https://www.npmjs.com/package/leaflet-osm" rel="nofollow">npm package</a> was last updated years ago.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4777'>https://github.com/openstreetmap/openstreetmap-website/pull/4777</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/commits/f987061cbca78b0ef03e6c930356284c01e06052" class="commit-link">f987061</a>  Manage map tiles dark mode with leaflet-osm plugin</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4">app/assets/javascripts/application.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/files#diff-4fe14e869cf17b068e1bea009a55b094fed13f0cad85337cf4769f32b40a01b5">vendor/assets/leaflet/leaflet.osm.js</a>
    (60)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4777.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4777.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4777.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4777.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNN3DY3MU4K4743MU3ZBOCJHAVCNFSM6AAAAABHO5WDTOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4DOOBSGI3TMMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLO7AMW65SYXOZE6TQ3ZBOCJHA5CNFSM6AAAAABHO5WDTOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIQXLHVM.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4777</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4777",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4777",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>