summaryrefslogtreecommitdiff
path: root/_sass/common/_function.scss
blob: 1de24929a95064a4130aaa0cbc4a80aff6a636c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@function get-color-theme($color) {
  @if lightness($color) < 15% {
    @return "dark";
  } @else {
    @return "light";
  }
}

@function breakpoint-infix($name, $breakpoints: default) {
  @if $breakpoints == default {
    $breakpoints: $responsive;
  }
  $min: map-get($breakpoints, $name);
  @return if($min != 0, "#{$name}-", "");
}