0.2.1 • Published 2 years ago

colorish v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

colorish

Objectify alpha hex values

Usage

import colorish from 'colorish'

let colors = {
	iris: '#c4a7e7',
	gold: '#f6c177',
	pine: '#31748f',
}

let mutedColors = colorish(colors, 0.5)
// => { iris: '#c4a7e780', gold: '#f6c17780', pine: '#31748f80' }

let rgbColors = colorish(colors, 0.5, (color) => rgbHex(color))
// => { iris: 'rgb(196, 167, 231, 0.5)', gold: 'rgb(246, 193, 119, 0.5)', pine: 'rgb(49, 116, 143, 0.5)' }

Learn more about what colorish can do here

Related

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago