extract colors to vars
fixed bug in sample color swatches