Skip to content

pantoken / formats/components/src / elevationDeclarations

Functie: elevationDeclarations()

elevationDeclarations(): [string, string][]

Bèta

De --instui-elevation-* naam/waarde-paren (elk een meerlaagse box-shadow). Waarden verwijzen naar de thema-gebaseerde drop-shadow kleurtokens, zodat ze zich per thema aanpassen waar een token-sheet wordt geladen.

Retourneert

[string, string][]

Een [customProperty, value] paar per niveau en alias.

Voorbeeld

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

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