Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin accessible-color($color: #000) {
- $red: red($color);
- $green: green($color);
- $blue: blue($color);
- color: rgb(
- (((($red * 299) + ($blue * 114) + ($green * 587)) - 128000) * -1000),
- (((($red * 299) + ($blue * 114) + ($green * 587)) - 128000) * -1000),
- (((($red * 299) + ($blue * 114) + ($green * 587)) - 128000) * -1000)
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement