code: function(color) {
                  color = Color.parse(color);
  
                  var ret = null,
                      minDistance = null,
                      appearances = this.$.appearances;
  
                  if (appearances) {
                      appearances.each(function(appearance) {
                          var distance = color.distanceTo(appearance.getMainColor());
                          if (minDistance === null || distance < minDistance) {
                              minDistance = distance;
                              ret = appearance;
                          }
                      });
                  }
  
                  return ret;
              }
docs: *
  Returns closest appearance for Color
  @param {String|Color} color
  @return {*}