Generate color swatches from CSS Custom Properties

I needed to generate some color swatches, but I wanted no repetition in the pattern library I’m working on, so I made this little tool.

It finds custom props, formats them and then returns back an array of objects. This is then used to generate swatches!

https://codepen.io/andybelldesign/pen/JxmLYQ

Hi 👋
I’m Andy, a freelance web designer

I’m not currently booking new projects, but you can support my work by buying “Every Layout”.

Buy Every Layout