Spectrum | javascript color picker
I wasnt satisfied with the solutions available for colorpicking. Many of them included a ton of images, were hard to skin or customize, or were very large plugins. Here are the goals I had when making a new one:
Just include the needed CSS and JavaScript files, and you are ready to go!
<script src=spectrum.js[1]></script> <link rel=stylesheet href=spectrum.css[2] />We dont need no stinkin images!
Nobody wants to add a bunch of code into their project. Spectrum is contained in two files, and both are careful not to mess with your existing code.
PolyfillI wanted an option for the most basic use case, a polyfill for the input[type=color][3] HTML5 control. This mode needs to work without JavaScript enabled - and fallback to an input[type=text] like ...