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 را تغییر نام می‌دهد و مجدداً صادر می‌کند