@use 'sass:math';

@function rem($pixel) {
  @if math.is-unitless($pixel) {
    @return math.div($pixel, 16)+rem;
  }
  @else {
    @error 'Don\'t use units when using the rem() function; only numbers.';
  }
}
@function em($pixel) {
  @if math.is-unitless($pixel) {
    @return math.div($pixel, 16)+em;
  }
  @else {
    @error 'Don\'t use units when using the em() function; only numbers.';
  }
}