> By default, the human pupil changes size depending on the amount of light in the environment
This is the key: Do you work on a very illuminated place? Use light mode. Do you work in somewhat darkness? Please use dark mode.
At least that's what I try to follow, otherwise at the end of the day my eyes gets very tired.