// UNITS

// {
//   title: `Unit Stripper`,
//   example: `strip-unit(24px)`,
//   result: `24`
// }
@function strip-unit($num) {
  @return $num / ($num * 0 + 1);
}

// {
//   title: `Em Unit Converter`,
//   example: `em(24px)`,
//   result: `1.5em`
// }
@function em($value) {
  @return strip-unit($value) / 16 * 1em;
}

// {
//   title: `Rem Unit Converter`,
//   example: `em(24px)`,
//   result: `1.5em`
// }
@function rem($value) {
  @return strip-unit($value) / 16 * 1rem;
}

// {
//   title: `Em base 24 Converter`,
//   example: `base24(1)`,
//   result: `1.5em`
// }
@function base24($value) {
  @return strip-unit($value) * 1.5em;
}
