adaptive-gradient

1.0.6 • Public • Published

adaptive-gradient npm version

A super simple JS library that suggests you a background gradient with font-color shading suggestion.

Image

Installation:

npm install -S adaptive-gradient

Javascript:

var gradient = require('adaptive-gradient');
console.log(gradient('#ba1c1c'));

Output:

{
  start: 'BA1C1C',
  end: 'C7437A',
  fontShouldBeLight: true
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.6137latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.6137
1.0.52
1.0.42
1.0.32
1.0.22
1.0.12
1.0.02

Package Sidebar

Install

npm i adaptive-gradient

Weekly Downloads

149

Version

1.0.6

License

MIT

Last publish

Collaborators

  • brene