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 — Panda CSS के लिए एक Instructure design-token प्रीसेट।

toPandaPreset किसी भी IR को परिवर्तित करता है; pantokenPreset तैयार-से-मिले हुए rebrand प्रीसेट है। इसे अपने panda.config.ts presets में फैलाएँ, और _dark कंडीशन pantoken के light-dark() टोकन्स को स्वचालित रूप से ट्रैक करता है।

उदाहरण ​

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 का नाम बदलता है और पुनः-export करता है।