@use "sass:map";

/*
 * Get Font weight
 *
 * @param {String} $weight - The name of the weight you need
 *
 * @return {Number} - The CSS based font weight on the name
 */
@function font-weight($weight) {
  @if (map.has-key($fontWeight, $weight)) {
    @return map.get($fontWeight, $weight);
  } @else {
    @warn 'Couldn\'t find the font-weight: #{$weight}';
  }
}
