0.3.0 • Published 5 months ago
@riccox/colorify v0.3.0
@riccox/colorify
A type-safe, simple color tool javascript util lib
IMPORTANT The main branch may be unstable or unavailable during development.
Please use release instead of main branch to obtain a stable version app
Demo
There is a live usage demo 👉 colorify, deploy on Codesandbox.
Usage
npm i @riccox/colorify --save
import { singleColorPalette, foregroundColor } from '@riccox/colorify';
// returns a new hex color string array by given primary color.
console.log(singleColorPalette('#0f0',12))
// return a new hex color string (#000 or #FFF) by given background color.
console.log(foregroundColor('#0f0'))
Development
git clone git@github.com:riccox/colorify-js.git
cd colorify-js
pnpm install