Closed konklone closed 4 years ago
From the PR author:
tested on iphone 11, chrome so far
Background on how to support dark mode: https://webkit.org/blog/8840/dark-mode-support-in-webkit/
A code example of how to detect this programmatically in JS (to do things like control the colors in the dev console):
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { // dark mode }
From the PR author:
Background on how to support dark mode: https://webkit.org/blog/8840/dark-mode-support-in-webkit/
A code example of how to detect this programmatically in JS (to do things like control the colors in the dev console):