elementary/website

Support dark color schemes

Open

#2,192 opened on May 15, 2019

View on GitHub
 (5 comments) (4 reactions) (0 assignees)PHP (718 forks)github user discovery
HacktoberfestStatus: In Progress

Repository metrics

Stars
 (1,267 stars)
PR merge metrics
 (Avg merge 20h 18m) (40 merged PRs in 30d)

Description

With browsers across macOS, Android, Windows, and soon iOS and GNOME Web supporting the prefers-color-scheme media query, we should support it for our site as well. This involves a few tasks:

  • Support the media query itself with a specific dark color scheme
  • Check images and ensure major ones (i.e. on the front page) don't have hardcoded white backgrounds—instead, we should use transparent PNGs
  • Test at least on macOS Safari and Chrome Canary for Android

More info: https://webkit.org/blog/8840/dark-mode-support-in-webkit/

Contributor guide