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: …; … }"