UNPKG

@actinc/dls

Version:

Design Language System (DLS) for ACT & Encoura front-end projects.

16 lines 813 B
/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export type ColorIndex = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | string; export declare const hexToRGB: (color: string) => number[] | undefined; export declare const RGBToHex: (r: number, g: number, b: number) => string; export declare const lightenRGB: (color: string, percentage: number) => string | undefined; export declare const figmaColorGenerator: (color: string) => Record<ColorIndex, string>; export declare const generatePaletteColors: <T extends { colorName: U; colorHEX: string; }, U extends string>(colors: T[]) => Record<U, Record<ColorIndex, string>>; //# sourceMappingURL=index.d.ts.map