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", "…"], …]