Skip to content

parseCssColor

parseCssColor(source): CssColor

Defined in: packages/format-css-color/src/parse-css-color.ts:395

Parses one CSS <color>.

O(n) in the source length, single pass, no backtracking beyond one identifier.

string

CssColor

When the input is not a <color>, or carries trailing text.