UNPKG

@platform/css

Version:

Helpers for working with inline CSS.

14 lines (13 loc) 869 B
import * as tinycolor from 'tinycolor2'; export { ColorInput, Instance } from 'tinycolor2'; export declare const RED = "rgba(255, 0, 0, 0.1)"; export declare function create(value: any): tinycolor.Instance; export declare const black: () => tinycolor.Instance; export declare const white: () => tinycolor.Instance; export declare function mix(color1: tinycolor.ColorInput, color2: tinycolor.ColorInput, amount?: number): tinycolor.Instance; export declare function format(value: string | number | boolean | undefined): string | undefined; export declare function toGrayAlpha(value: number): string; export declare function toGrayHex(value: number): string; export declare function alpha(color: string, alpha: number): string; export declare function lighten(color: string, amount: number): string; export declare function darken(color: string, amount: number): string;