Dark mode on app.airgradient.com?

I’d really like app.airgradient.com to match my device’s light/dark mode. Right now it’s always bright white, even in the middle of the night when my device is set to dark mode.

I didn’t see a github repo for the web app, or I’d have posted an issue there. All it requires is a little bit of CSS:

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }
}

or something to that effect. You may have other properties or colors that work better, but the general idea is the same.

See here and here for more ways to do it.

Thanks for considering it!

1 Like

Hi @pcag , thanks for your suggestion! It is a great idea and we will definitely put it on our improvements board.

1 Like