@14ch/color-palette-generator
Version:
A comprehensive color palette generation library with support for color scales, combinations, and transparency
11 lines (10 loc) • 582 B
TypeScript
import type { RGB, HSL } from "./types";
export declare const validateHexColor: (color: string) => boolean;
export declare const rgbToHex: ({ r, g, b }: RGB) => string;
export declare const hexToRGB: (hex: string) => RGB;
export declare const rgbaToHex: (rgba: string) => string;
export declare const hexToRGBA: (hex: string, alpha: number) => string;
export declare const rgbToHSL: ({ r, g, b }: RGB) => HSL;
export declare const hslToRGB: ({ h, s, l }: HSL) => RGB;
export declare const hexToHSL: (hex: string) => HSL;
export declare const hslToHex: ({ h, s, l }: HSL) => string;