adaptive-gradient

A JS library to auto-suggest nice looking gradients and recommendation on font-color

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
adaptive-gradient
1.0.66 years ago6 years agoMinified + gzip package size for adaptive-gradient in KB

Readme

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
}