// ===================================================
// Fontfamily
// ===================================================

/// Function for including Font Families from the Fontstack list.
/// It is also possible to prepand own Fonts to the Stack
///
/// @group core - fontfamily
///
/// @param  {string} $family - Font-Family from the Stack
/// @param  {list}   $append - Additional Fonts that prepend to the list
///
/// @example scss - scss
///   .text {
///     font-family: ff('helvetica');
///     font-family: ff('arial', 'Montserrat');
///   }
///
/// @example css - css
///   .text {
///     font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
///     font-family: "Montserrat", Arial, sans-serif;
///   }
@function ff($family, $append...) {
  @if map-has-key($meow-fontstack-map, $family) {
    @if length($append) > 0 {
      @return append($append, map-get($meow-fontstack-map, $family), comma);

    } @else {
      @return map-get($meow-fontstack-map, $family);
    }

  } @else {
    @if map-filled($meow-fontstack-map) {
      @warn 'The Fontstack "#{$family}" are not available in the Fontstackmap Map! Possible Fontstacks: #{map-keys($meow-fontstack-map)}';
    } @else {
      @warn 'There is not Fontstack Map Available'
    }
  }
}
