You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently possible to use alpha to achieve the correct outcome, but it relies on the background of the containing element to be white, which is not 100% predictable.
Is your feature request related to a problem? Please describe.
I'd like to use the
mix
function within chroma.js to transform colours.Describe the solution you'd like
The capability of using design tokens to
modify
a colour with themix
function, described here: https://gka.github.io/chroma.js/#chroma-mixResulting in a token setup like this:
Describe alternatives you've considered
Using the
brighten
function results in undesirable colours.Currently the
mix
function works (with limitations), as the defaultratio
of0.5
and the defaultmode
oflrgb
is being applied with this token setup:It is currently possible to use
alpha
to achieve the correct outcome, but it relies on the background of the containing element to be white, which is not 100% predictable.The text was updated successfully, but these errors were encountered: