Skip to content

pantoken / formats/components/src / elevationCss

Funzione: elevationCss()

elevationCss(options?): string

Beta

Build the elevation token block: <selector> { --instui-elevation-*: … }. Shipped inside components.css (so shadows are intrinsic — no plugin, no extra import), and reusable by other layered outputs (e.g. the Pendo renderer) via the selector option.

Parametri

options?

selector — il selettore della regola (predefinito :root).

selector?

string

Restituisce

string

La stringa CSS.

Esempio

ts
import { elevationCss } from "@pantoken/components";

elevationCss(); // ":root { --instui-elevation-resting: …; --instui-elevation-above: …; … }"