//convert px to rems
@function rem($size, $context: 16px) {
  @return (strip-units($size) / strip-units($context)) * 1rem;
}

//convert px to ems
@function em($target, $context: 16px) {
  @return (strip-units($target) / strip-units($context)) * 1em;
}

//convert px to percentages
@function px-percent($target: $grid-gap, $context: $ta-bp-xl) {
  @return ($target / $context) * 100;
}

//Adds line-height as number value -not px rem or % --- pass in numbers without units
@function line-height($heightValue: $default-px-line-height) {
  @return ($heightValue / $default-px-line-height ) * 1;
}

// Strips unit from value; mainly to be used for naming scss variables more concisely
@function strip-units($number) {
  @return $number / ($number * 0 + 1);
}
