Skip to content

pantoken-root / packages/utils/src / extractInstuiRefs

Mahi: extractInstuiRefs() ​

extractInstuiRefs(text): Set<string>

Beta

Ia ingoa o te rawa ritenga --instui-* e puta ana i ngā wāhi katoa i roto i text.

Ngā Tawhā ​

text ​

string

Whakahokia ​

Set<string>

Tauira ​

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

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