elementary/website

Support dark color schemes

开放

#2,192 创建于 2019年5月15日

 (5 条评论) (4 个反应) (0 位负责人)PHP (712 个派生)github user discovery
HacktoberfestStatus: In Progress

仓库指标

星标
 (1,263 个星标)
PR 合并指标
 (平均合并 20小时 18分钟) (30 天内合并 40 个 PR)

描述

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/

贡献者指南