< Retour au blog

CSS and PHP generator for Gutenberg Color Palettes

Publié le

dans la catégorie


Since I’ve been creating themes compatible with the WordPress editor (Gutenberg), there is one task that is very repetitive and boring, and that’s the creation of color palettes.

Indeed, you have to declare a PHP array, then for each color, create two CSS rules: one for the text colors and one for the background colors.

A few months ago, I created a small tool that allows me, by filling out a form, to generate all this code. It was a simple HTML document and some JavaScript.

I decided to improve this tool and to share it, it will surely be useful to other lazy people like me!

The tool is hosted on my site, test it and let me know if it’s useful for you ?

Capture d'écran de l'outil de génération de palettes de couleurs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.