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