*** This post and link superseded by the ‘color map’ blog (see above) ***
The link provides a set of instructions and code which allow you to read the CSS files from a target application, then read CSS files from an existing site, and map the colors from the existing site into the target application, using sed.
This is brute force design, it would be very valuable for rapidly skinning an application to help a potential client visualize your application delivering their site.
The success of the approach is affected by the colors of both designs, this is a very simple method, the number of colors will impact how well they map.
The basic idea is to convert the colors from RGB into HSV, then reorder the HSV code into VSH - so the brightness takes precedence. In this case, it is assumed that the lightest colors will map to each other. Hue is virtually disregarded by its position.
The mechanics of the process are functioning as I wanted them to, although I haven’t tested it with live sites.
It also creates a shell script to generate image files of the colors, using ImageMagick, which is interesting but not actually used.
Requisite knowledge: Linux, PHP, bash, sed, regular expressions helpful.
I tried to put the text from the above link in the blog, but it didn’t work. Too many bizarre character strings.