F.lux / Redshift / Gammastep exist. On sunset, my screen becomes much darker and tinted yellowish / reddish. Then white backgrounds look fine, and I happily continue using my light color themes late into the night. Also, bias lighting on the wall behind the monitor helps my eyes avoid strain.