Reverses polarity of APCA in searchColors function
Removes notion of polarity in Leonardo for simplification of use. Ie, targeting a contrast of 75 should always be "75" in Leonardo, regardless of whether it's 75 or -75 in actual APCA calculations.
Why alter polarity?
Leonardo already has a notion of polarity within the context of themes. Negative values mean contrast goes darker in dark themes and lighter in light themes. Introducing APCA's polarity into the mix would convolute the existing model in Leonardo.
This update does not affect the actual polarity calculations in APCA, as text and background are still appropriately passed to APCA formula.
Description
searchColors
function75
or-75
in actual APCA calculations.Why alter polarity? Leonardo already has a notion of polarity within the context of themes. Negative values mean contrast goes darker in dark themes and lighter in light themes. Introducing APCA's polarity into the mix would convolute the existing model in Leonardo.
This update does not affect the actual polarity calculations in APCA, as text and background are still appropriately passed to APCA formula.
Motivation
Screenshots
To-do list