🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
(This isn't really a feature request but it seemed like the best place to put it.)
In an app I'm developing we needed a way to easily save and load sets of color swatches, and since other people may also find this useful, here's the code I implemented to add these functions to Pickr.
You pass an array of CSS colors to setSwatches(), same format as the swatches array in Pickr's create options. getSwatches() returns an array in the same format.
(This isn't really a feature request but it seemed like the best place to put it.)
In an app I'm developing we needed a way to easily save and load sets of color swatches, and since other people may also find this useful, here's the code I implemented to add these functions to Pickr.
You pass an array of CSS colors to setSwatches(), same format as the swatches array in Pickr's create options. getSwatches() returns an array in the same format.