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.
Parameters
Section titled “Parameters”source
Section titled “source”string
Returns
Section titled “Returns”Throws
Section titled “Throws”When the input is not a <color>, or carries
trailing text.