🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

adaptive-gradient

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adaptive-gradient

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

1.0.6
latest
Version published
Maintainers
1
Created

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
}

FAQs

Package last updated on 11 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts