You can see it in action here.
returns an object with various swatches, the dimensions & height ratio of the original source file as well as a base64-ed 3x3px version that can be used as stylistic background or placeholder for optimistic image loading.
- install:
yarn add vibrant-loader
- require:
require('vibrant-loader!image.png')
yarn build-example
generates a simplistic showcase in example/build