prefers-color-scheme media query

- UNOFF

Media query to detect if the user has set their system to use a light or dark color theme.

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Edge

  1. 12 - 18: Not supported
  2. 79: Supported
  3. 80: Supported

Firefox

  1. 2 - 66: Not supported
  2. 67 - 73: Supported
  3. 74: Supported
  4. 75 - 76: Supported

Chrome

  1. 4 - 75: Not supported
  2. 76 - 79: Supported
  3. 80: Supported
  4. 81 - 83: Supported

Safari

  1. 3.1 - 12: Not supported
  2. 12.1: Supported
  3. 13: Supported
  4. 13.1 - TP: Supported

Opera

  1. 9 - 60: Not supported
  2. 62 - 65: Supported
  3. 66: Supported

iOS Safari

  1. 3.2 - 12.4: Not supported
  2. 13 - 13.2: Supported
  3. 13.3: Supported
  4. 13.4: Supported

Opera Mini

  1. all: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 80: Supported

Blackberry Browser

  1. 7: Not supported
  2. 10: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 46: Not supported

Chrome for Android

  1. 80: Supported

Firefox for Android

  1. 68: Supported

IE Mobile

  1. 10: Not supported
  2. 11: Not supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 10.1: Not supported
  2. 11.1: Not supported

QQ Browser

  1. 1.2: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Not supported

Support will also depend on whether or not the OS has support for a light/dark theme preference.

Briefly known as prefers-dark-interface in earlier builds of Safari TP.

Needs to be enabled with this API to use in Android WebView 76.

Resources:
Chromium implementation issue
Firefox implementation bug
MDN article