0.0.6 • Published 3 years ago

colordom v0.0.6

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

colordom.js

A thin wrapper over color.js which allows you to apply an image's dominant color to any DOM element's color styles (like background color, border color, text color, etc.)

To prevent recomputing a color, it stores the color value after the first time it figures it out.

<div color-backgroundColor="https://via.placeholder.com/150"></div>
<div color-borderColor="https://via.placeholder.com/150"></div>
<div color-color="https://via.placeholder.com/150">text</div>

screenshot

Scripts

Development

npm run dev

Build

npm run build

Publish

npm version x.x.x npm publish

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago