Skip to content

pantoken / packages/core/src / isContextual

פונקציה: isContextual()

isContextual(value): boolean

בטא

נכון כאשר ערך לא יכול להיות ערך התחלתי מטיפוס @property (var() / light-dark()).

פרמטרים

value

string

מחזיר

boolean

דוגמה

ts
import { isContextual } from "@pantoken/core";

isContextual("var(--x)");            // → true
isContextual("light-dark(#fff, #000)"); // → true
isContextual("#fff");                // → false