(QGIS 3 Since QGIS 3.22, there is the option to 'Invert colors' in raster layer symbology.22)
It's not perfect, but a quick way to get started with a Night Mode could be to check the Invert colors
option on the OpenStreetMap layer. Play around with the Gamma
and Colorize
options to tweak the colours.