Skip to content

pantoken-root / formats/components/src / elevationDeclarations

Função: elevationDeclarations() ​

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

Beta

Os pares nome/valor --instui-elevation-* (cada um um box-shadow de múltiplas camadas). Os valores referenciam os tokens de cor themed de drop-shadow, portanto se adaptam por tema sempre que uma folha de tokens for carregada.

Retorna ​

[name: string, value: string][]

Um par [customProperty, value] por nível e alias.

Exemplo ​

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

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