I was looking at the CSS of a site and I noticed something that I never saw some one do before. They had at the top of the CSS file a list of all the colors they used for that site. It was inside a comment of course, but it had a description of what the color was for (ie. links, header, footer etc.) followed by the hex value. This is actually a really good idea. I know I often have to refer to my design concepts for colors, it would be nice to have that information on the same file that I’m working on. So from now on I think I will defiantly write the colors I use at the top of my CSS files.

October 12th, 2007 at 5:04 pm
I’ve been doing this for a few months now and its great. Found the tip on one of those top css tips lists on digg. It comes in handy to have a list of all colors sitting there at the top.