CSS-ready HSLuv wrapper.
yarn add @klippersubs/hsluv
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)'
- Signature:
(h: number, s: number, l: number, a?: number) => string
. - Alias:
hsl
.
- Signature:
(h: number, s: number, l: number, a?: number) => string
. - Alias:
hpl
.