As far as I can tell there is no API to make an NSColor that adapts to dark mode: you have to use asset catalogs. Therefore I am writing code to generate asset catalogs :(