Miss any of our Open RFC calls?Watch the recordings here! »

color-conversion-rgb

0.1.1 • Public • Published

color-conversion

Color conversion for HEX to RGBA, HSL to RGBA, RGB to RGBA. Gefault for get Hover color

How to use

import { getHoverRgbColor } from 'color-conversion';
 
getHoverRgbColor(HexColor || HSLColor || RGBColor, opacity)
// return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${opacity || 0.65})`;
 

Install

npm i color-conversion-rgb

DownloadsWeekly Downloads

74

Version

0.1.1

License

ISC

Last publish

Collaborators

  • avatar