/// Fetching a UI color from the $ui-colors map
///
/// @param {string} color-name - a key from the $colors map
///
/// @returns {color} - the corresponding color value from the $ui-colors map
///
@function ui-color($color-name) {
  // like dodgerblue, are interpreted as "dodgerblue", not "#1E90FF"
  
  // back compat issues
  @if not map-has-key($ui-colors, quote($color-name)) {
    $color-name: "u-#{$color-name}"
  }

  @if not map-has-key($ui-colors, quote($color-name)) {
    @error "#{$color-name} is not an Avvo UI color. Prefix your color with u-";
  }

  @return map-get($ui-colors, quote($color-name));
}
