Skip to content

pantoken-root / packages/utils/src / extractInstuiRefs

Funzione: extractInstuiRefs() ​

extractInstuiRefs(text): Set<string>

Beta

Ogni nome di custom-property --instui-* che appare ovunque in text.

Parametri ​

text ​

string

Restituisce ​

Set<string>

Esempio ​

ts
import { extractInstuiRefs } from "@pantoken/utils";

extractInstuiRefs(".b { color: var(--instui-color-text-base); }");
// → Set { "--instui-color-text-base" }