@use 'sass:math';

// Change px to rem
// We want to use rem for accessibility, but Figma uses px (which is also a bit easier for us
// to read and reason about). This mixin does the conversion for us.
@function px-to-rem($size, $baseTextSize: 16) {
  $new-size: math.div($size, $baseTextSize);

  @return $new-size + rem;
}
