<p dir="auto">Adapted from <a href="https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript" rel="nofollow">https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript</a>. I don't add any mode selector, the theme is set to system color mode.</p>
<p dir="auto">Currently doesn't work with a lot of pages that set custom colors.</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/4653'>https://github.com/openstreetmap/openstreetmap-website/pull/4653</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4653/commits/ec858ff9b290843e904707f7a873a1b296fc1f21" class="commit-link">ec858ff</a>  Enable Bootstrap dark theme if user prefers dark color scheme</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4653/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4653/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4">app/assets/javascripts/application.js</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4653.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4653.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4653.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4653.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/4653">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO6SL5LCMBVGPJQV2TY37ZHTAVCNFSM6AAAAABF2OJXMSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDSMRTHE3TANA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLODA7KHPCTII62IBOLY37ZHTA5CNFSM6AAAAABF2OJXMSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIJX37TA.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/4653</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/4653",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4653",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>