MCPcopy Index your code
hub / github.com/UI5/webcomponents / saveVariable

Function saveVariable

packages/tools/lib/css-processors/postcss-plugin.mjs:8–13  ·  view source on GitHub ↗
(variable, value, density)

Source from the content-addressed store, hash-verified

6const SELECTOR = ":host";
7
8const saveVariable = (variable, value, density) => {
9 if (!hostVariables.has(variable)) {
10 hostVariables.set(variable, {});
11 }
12 hostVariables.get(variable)[density] = value;
13}
14
15/**
16 * PostCSS plugin for handling CSS variables across density modes (cozy and compact).

Callers 1

OnceFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected