@function withDensity($base, $density: null) {
  @if ($density) {
    @return calc($base * $density);
  } @else {
    @return calc($base * var(--sl-density));
  }
}
