yannstatic/_sass/common/_function.scss

16 lines
336 B
SCSS
Raw Permalink Normal View History

2024-10-31 20:18:37 +01:00
@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}-", "");
}