Apple - How to force Xcode(or any other app) to be on dark theme while macOS Mojave's setting is on light mode

Open Terminal and run the following:

defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool FALSE

source: https://medium.com/@pawelurbanowicz/boost-your-productivity-with-macos-mojave-enable-dark-mode-for-xcode-only-33d86e452ea9


1) First ensure you have the appropriate system setup:

defaults write -g NSRequiresAquaSystemAppearance -bool Yes

2) Then use:

defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool FALSE

Enjoy!


You can also configure any other app by knowing its BundleID. For example:

  • App Store.app -> com.apple.AppStore
  • Calendar.app -> com.apple.iCal
  • Mail.app -> com.apple.mail
  • Maps.app -> com.apple.Maps
  • Notes.app -> com.apple.Notes
  • Safari.app -> com.apple.Safari

To restore defaults:

defaults delete -g NSRequiresAquaSystemAppearance