Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

bldng/vibrant-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vibrant-loader

A web pack loader giving access to the vibrant/dominant colors of images.

header image

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.

Usage

  1. install: yarn add vibrant-loader
  2. require: require('vibrant-loader!image.png')

yarn build-example generates a simplistic showcase in example/build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published