Skip to content

Function: cssValueSites()

ts
function cssValueSites(css): CssValueSites;

Defined in: packages/index/src/index.ts:367

Extract custom-property assignments (--name: value) and var(--name, fallback) references from CSS. Parsing lives here — the CSS-parsing package — so the linters and the language server share one extractor for the value-validation rules.

Parameters

css

string

The CSS source.

Returns

CssValueSites

The assignments and var(…) usages found.

Released under the MIT License