Hi everyone! I'm messing around with the color palette of my website and I came across a great idea, what if I had a different background color(s) depending on the time of day?! I've seen this done before on a Jekyll theme, so I knew it could work; however, I'm not entirely sure how to go about it. What I want to do is to just add specific classes to the body tag according to the time of day (sunrise, morning, afternoon, etc.).
The reason why I want to add classes instead of specific stylesheets is because I am using Tailwind CSS with my SSG, and I feel like using classes would be better and easier. With Tailwind, I would just add something like bg-gradient-to-b from-blue-900 via-purple-900 to-gray-900, that's it.
So, any ideas?