UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

28 lines (27 loc) 642 B
import { ColorInstance } from 'color'; export type ColorMode = "rgb" | "hsv"; export type Channels = [number, number, number, number]; export type InternalColor = ColorInstance; export type ColorValue = string | RGB | RGBA | HSV | HSVA | HSL | HSLA; export interface RGB { r: number; g: number; b: number; } export type RGBA = RGB & ObjectWithAlpha; interface ObjectWithAlpha { a: number; } export interface HSV { h: number; s: number; v: number; } export type HSVA = HSV & ObjectWithAlpha; export interface HSL { h: number; s: number; l: number; } export type HSLA = HSL & ObjectWithAlpha; export {};