,

Day 38: Random Color Scheme Generator (Complete)

Today I finished my random color scheme generator. The site’s colors now change to reflect the random color generated. This gives the user a practical example of what a site with these colors may look like.

I used CSS variables to set the page colors. This limits the amount of code needed to change the colors when multiple areas are effected, like with text colors. I use JavaScript to change the single CSS variable instead of each instance where the variable is used. This page is visible here: https://zidri.github.io/RandomColorScheme/ and the source code is on my GitHub.