MacOS – turn to Dark Mode only for specific apps in macOS Mojave

macosmojave

The new macOS Mojave Dark Mode function makes all of Apple's built-in apps get the Dark Mode treatment, that is Safari, Mail, Contacts, Calendar, Reminders, Notes, Maps, Photos, Messages, FaceTime, iTunes, Apple Books, etc.

However, is it possible to selectively activate Dark Mode, i.e., only for a specific subset of apps? For instance, what if I want to keep Safari in Light Mode and turn Finder to Dark Mode instead? Am I somehow allowed to do that?

Best Answer

There's a command that works for this:

defaults write <Bundle-Identifier> NSRequiresAquaSystemAppearance -bool yes

It's explained here: https://www.tekrevue.com/tip/exclude-app-dark-mode-macos-mojave/

If you don't know the app's bundle id, you can query it using AppleScript, which you can run from the command line with osascript:

osascript -e 'id of app "<App-Name>"'