function isValidColor (color) {
  return !!getColorCSS(color)
}
Test if a string contains a valid color name or code.
@param {string} color
@returns {boolean} returns true if a valid color, false otherwise