This gist has various tips to get your CLI tools aware of the appaerance of the system. If you terminal changes its background color from light to dark during late hours it is quite inconvenient to have the wrong colorschemes.
You can either install it with Homebrew or with npm
brew install dark-mode
npm install -g dark-mode-cli
brew install git-delta