Skip to content

pantoken-root / packages/utils/src / elevationDeclarations

関数: elevationDeclarations() ​

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

ベータ

--instui-elevation-* の name/value ペア(それぞれが多層の box-shadow)。値は テーマ化されたドロップシャドウのカラー・トークンを参照するため、トークンシートが読み込まれる場所ではどこでもテーマごとに適応します。

戻り値 ​

[name: string, value: string][]

レベルおよびエイリアスごとに 1 つの [customProperty, value] ペア。

例 ​

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

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