compile palette library for refresh colors