Introducing a new way to review your PRs.

Read the announcement

chakra-ui / panda

🐼 Universal, Type-Safe, CSS-in-JS Framework for Design Systems ⚡️

View on GitHub

19 documents · Updated Sep 23, 2026

overview

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/** and packages/core/**.
  • Generated output is derived from extracted and parsed source usage rather than authored directly in integration packages; evidence: packages/extractor/**, packages/parser/**, and packages/generator/**.
  • Token and preset data remain reusable inputs to compilation, not application-specific generated output; evidence: packages/token-dictionary/** and packages/preset-*/**.
  • Entry-point packages integrate with compiler behavior rather than duplicate the compilation pipeline; evidence: packages/cli/**, packages/node/**, packages/postcss/**, and packages/*/src/** plugin packages.
  • Diagnostics are surfaced through dedicated reporting and logging packages; evidence: packages/reporter/** and packages/logger/**.

Routing table