A type-safe, simple color tool javascript util lib
npm install @riccox/colorify!GitHub Workflow Status
!release
!stars
!issues
!last-commit
!license
#### 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
There is a live usage demo 👉 colorify, deploy on Codesandbox.
``sh`
npm i @riccox/colorify --save
`typescript
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'))
`
`sh
git clone git@github.com:riccox/colorify-js.git
cd colorify-js
pnpm install
``