scss warna putih hitam

@use "sass:color";


@if color.red($color) * 0.299 + color.green($color) * 0.587 + color.blue($color) * 0.114 < 186 {
  color: #fff;
} @else {
  color: #000;
}
lieven121