color - GyldendalDigital/kobber GitHub Wiki

Module: color

Functions

isValidColor

isValidColor(color): boolean

Not supporting hsl or color names like "red"

Parameters

Name Type
color string

Returns

boolean

Defined in

packages/kobber-components/src/utils/color.ts:8


parseToRgb

parseToRgb(color): RgbColor | RgbaColor

Borrowed from polished

Parameters

Name Type
color string

Returns

RgbColor | RgbaColor

Defined in

packages/kobber-components/src/utils/color.ts:22