Package Exports
- @ricardo-jrm/use-color-converter
- @ricardo-jrm/use-color-converter/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ricardo-jrm/use-color-converter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🌘 @ricardo-jrm/use-color-converter
Convert colors with React
Install
npm install @ricardo-jrm/use-color-converter
yarn add @ricardo-jrm/use-color-converterUsage
import { useHexRgb, useRgbHex } from '@ricardo-jrm/use-color-converter';
useHexRgb('#30a14e')
-> {
r: 48,
g: 161,
b: 78,
}
useRgbHex(48, 161, 78)
-> '#30a14e'License
MIT © Ricardo <l1b3r_-> Mota (@ricardo-jrm)
Bootstrapped with 🟣@ricardo-jrm/supernova