claviska/jquery-miniColors — pull request #26 by jstanden (2012-08-20 23:13:41+00:00)
Title: A 'colorSwatches' option for displaying color swatches for presets, color schemes, favorite colors, etc.

I spent a while looking for a minimalistic, jQuery-based color picker with a tiny footprint. When I found jquery-miniColors I knew my search was over. I just needed one minor thing to make it perfect: I didn't want my users to have to copy/paste HEX color codes, or to split pixels trying to get the exact same color in two different fields when the input is hidden. The beauty of jquery-miniColors is that my users didn't need to be aware that HEX color codes existed at all.

I know that several other color picker projects are out there that let you enter HSB or RGB values directly. I didn't need anything that involved. I made this modification to add a couple small swatches below the color picker. The swatch colors can be provided in the 'colorSwatches' option, and that may be populated any way an app developer wishes. In my case, I'm using jquery-miniColors to pick colors for graphs in a dashboards feature, so I just picked a few high-contrast, distinct colors.

You can see a screenshot of this modification in action here:
http://wiki.cerb5.com/wiki/6.1#Color_picker

This is likely to be a very useful feature for everybody else, at the risk of taking one small step away from ultra-minimalism. If nothing else, this commit set can serve as a HOWTO for people to create the functionality.

Thanks for a great tool!