Skip to content

API ​

pantoken छोटे, एक-उद्देश्य वाले पैकेजों का एक मोनोरिपो है जिन्हें बकेट्स में समूहित किया गया है। वह पैकेज इंस्टॉल करें जो आपके कार्य के लिए उपयुक्त हो, या संहिताबद्ध pantoken पैकेज इंस्टॉल करके उसके सबपाथ से इम्पोर्ट करें (उदाहरण के लिए pantoken/css, pantoken/react, pantoken/tailwind)।

Core ​

नेटिव और साइट-जनरेटर लक्ष्य, CLI द्वारा या उनके अपने API से इमिट किए जाते हैं।

PackageWhat it does
@pantoken/modelZero-dependency TypeScript types: the Token shape and the plugin contract.
@pantoken/coreResolves the upstream tokens and icons into the canonical IR, and renders CSS.
@pantoken/tokensThe resolved IR vendored as static JSON, per theme, plus the raw Tokens Studio source.
@pantoken/utilsThe token resolver, reference regexes, case and color helpers, drift checks, and the token→utility-class emitters.
@pantoken/plugin-kitBuild and compose pantoken plugins with definePlugin.
@pantoken/clipantoken generate <target> — emit native and platform source.

Formats ​

वैकल्पिक ट्रांसफ़ॉर्म्स जो टोकन या CSS आउटपुट का विस्तार करते हैं। देखें Plugins.

PackageOutput
@pantoken/css@property-typed CSS with light-dark() and data-URI icons.
@pantoken/scssSCSS variables, resolved to a single mode.
@pantoken/lessLess variables.
@pantoken/stylusStylus variables.
@pantoken/dtcgA W3C Design Tokens (DTCG) document.
@pantoken/tokensThe IR as JavaScript and JSON (also listed under Core).
@pantoken/iconsAn ergonomic view over the icon tokens.
@pantoken/icon-fontAn icon web font (TTF, WOFF2) plus its CSS.
@pantoken/componentsAn InstUI-look CSS component library (button, alert, table, and more) plus a base reset with focus ring, prose styling, cross-cutting utilities, and the brand fonts. See Components.
@pantoken/inline-stylesGeneric CSS-to-HTML inlining for platform integrations.

Renderers ​

मोनोरिपो के स्वयं के बिल्ड, डॉक्स, और डेमो इन्फ्रास्ट्रक्चर। अधिकांश आंतरिक हैं, पर टुकड़े स्व-विहित हैं, इसलिए यहाँ दस्तावेज़ित हैं और कुछ अपने आप npm पर शिप होते हैं।

PackageFor
@pantoken/reactReact hooks, <Icon>, and a token provider.
@pantoken/vue, @pantoken/svelte, @pantoken/angularThe web component, wired into each framework.
@pantoken/react-nativeStyleSheet-friendly token objects (no CSS variables).
@pantoken/web-components<instui-icon> and styled primitives, framework-agnostic.
@pantoken/astroToken setup for Astro sites.
@pantoken/react-markdown, @pantoken/rehypeIcon tokens and swatches in Markdown.
@pantoken/markdown-itA markdown-it plugin for icon codes and color swatches.
@pantoken/css-in-jsA type-safe theme for styled-components and Emotion.
@pantoken/muiA Material UI theme.
@pantoken/bootstrap, @pantoken/shadcnCSS-variable bridges for Bootstrap and shadcn/ui.
@pantoken/foundationA Sass settings override and CSS overlay for Foundation.
@pantoken/docusaurus, @pantoken/vitepressThemes for Docusaurus and VitePress.
@pantoken/mintlifyA Mintlify docs.json theme (colors + background).
@pantoken/storybookA Storybook theme.
@pantoken/pendoInstructure-styled global CSS for Pendo guides.

Bundlers ​

BuildIconFontOptions

PackageFor
@pantoken/viteA Vite plugin with virtual modules and CSS injection.
@pantoken/nextwithPantoken for Next.js transpilePackages.
@pantoken/webpackA webpack plugin.
@pantoken/postcssThe @pantoken; at-rule.
@pantoken/tailwindA Tailwind preset.
@pantoken/pandaA Panda CSS preset.

Platforms ​

कन्ज्यूमर-फेसिंग AI सेटअप एसेट्स। ये उन प्रोजेक्ट्स के लिए हैं जो pantoken का उपयोग करते हैं, pantoken के विकास के लिए नहीं।

PackageOutput
@pantoken/swiftSwift source plus a SwiftPM manifest stub.
@pantoken/androidAndroid XML resources.
@pantoken/composeJetpack Compose Kotlin.
@pantoken/flutterFlutter Dart.
@pantoken/rustRust consts for egui or iced.
@pantoken/wordpressA WordPress block-theme theme.json.
@pantoken/vanillaA Vanilla Forums variables.json.
@pantoken/drupalDrupal theme assets.
@pantoken/hugo, @pantoken/jekyllHugo and Jekyll site data.
@pantoken/emailInline-friendly values for HTML email.

Design ​

  • @pantoken/ai AGENTS.md, llms.txt, और असिस्टेंट/एडिटर नियम (Cursor, Copilot, Windsurf, Claude Code) को एक कन्ज्यूमर रिपॉजिटरी में इंस्टॉल करता है।
PackageOutput
@pantoken/figmaA Figma Variables payload.
@pantoken/swatchesColor swatches (ASE, GPL, Sketch) plus a viewable SVG specimen sheet.

Plugins ​

वे प्लगइन्स जिन्हें हम उन टूल्स के लिए बनाते हैं जिनके साथ हम काम करते हैं, होस्ट के हिसाब से समूहित। ये standalone और publishable हैं।

PackageWhat it adds
@pantoken/plugin-stackingNamed z-index depths as --instui-stacking-* tokens.
@pantoken/plugin-visual-debugThe -with-visual-debug layout-debugging outline.
@pantoken/plugin-simple-iconsBrand icons from simple-icons.
@pantoken/plugin-logosInstructure product logos as SVGs, data URIs, and image tokens.
@pantoken/plugin-prune-custom-propsA PostCSS plugin that drops unused custom properties.

Tools ​

मोनोरिपो के लिए बिल्ड, डॉक्स, और डेमो अवसंरचना। अधिकांश आंतरिक हैं, लेकिन ये हिस्से हैं स्वयं-निहित, इसलिए हम उन्हें यहाँ दस्तावेज़ करते हैं और कुछ अपने आप npm पर प्रकाशित होते हैं।

PackageWhat it does
@pantoken/aggregateGenerates the unified pantoken package barrel and exports from its dependencies.
@pantoken/validate-generatedThe drift gate: checks every generated stylesheet resolves against the token IR.
@pantoken/demoThe self-hosted live-demo runner: resolves a @demo spec to an iframe and renders bare HTML/CSS/JS same-origin, token-themed.
@cssdoc/core (external)A generic CSS documentation extractor (TSDoc, for CSS): parses doc-comments + the CSS AST into a model the docs emit as the CSS API reference. Lives in its own repo; consumed via a link dependency.

@pantoken/validate-generated एक रन-वन-बार स्क्रिप्ट है (जिसे pnpm run ready) द्वारा बुलाया जाता है, इसलिए इसका कोई API पृष्ठ नहीं है; दूसरों के हैं।

AI ​

@pantoken/ai — pantoken का उपयोग करने वाली परियोजनाओं के लिए उपभोक्ता-उन्मुख एजेंट एसेट्स (pantoken स्वयं विकसित करने के लिए नहीं)।

  • @pantoken/ai इंस्टॉल करता है AGENTS.md, llms.txt, और assistant/editor rules (Cursor, Copilot, Windsurf, Claude Code)) एक उपभोक्ता रिपॉज़िटरी में।

Dev plugins ​

वे प्लगइन्स जिन्हें हम उन टूल्स के लिए बनाते हैं जिनके साथ हम काम करते हैं, होस्ट के अनुसार समूहबद्ध। वे स्वतंत्र हैं और प्रकाशित किए जा सकते हैं।

PackagePlugs into
@pantoken/typedoc-plugin-demoTypeDoc: turns a @demo <provider>:<ref> block tag into an embeddable demo fence.
@pantoken/vite-workspace-orchestratorVite: rebuilds upstream workspace packages (and dependents) when their source changes.