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
We currently use a package called Leonardo JS API to generate the colors for our color-system. This is not a very elegant solution because they base their color generation off of contrast, rather than lightness and luminance from the API. It also gives us a bit less control for how we want to generate the colors. Behind the scenes Leonardo uses Chroma.js to generate colors with relative luminance that also have color interpolation built in.
Change to use Chroma.js to generate all the colors based on relative luminance.
Keep using HSLuv lightness-calculations for the Base- and contrast colors for better human color-perception
Move the luminance values to its own file
Simplify logic with Ramda
The text was updated successfully, but these errors were encountered:
We currently use a package called
Leonardo JS API
to generate the colors for our color-system. This is not a very elegant solution because they base their color generation off of contrast, rather than lightness and luminance from the API. It also gives us a bit less control for how we want to generate the colors. Behind the scenesLeonardo
usesChroma.js
to generate colors with relative luminance that also have color interpolation built in.Chroma.js
to generate all the colors based on relative luminance.The text was updated successfully, but these errors were encountered: