Skip to content

Function: cssValueSites() ​

ts
function cssValueSites(css, options?): CssValueSites;

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

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.

options? ​

parse? ​

(css) => Root_

Returns ​

CssValueSites

The assignments and var(…) usages found.

Released under the MIT License