function colorToClass(color) {
  if (color === transparent) return undefined
  return classes[Number.parseInt(color.slice(1), 10)]
}
@param {string} color
  Color to convert.
@returns {string | undefined}
  Class name.