Options
All
  • Public
  • Public/Protected
  • All
Menu

Module typings

Index

Type aliases

Alpha

Alpha: C<"a">

C

C<K, T>: {}

Type parameters

  • K: string

  • T = number

Type declaration

HEX

HEX<T>: RawHEX & Alpha & HexType<T>

Type parameters

HSL

HSV

HexType

HexType<T>: C<"type", T>

Type parameters

Named

Named: RawNamed & Alpha

NumberType

NumberType: C<"type", Type>

OptionalHEX

OptionalHEX<T>: RawHEX & Partial<Alpha> & HexType<T>

Type parameters

OptionalHSL

OptionalHSL: RawHSL & Partial<Alpha> & NumberType

OptionalHSV

OptionalHSV: RawHSV & Partial<Alpha> & NumberType

OptionalNamed

OptionalNamed: RawNamed & Partial<Alpha>

OptionalRGB

OptionalRGB: RawRGB & Partial<Alpha> & NumberType

RGB

RawHEX

RawHEX: C<"x", string>

RawHSL

RawHSL: C<"h" | "s" | "l">

RawHSV

RawHSV: C<"h" | "s" | "v">

RawNamed

RawNamed: C<"n", string>

RawRGB

RawRGB: C<"r" | "g" | "b">

Type

Type: "percent" | "number" | "decimal"

Type

Type: "hex" | "hex3" | "hex4" | "hex6" | "hex8"

WCAG2Level

WCAG2Level: "AAA" | "AA"

WCAG2Size

WCAG2Size: "small" | "large"

Functions

Const isHSL

  • isHSL(c: C<string, any>): c is HSL

Const isHSV

  • isHSV(c: C<string, any>): c is HSV

Const isHex

  • isHex(c: C<string, any>): c is HEX

Const isNamed

  • isNamed(c: C<string, any>): c is Named

Const isRGB

  • isRGB(c: C<string, any>): c is RGB

Generated using TypeDoc