An open API service indexing awesome lists of open source software.

https://github.com/dimitrinicolas/lepto-vibrant-color

Lepto plugin using node-vibrant
https://github.com/dimitrinicolas/lepto-vibrant-color

lepto lepto-plugin

Last synced: 12 months ago
JSON representation

Lepto plugin using node-vibrant

Awesome Lists containing this project

README

          

# lepto-vibrant-color

```console
$ npm i -D lepto-vibrant-color
```

See [lepto documentation](https://github.com/dimitrinicolas/lepto) for usage.

This plugin use the [`node-vibrant`](https://github.com/akfish/node-vibrant) module.

Default options:
```js
"use": [
{
"name": "lepto-vibrant-color"
}
]
```

![lepto-vibrant-color demo](picture.png)

The different vibrant colors are:

* vibrant
* lightVibrant
* darkVibrant
* muted
* lightMuted
* darkMuted

## Usage advices

If you use an image as a css `background-image`, you can easily set the element's `background-color` to one of its vibrant color. Don't worry, `background-image` will always override `background-color` when the image is loaded. You could also use the `background` shortcut:

```html


```

## License

This project is licensed under the [MIT license](LICENSE).