get-best-contrast-color

v0.3.1
Calculate the color in an array of colors that gives the highest contrast to another color.
color contrast contrast-ratio accessibility a11y luminance relative-luminance text-legibility

build

babel src -d build

lint

eslint --max-warnings=0 src

mocha

mocha --require @babel/register

postpublish

git push --tags

prepublish

yarn build && yarn test

release

np

test

yarn lint && yarn mocha
npm i get-best-contrast-color

Metadata

  • GPL-3.0
  • Whatever
  • Just Thomas Hiorth Misund
  • released 7/16/2019

Downloads

Maintainers