You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
364 B
18 lines
364 B
@function color-yiq($color, $dark: #212529, $light: #fff) {
|
|
$r: red($color);
|
|
$g: green($color);
|
|
$b: blue($color);
|
|
|
|
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
|
|
|
@if ($yiq >= 150) {
|
|
@return #343a40;
|
|
} @else {
|
|
@return #f8f9fa;
|
|
}
|
|
}
|
|
|
|
@function REM($pxSize:16px){
|
|
$remSize : $pxSize / $font-size-base !global;
|
|
@return #{$remSize}rem;
|
|
}
|