fixed palette implementation to comply with colors property on the options object