Tint or shade color.
Similar to Bourbon tint and shade functions (see test case).
npm install tint-shade-color --save
import { tint, shade } from 'tint-shade-color';
tint('#6ecaa6', 0.4); // #a8dfca
shade('#ffbb52', 0.6); // #664b21
Returns: string
Mixes a color with white (if tint) or black (if shade).
Type: string
Color to mix with white (if tint) or black (if shade). It should be a valid hex color.
Type: number
Default: 1
The amount of white (if tint) or black (if shade) to be mixed in.
Original function taken from
Sass mix()
function gist.
Tested in IE9+ and all modern browsers.
For automated tests, run npm run test:automated
(append :watch
for watcher
support).
MIT © Ivan Nikolić