tn-color
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published
const color = Color('#33ACD3', fallback)
const dark = isDark('#33ACD3', threshold)
const light = isLight('#33ACD3', threshold)
const diff = colorDiff('#33ACD3', '#A3FCD3')
const contrast = new Contrast(bgcolor, fgcolor, fontSize)
Typings Type Default
fallback Color
threshold? Number (0-255) 165
diff Number (0-100)

Readme

Keywords

none

Package Sidebar

Install

npm i tn-color

Weekly Downloads

4

Version

5.1.0

License

MIT

Unpacked Size

12.9 kB

Total Files

37

Last publish

Collaborators

  • turnova