Skip to content

klippersubs/hsluv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@klippersubs/hsluv

CSS-ready HSLuv wrapper.

Install

yarn add @klippersubs/hsluv

Usage

import { hsluv } from '@klippersubs/hsluv';

console.log(hsluv(0, 100, 50)); // '#ea0064'
console.log(hsluv(0, 100, 50, 0.5)); // 'rgba(233,0,100,0.5)'

API

hsluv

  • Signature: (h: number, s: number, l: number, a?: number) => string.
  • Alias: hsl.

hpluv

  • Signature: (h: number, s: number, l: number, a?: number) => string.
  • Alias: hpl.

Releases

No releases published

Packages

No packages published