UNPKG

1.13 kBTypeScriptView Raw
1import { HSLColor, HSBColor } from './color-types';
2export declare function lightenColor(color: HSLColor | string, lighten?: number): string | {
3 lightness: number;
4 hue: number;
5 saturation: number;
6};
7export declare function darkenColor(color: HSLColor | string, lighten?: number): string | {
8 lightness: number;
9 hue: number;
10 saturation: number;
11};
12export declare function saturateColor(color: HSLColor | HSBColor | string, saturate?: number): string | {
13 saturation: number;
14 brightness: number;
15 hue: number;
16} | {
17 saturation: number;
18 lightness: number;
19 hue: number;
20};
21export declare function createDarkColor(color: HSLColor | string, darkness: number, saturation: number): string | {
22 saturation: number;
23 brightness: number;
24 hue: number;
25} | {
26 saturation: number;
27 lightness: number;
28 hue: number;
29};
30export declare function createLightColor(color: HSLColor | string, lightness: number, saturation: number): string | {
31 saturation: number;
32 brightness: number;
33 hue: number;
34} | {
35 saturation: number;
36 lightness: number;
37 hue: number;
38};