Skip to content

pantoken / stacking

stacking

베타

@pantoken/plugin-stacking — 명명된 z-index 깊이.

InstUI's View exposes a stacking scale (deepest, below, above, topmost) so layers stack predictably instead of by hand-tuned magic numbers. This plugin emits --instui-stacking-<level> tokens, resolved to concrete z-index values from the shipped --instui-component-view-stacking-* tokens, for consumers using the lower-level @pantoken/css/@pantoken/tokens pipeline directly. The matching .instui-stack-<level> utility classes now live in @pantoken/components' own stacking utility.

예제

ts
import { buildTokens } from "@pantoken/core/build";
import { stacking } from "@pantoken/plugin-stacking";

const tokens = buildTokens({ theme: "rebrand", plugins: [stacking()] });
// → includes --instui-stacking-topmost: …

인터페이스

변수

함수

참조

default

이름을 변경하고 재내보냅니다 stacking