Knowledge Base updated: 2026-09-22
Panda knowledge base
Panda is a styling-system monorepo centered on a compiler that extracts style usage from application source, resolves configured design tokens and conditions, and produces CSS plus generated project APIs.
The core packages implement configuration, extraction, parsing, token handling, generation, and diagnostics. Tooling packages expose those capabilities through the CLI, Node, PostCSS, framework plugins, Studio, and MCP surfaces.
Critical project state starts with Panda configuration and presets, then flows through compiler context and token dictionaries into generated CSS and runtime-facing artifacts. Playground and sandbox applications exercise those flows across supported integrations.
flowchart LR
App[Application source] --> Extractor[Extractor]
Config[Panda configuration] --> ConfigResolver[Configuration resolution]
Presets[Preset packages] --> ConfigResolver
ConfigResolver --> Compiler[Compiler core]
Extractor --> Parser[Parser]
Parser --> Compiler
Tokens[Token dictionary] --> Compiler
Compiler --> Generator[Generator]
Generator --> CSS[Generated CSS]
Generator --> APIs[Generated APIs]
CLI[CLI] --> Compiler
Node[Node / PostCSS] --> Compiler
Plugins[Framework plugins] --> Compiler
Studio[Studio] --> Compiler
MCP[MCP] --> Compiler
Compiler --> Diagnostics[Reporter / logger]
Glossary
- Panda configuration — the project configuration that selects presets, source include patterns, output locations, and compiler behavior.
- Token dictionary — the resolved representation of tokens, semantic values, conditions, and their transformations used by compiler consumers.
- Extraction — discovery of source files and collection of candidate Panda style usage before parsing and generation.
- Generated artifacts — CSS and project APIs emitted from compiler state for an application to consume.
- Preset — a reusable package supplying a baseline theme, tokens, utilities, or styling conventions.
Codebase-wide invariants
- Compiler-facing configuration must be resolved before downstream compilation consumes it; evidence:
packages/config/**andpackages/core/**. - Generated output is derived from extracted and parsed source usage rather than authored directly in integration packages; evidence:
packages/extractor/**,packages/parser/**, andpackages/generator/**. - Token and preset data remain reusable inputs to compilation, not application-specific generated output; evidence:
packages/token-dictionary/**andpackages/preset-*/**. - Entry-point packages integrate with compiler behavior rather than duplicate the compilation pipeline; evidence:
packages/cli/**,packages/node/**,packages/postcss/**, andpackages/*/src/**plugin packages. - Diagnostics are surfaced through dedicated reporting and logging packages; evidence:
packages/reporter/**andpackages/logger/**.
Routing table
packages/core/**-> docs/compiler-pipeline.mdpackages/compiler/**-> docs/compiler-pipeline.mdpackages/config/**-> docs/configuration-resolution.mdpackages/extractor/**-> docs/source-extraction-and-parsing.mdpackages/parser/**-> docs/source-extraction-and-parsing.mdpackages/generator/**-> docs/css-artifact-generation.mdpackages/core/src/generate/**-> docs/css-artifact-generation.mdpackages/token-dictionary/**-> docs/design-token-system.mdpackages/shared/**-> docs/design-token-system.mdpackages/token-dictionary/**-> docs/token-dictionary-processing.mdpackages/preset-base/**-> docs/preset-library.mdpackages/preset-panda/**-> docs/preset-library.mdpackages/preset-open-props/**-> docs/preset-library.mdpackages/preset-atlaskit/**-> docs/preset-library.mdpackages/cli/**-> docs/developer-tooling.mdpackages/node/**-> docs/developer-tooling.mdpackages/postcss/**-> docs/developer-tooling.mdpackages/cli/**-> docs/cli-workflows.mdpackages/node/**-> docs/node-and-postcss-integration.mdpackages/postcss/**-> docs/node-and-postcss-integration.mdpackages/astro/**-> docs/framework-integrations.mdpackages/svelte/**-> docs/framework-integrations.mdpackages/vue/**-> docs/framework-integrations.mdpackages/astro/**-> docs/framework-plugin-packages.mdpackages/svelte/**-> docs/framework-plugin-packages.mdpackages/vue/**-> docs/framework-plugin-packages.mdpackages/lightningcss/**-> docs/framework-plugin-packages.mdpackages/studio/**-> docs/studio-tooling.mdpackages/studio-astro/**-> docs/studio-tooling.mdpackages/reporter/**-> docs/developer-observability.mdpackages/logger/**-> docs/developer-observability.mdpackages/reporter/**-> docs/reporting-and-logging.mdpackages/logger/**-> docs/reporting-and-logging.mdpackages/mcp/**-> docs/mcp-integration.mdplayground/**-> docs/product-experiences.mdsandbox/**-> docs/product-experiences.mdplayground/**-> docs/playground-application.md