krasimir / absurd

A JavaScript library with superpowers
http://absurdjs.krasimirtsonev.com/
MIT License
1.38k stars 90 forks source link

Lighten and Darken not working as expected #131

Open Spydr331 opened 7 years ago

Spydr331 commented 7 years ago

Hi,

I was evaluating the library for a project of mine and I was trying to see if the lighten and darken functions worked the same as I was expecting. I started with the same color #dc2a2a, and lightened it by 37% for one color and darkened it by 6% as a second color, in both scss (using sassmeister.com for reference) and absurd. These were the results, why are they different?

scss: dark: #c72121 light: #f7cccc

absurd: dark: #cf2727 light: #ff3a3a

krasimir commented 7 years ago

I see. We probably use different algorithms.