Skip to content

pantoken / formats/components/src / elevationDeclarations

פונקציה: elevationDeclarations()

elevationDeclarations(): [string, string][]

בטא

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

מחזיר

[string, string][]

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

דוגמה

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

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