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

I love Xcode 10 dark theme, but I'd like to keep the whole OS on light theme. But by default to have Xcode on Dark theme you have to set the whole OS to Dark.

How can I achieve this?


Solution 1:

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

Solution 2:

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