Hi @rtivital! Love this project, but noticed that you're using react-color which doesn't support tree-shaking, costs you more than 140 KB, and works quite slow. Also, I saw your attempts to customize their inlined styles (it hurts).
I had the same problems several months ago and that's why I and few other guys have developed react-colorful. It's a modern, fas and lightweight alternative to react-color.
react-colorful is...
20+ times lighter than react-color
Works waaay faster
Tree-shakeable
Has no dependencies
Well-tested and written in strict TS
And it fits better for your purposes because:
Has stand-alone HexColorInput component
Customizable (forget about & > div > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1))
I kept the default react-colorful's picker styles, but if you want to change it somehow, let me know:
Hi @rtivital! Love this project, but noticed that you're using react-color which doesn't support tree-shaking, costs you more than 140 KB, and works quite slow. Also, I saw your attempts to customize their inlined styles (it hurts).
I had the same problems several months ago and that's why I and few other guys have developed
react-colorful
. It's a modern, fas and lightweight alternative toreact-color
.react-colorful is...
react-color
And it fits better for your purposes because:
HexColorInput
component& > div > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1)
)I kept the default react-colorful's picker styles, but if you want to change it somehow, let me know:
Hope it helps)