REACT PALETTE
Extract prominent colors from an image
Install
npm i -S react-palette
Usage
import Palette from 'react-palette';// In your render...<Palette => data loading error <div => Text with the vibrant color </div> </Palette>
import usePalette from 'react-palette' const data loading error = <div => Text with the vibrant color</div>
Palette callback example
darkMuted: "#2a324b" darkVibrant: "#0e7a4b" lightMuted: "#9cceb7" lightVibrant: "#a4d4bc" muted: "#64aa8a" vibrant: "#b4d43c"
Notes
That library was created using node-vibrant
to extract the prominent colors.