Skip to content

Latest commit

History

History
24 lines (20 loc) 路 504 Bytes

README.md

File metadata and controls

24 lines (20 loc) 路 504 Bytes

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
}