Skip to content

isColorString

isColorString(s): boolean

Defined in: utils/helpers.ts:230

Quick test for whether a string already looks like a CSS colour the canvas can consume directly. Tolerates leading whitespace. Used by resolveData to decide whether to pass colorField values through verbatim or hash them through the palette.

string

boolean