Skip to content

pantoken / formats/components/src / elevationCss

Συνάρτηση: elevationCss()

elevationCss(options?): string

Βήτα

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.

Παράμετροι

options?

selector — ο επιλέκτης κανόνα (προεπιλογή :root).

selector?

string

Επιστρέφει

string

Η συμβολοσειρά CSS.

Παράδειγμα

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

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