Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Last active May 23, 2022 18:15
Show Gist options
  • Save andrewodri/08eddaaf433a40374f84c6bdf04f95f3 to your computer and use it in GitHub Desktop.
Save andrewodri/08eddaaf433a40374f84c6bdf04f95f3 to your computer and use it in GitHub Desktop.
Force dark mode in High Sierra
#!/bin/bash
# https://www.howtogeek.com/fyi/enable-dark-mode-in-high-sierra-sort-of/
# https://medium.com/@n1kk/how-to-tweak-macos-mojave-dark-mode-per-app-a5fab0574691
# https://stackoverflow.com/questions/52562383/is-there-a-way-to-toggle-dark-mode-on-off-for-individual-apps-in-macos-mojave
defaults write -g NSWindowDarkChocolate -bool TRUE
defaults write -g NSRequiresAquaSystemAppearance -bool FALSE
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool FALSE
defaults write com.google.Chrome _NSSystemAppearanceOverride DarkAppearance
defaults write com.apple.dt.Xcode _NSSystemAppearanceOverride DarkAppearance
# Or, you can use the following for "simulated" dark mode...
# Color codes taken from: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/#dynamic-system-colors
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --install-autogenerated-theme ""
@allyouaskfor
Copy link

Maybe you don't have Google Chrome installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment