Skip to main content

Function: findFirstCssVarCustomPropertyReference()

function findFirstCssVarCustomPropertyReference(
value: string,
predicate?: (propertyName: string) => boolean
): string | undefined;

Defined in: _internal/css-value-analysis.ts:66

Find the first referenced custom property passed as the first var(...) argument, ignoring quoted text and comments.

Parametersโ€‹

valueโ€‹

string

predicate?โ€‹

(propertyName: string) => boolean

Returnsโ€‹

string | undefined