When the Bible refers to most things (lightness vs. dark), it's meant to be allegorical. People who take the Bible literally don't know what they're doing. If you do so, you can say pretty absurd things especially from the Old Testament.
Light doesn't refer to sun, and gloom doesn't refer to clouds/rain.