kolora
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Kolora

Kolora is a lightweight, dependency-free library for color conversion between various formats such as RGBA, HEX, HSL. Ideal for developers, designers, and color enthusiasts looking to effortlessly translate color codes across different color spaces.

Usage

import { toHex } from 'kolora';

const rgba = [255, 100, 100, 0.5];
const hex = toHex(rgba); // Returns '#ff646480'
import { hexToHsl } from 'kolora';

const hex = '#ff6464';
const hsl = hexToHsl(hex); // Returns [0, 100, 70]

Supported Conversions

  • RGBA to HEX
  • HEX to RGBA
  • HEX to HSL
  • HSL to HSV

Package Sidebar

Install

npm i kolora

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.56 kB

Total Files

23

Last publish

Collaborators

  • tutizaraz