Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scss color black white

@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;
}
 
PREVIOUS NEXT
Tagged: #scss #color #black #white
ADD COMMENT
Topic
Name
6+4 =