http://www.perlmonks.org?node_id=20145

Buttons, buttons, buttons - they are anywhere and everywhere. No matter how simple a web-application is - they are there.
I have just one problem with buttons - they are GREY as in boring, concrete and a rainy day. I want them blue, green, yellow, red, you name it, any cool color but GREY.
Since our hex-packing abbot BBQ seems to have made embedded images the latest fashion, I’ve decided to contribute with one of my hacks in this field.
I’m a big fan of letting the users of my web-applications control the look of the HTML I produce for them so I let them control the colors and fonts of most things as I said here. Being a bit extreme, I go a bit further by letting them control the colors of the push buttons (images) in various parts of my apps to match their choice of colors. Here is some code I wrote to generate custom colored buttons.
This is how I do it, but as we all know TIMTOWTDI.

/brother t0mas