1.0.0-alpha.5 • Published 1 year ago

@takayoshiotake/color-toning v1.0.0-alpha.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@takayoshiotake/color-toning

Installation

npm install @takayoshiotake/color-toning

Example

import { lightness, hueRotate, saturate } from '@takayoshiotake/color-toning';

// This is same as darken(#003ee5, 10%) of Sass.
lightness("#003ee5", -0.1);
// "#0030b2"

// Complementary color:
hueRotate("#003ee5", 180);
// "#e5a700"

saturate("#003ee5", -1);
// "#737373"