Skip to content

pantoken-root / panda

panda ​

Compatibility ​

Target: Panda CSS. Current format: Panda token utility extraction from the Pantoken preset. Minimum host version: 1.12.1. Tested through 2.2.0. Newer releases require review.

Full compatibility matrix

تجربی

@pantoken/panda — پیش‌تنظیم توکن طراحی Instructure برای Panda CSS.

toPandaPreset هر IR را تبدیل می‌کند؛ pantokenPreset پیش‌تنظیم آمادهٔ rebrand است. آن را در panda.config.ts presets خود جای دهید، و شرط _dark به‌طور خودکار توکن‌های light-dark() مربوط به pantoken را دنبال می‌کند.

نمونه ​

panda.config.ts

ts
import { defineConfig } from "@pandacss/dev";
import { pantokenPreset } from "@pantoken/panda";
export default defineConfig({ presets: [pantokenPreset] });
// then: css({ color: "token(colors.color-text-base)" })

رابط‌ها ​

نام‌های مستعار نوع ​

متغیرها ​

توابع ​

ارجاعات ​

default ​

تغییر نام می‌دهد و دوباره صادر می‌کند pantokenPreset