How to Use Only a Dark Menu Bar and Dock in macOS Mojave

macOS Mojave introduces a full dark mode theme, but it also removes the option to use a dark background for just the menu bar and Dock. For those who like the look of a dark menu bar and Dock but find Mojave’s full dark mode to be too dark, here’s a terminal command that gives you the best of both worlds.