1@function get-color-theme($color) { 2 @if lightness($color) < 15% { 3 @return "dark"; 4 } @else { 5 @return "light"; 6 } 7} 8 9@function breakpoint-infix($name, $breakpoints: default) { 10 @if $breakpoints == default { 11 $breakpoints: $responsive; 12 } 13 $min: map-get($breakpoints, $name); 14 @return if($min != 0, "#{$name}-", ""); 15}