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 ​

@pantoken/validate-generated는 한 번만 실행되는 스크립트(pnpm run ready에 의해 호출)라 API 페이지가 없고, 다른 항목들은 있습니다.

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 ​

  • @pantoken/ai 는 AGENTS.md, llms.txt 및 어시스턴트/에디터 규칙(Cursor, Copilot, Windsurf, Claude Code)을 소비자 리포지토리에 설치합니다.
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 ​

디자인 도구용.

PackageOutput
@pantoken/figmaA Figma Variables payload.
@pantoken/swatchesColor swatches (ASE, GPL, Sketch) plus a viewable SVG specimen sheet.

Plugins ​

토큰 또는 CSS 출력을 확장하는 선택적 변환입니다. Plugins를 참조하세요.

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.