duct-hextorgb
v1.0.0
Published
Package that converts hex color codes to rgb color codes
Downloads
10
Readme
using duct-hextorgb
Package that converts hex color codes to rgb color codes
Demo
https://codeduct.com/duct-hextorgb
duct-hextorgb setup
npm
npm i duct-hextorgb
Add the duct-hextorgb package in the component you want to use after installation.
import hexToRgb from 'duct-hextorgb'
ready to use
const rgbColor = hexToRgb("#ffffff")
This will return the hex code converted to rgb color code