Skip to content

Commit

Permalink
feat 👍 adjust color filter
Browse files Browse the repository at this point in the history
  • Loading branch information
synchrovision committed Feb 26, 2022
1 parent 68ed37c commit 9576e4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/_trn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
$tone:extract_color_tone($val);
@if $tone {
$fl:append($fl,invert(50%));
$fl:append($fl,unquote('brightness(calc('+map-get($tone,l)+' * 1.7))'));
$fl:append($fl,sepia(100%));
$fl:append($fl,saturate(1000%));
$fl:append($fl,unquote('saturate(calc('+map-get($tone,s)+' * 0.7))'));
$fl:append($fl,unquote('hue-rotate(calc('+map-get($tone,h)+' - 34deg))'));
$fl:append($fl,unquote('hue-rotate(calc('+map-get($tone,h)+' - 40deg))'));
$fl:append($fl,saturate(300%));
$fl:append($fl,unquote('saturate(calc('+map-get($tone,S)+' * 4))'));
$fl:append($fl,brightness(160%));
$fl:append($fl,unquote('brightness('+map-get($tone,B)+')'));
}
}
@else{
Expand Down

0 comments on commit 9576e4b

Please sign in to comment.