Skip to content

pantoken / formats/components/src / elevationCss

函式: 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.

參數

options?

selector — 規則選擇器(預設為 :root)。

selector?

string

回傳

string

CSS 字串。

範例

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

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