2

Night light is a mode where the colors of your display are shifted to the warmer end of the color spectrum after dark. It is supported both under Windows 10 and MacOS (called night shift by Apple).

Is there a way to detect if night light is enabled via the browser?

We would like to change our site's design to be night-mode friendly based on the current operating mode.

(This question should not be confused with the user preference for light-on-dark color scheme a.k.a. "dark mode" which can be queried via CSS)

Christopher Oezbek
  • 23,994
  • 6
  • 61
  • 85
  • I was rather under the impression that you didn't need to do anything; e.g. your #ffffff would be displayed as "night light white" anyway. – Mr Lister Nov 11 '19 at 15:30
  • 1
    We do have a color scheme that has some issues with exactly this. Some contrasts, highlights become less pronounced/look weird. – Christopher Oezbek Nov 11 '19 at 20:04

0 Answers0