chroma.js no longer required for color calculations
As of v2.6 the chroma.js
dependency could be dropped completely. Instead of relying on JavaScript for the color calculations, CSS is now used. chroma.js
was mainly chosen because it allows the calculation of harmonic color gradients in well-suited color spaces like Lab. However, these color spaces are now also available in CSS using color-mix
and allow interpolating colors in the same manner.
Consequently, the bundle size of this package could be reduced by roughly 33% from 129 kB to 87 kB (minified, not gzipped) while keeping the functionality and API the same:

https://bundlephobia.com/package/react-activity-calendar@2.6.0