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
}

Readme

Keywords

none

Package Sidebar

Install

npm i adaptive-gradient

Weekly Downloads

68

Version

1.0.6

License

MIT

Last publish

Collaborators

  • brene