1.0.1 • Published 3 years ago

color-art v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

color-art

This is a Javascript Library which is a wraper around Color. This library enhances the Color library to lighten and darken a given color to any extent based on the props passed.

📖 Getting started

$ yarn add color-art

💻 Usage

import colorArt from 'color-art'

colorArt('red','light*')

Purpose of this library is to lighten or darken a given color.

We have a color factor of 0.23 to lighten the color and 0.14 to darken it.

Example: If we pass light as colorShade Prop then we will lighten the given color by 0.23 1. Similarly if we have dark* then we will darken it by 0.142

The * over here determines the level with which we are willing to increase the light or dark factor

💡 Props

  • General
PropTypeDefaultNote
color: mandatorystringSpecify the color you want to edit
colorShadestringSpecify the shade you want 'light' , 'dark', 'light', 'dark'.

✨ Credits