@riccox/colorify
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@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

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

Readme

Keywords

Package Sidebar

Install

npm i @riccox/colorify

Weekly Downloads

172

Version

0.3.0

License

MIT

Unpacked Size

19.4 kB

Total Files

6

Last publish

Collaborators

  • riccox