macOS Mojave Safari Dark Mode

Hello, I've been using macOS Mojave in night mode for a while now and I noticed that some website loads in dark mode when in reality their not. So I looked into the documentation but I didn't find any informations about the dark mode website support.

Do you know something about how to support dark mode on websites and maybe how to detect if safari is in dark mode?


Thank you very much,

Marco.

Replies

Perhaps this might come later with some work in Safari to support such a thing. It's a great idea and one that's probably been bounced around quite a bit at Apple.

Do a search for the `prefers-dark-interface` media query. It's not in Beta 1, but hopefully it will show up in the future.

I think the only way that the dark mode currently works is via a third party Safari extension. Look in app store and you will find it.