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
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i adaptive-gradient

    Weekly Downloads

    74

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • brene