Use JSON.stringify with arrays also to avoid issues with arrays of objects
Show color palettes as gradients instead of separate DOM elements