That makes sense, but... seems infeasible in practice? "The program"? I tell you what program I need to configure: all of them! Ideally even the programs I'm not even using yet.
I think I'll continue doing it my wrong way then: redefining the meanings to mean less/more contrasty. That allows me to effortlessly switch the terminal between light[0] and dark[1] backgrounds. I've done worse things: I also hijacked a part of the 256-colors-cube for my own purposes...
[0]: https://github.com/tasuki/dotrc/blob/master/.config/kitty/so...
[1]: https://github.com/tasuki/dotrc/blob/master/.config/kitty/so...