make-tints
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

The simplest color tone function for JS

NPM version CI install size

Install

npm i make-tints

See it in action →

Usage

import {tint} from 'make-tints'

const tintBy = tint('#000')
tintBy(-20) //=> 000000 darker tints can be achieved by using negative percentages
tintBy(20) //=> 333333
tintBy(40) //=> 666666
tintBy(60) //=> 999999

License

MIT License © 2022 Reaper

Package Sidebar

Install

npm i make-tints

Weekly Downloads

1

Version

1.0.0-beta.1

License

MIT

Unpacked Size

5.15 kB

Total Files

6

Last publish

Collaborators

  • barelyreaper