/**
 * Get a HEX value from the color's name and shade
 */
@function md-color($name, $shade: '500') {
	$color: map-get(map-get($md-colors, $name),$shade);

	@if $color {
		@return $color;
	} @else {
		@return log('COLOR PAIRING NOT FOUND! -- That $name + $shade combo does not exist!');
	}
}

/**
 * Error fallback (libsass < 3.1)
 * @credit: http://www.sitepoint.com/using-error-responsibly-in-sass/
 */
@function log($msg) {
  @if feature-exists('at-error') != true {
    @warn $msg;
  } @else {
    @error $msg;
  }
}
