Creating Color Palette Options within a Theme using Sass

I’ve found in my theme development the need to have different color palettes available as options to choose from within my themes. Over time, I’ve developed a process for doing this using Sass and the theme customizer.

We’ll go over this process to create color palette options within a theme’s customizer using a combination of Sass lists, Sass’ @each loop, a custom Control class and a filter hook.