Skip to content

pantoken-root / packages/utils/src / elevationDeclarations

פונקציה: elevationDeclarations() ​

elevationDeclarations(): [name: string, value: string][]

בטא

זוגות שם/ערך של --instui-elevation-* (כל אחד box-shadow רב-שכבתי). הערכים מפנים לטוקני הצבע של הצל הנופל בהתאמה לנושא, ולכן הם מסתגלים לפי הנושא בכל מקום שטבלת הטוקנים נטענת.

מחזיר ​

[name: string, value: string][]

זוג [customProperty, value] אחד לכל רמה ולכל כינוי.

דוגמה ​

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

elevationDeclarations(); // [["--instui-elevation-resting", "…"], ["--instui-elevation-above", "…"], …]