jpmorganchase / salt-ds

React UI components built with a focus on accessibility, customization and ease-of-use
https://www.saltdesignsystem.com
Apache License 2.0
132 stars 89 forks source link

Remove react-color dependency #162

Open origami-z opened 2 years ago

origami-z commented 2 years ago

The ColorPicker component uses react-color for some visualisation, which we need to replace mostly due to bundle size.

https://bundlephobia.com/package/@jpmorganchase/uitk-lab@0.1.0

Only SketchPicker is used in ColorPicker, and it should be replaceable by some gradients and drag/drop events.

Color Picker

joshwooding commented 2 years ago

https://colorjs.io/ might be useful