Topic: Change style

How it is possible to realize function which would check, what during day, and would load accordingly certain style? For example in the afternoon light, at night dark.