elementary/website

Support dark color schemes

オープン

#2,192 opened on 2019/05/15

 (5 件のコメント) (4 件のリアクション) (0 人の担当者)PHP (712 件のフォーク)github user discovery
HacktoberfestStatus: In Progress

Repository metrics

Stars
 (1,263 個のスター)
PR merge metrics
 (平均マージ 20h 18m) (30d で 40 merged PRs)

説明

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/

コントリビューターガイド