adobe / leonardo

Generate colors based on a desired contrast ratio
http://www.leonardocolor.io
Apache License 2.0
1.97k stars 108 forks source link

Bugfix apca #170

Closed NateBaldwinDesign closed 2 years ago

NateBaldwinDesign commented 2 years ago

Description

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