JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 287
  • Score
    100M100P100Q75184F
  • License MIT

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

Package Exports

  • adaptive-gradient

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (adaptive-gradient) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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
}