@import "../settings/settings.globalVars";

@function get-base-font-size() {
  @if map-has-key($settings, "base") {
    $base: map-get($settings, "base");

    @if map-has-key($base, "fontsize") {
      @return map-get($base, "fontsize") * 1px;
    } @else {
      @error "Unknown 'fontsize' in #{$base}.";
    }
  } @else {
    @error "Unknown 'base' in #{$settings}.";
  }
}
