yannstatic/_sass/common/_function.scss
2024-10-31 20:18:37 +01:00

16 lines
336 B
SCSS

@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}-", "");
}