Skip to content

pantoken / packages/utils/src / elevationDeclarations

Function: elevationDeclarations()

elevationDeclarations(): [string, string][]

Beta

The --instui-elevation-* name/value pairs (each a multi-layer box-shadow). Values reference the themed drop-shadow colour tokens, so they adapt per theme wherever a token sheet is loaded.

Returns

[string, string][]

One [customProperty, value] pair per level and alias.

Example

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

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