I'm a strong believer in night light / f.lux / color temperature changes, but dark mode complements it nicely when working at night. Yes, it sucks to work at night when you need to go to bed. But there is a huge perceptual difference I can feel between f.lux + dark mode or f.flux without it. Using something like Dark Reader on Firefox/Chrome, you can achieve Internet-wide dark mode easily. I think this is ideal if you're in the unfortunate position of needing it. It may decrease legibility but it beats feeling like having ones retinas burned out at night.