UNPKG

imba

Version:

Intuitive and powerful language for building webapps that fly

12 lines (8 loc) 245 B
import * as cd from "colord"; import lchPlugin from "colord/plugins/lch"; cd.extend([lchPlugin]); export const colord = cd.colord; export function toLchArray(str) { let res = cd.colord(str).toLch(); return [res.l, res.c, res.h, res.a]; }