Client wanted a color palette to be applied across the site. Ther function, called using
colorApp()
takes 2 parameters. The first one is required and is the repeated element that should be targeted. The second parameter is if you need a specific element inside of the first to have the color applied to it. I used classes instead of inline styles because you have more control over how that color is applied and the contents of that color. For example, making sure the font color is accessible.
colorApp("ul.first li", "");
colorApp("ul.second li", "h3");