MCPcopy Index your code
hub / github.com/chakra-ui/panda

github.com/chakra-ui/panda @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,958 symbols 8,174 edges 1,147 files 90 documented · 3% updated 3d ago@pandacss/compiler-wasm@2.0.0-beta.8 · 2026-07-01★ 6,1122 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Write typesafe styles with Panda

Panda is a universal styling solution for the modern web —

build time, type safe, and scalable CSS-in-JS

NPM Downloads NPM Version X (formerly Twitter) Follow

Features

  • ⚡️ Write style objects or style props, extract them at build time
  • ✨ Modern CSS output — cascade layers @layer, css variables and more
  • 🦄 Works with most JavaScript frameworks
  • 🚀 Recipes and Variants - Just like Stitches™️ ✨
  • 🎨 High-level design tokens support for simultaneous themes
  • 💪 Type-safe styles and autocomplete (via codegen)

🐼 Get a taste of Panda. Try it out for yourself in  StackBlitz


Documentation

Visit our official documentation.

Install

The recommended way to install the latest version of Panda is by running the command below:

npm i -D @pandacss/dev

To scaffold the panda config and postcss

npx panda init -p

Setup and import the entry CSS file

@layer reset, base, tokens, recipes, utilities;
import 'path/to/entry.css'

Start the dev server of your project

npm run dev

Start using panda

import { css } from '../styled-system/css'
import { stack, vstack, hstack } from '../styled-system/patterns'

function Example() {
  return (





Box 1




Box 2





  )
}

Directory Structure

Package Description
cli CLI package installed by the end user
core Contains core features of Panda (utility, recipes, etc)
config Contains functions for reading and merging the panda config
extractor Contains code for fast AST parsing and scanning
generator Contains codegen artifacts (js, css, jsx)
parser Contains code for parsing a source code
is-valid-prop Contains code for checking if a prop is a valid css prop
node Contains the Node.js API of Panda's features
token-dictionary Contains code used to process tokens and semantic tokens
shared Contains shared TS functions

Contributing

Feel like contributing? That's awesome! We have a contributing guide to help guide you.

Want to help improve the docs?

Our docsite lives in the monorepo.

If you're interested in contributing to the documentation, check out the contributing guide.

Support

Having trouble? Get help in the official Panda Discord.

Acknowledgement

The development of Panda was only possible due to the inspiration and ideas from these amazing projects.

License

MIT License © 2023-Present Segun Adebayo

Extension points exported contracts — how you extend this code

RefObject (Interface)
* Created by createRef, or useRef when passed `null`. * * @template T The type of the ref's va
playground/src/dts/react.d.ts
ProcessorInterface (Interface)
(no doc) [1 implementers]
packages/types/src/hooks-api.ts
ProjectOptions (Interface)
(no doc) [1 implementers]
packages/parser/src/project.ts
ImportMatcher (Interface)
(no doc) [1 implementers]
packages/core/src/import-map.ts
PluginOptions (Interface)
(no doc)
packages/postcss/src/index.ts
TokenTransformer (Interface)
(no doc)
packages/token-dictionary/src/dictionary.ts
SplitCssArtifact (Interface)
(no doc)
packages/generator/src/generator.ts
LoggerConfig (Interface)
(no doc)
packages/logger/src/create-logger.ts

Core symbols most depended-on inside this repo

css
called by 390
packages/studio/styled-system/css/css.mjs
join
called by 265
playground/src/dts/@pandacss_types.d.ts
forEach
called by 247
packages/shared/src/cache-map.ts
filter
called by 179
packages/token-dictionary/src/dictionary.ts
get
called by 178
packages/shared/src/cache-map.ts
has
called by 149
packages/shared/src/cache-map.ts
keys
called by 146
packages/shared/src/cache-map.ts
set
called by 143
packages/shared/src/cache-map.ts

Shape

Function 1,567
Interface 944
Method 330
Class 116
Enum 1

Languages

TypeScript100%

Modules by API surface

playground/src/dts/@pandacss_types.d.ts257 symbols
playground/src/dts/react.d.ts169 symbols
packages/token-dictionary/src/dictionary.ts45 symbols
packages/studio/styled-system/helpers.mjs45 symbols
packages/types/src/csstype.d.ts36 symbols
packages/studio/styled-system/types/csstype.d.ts36 symbols
packages/extractor/src/box-factory.ts34 symbols
packages/types/src/config.ts33 symbols
packages/extractor/__tests__/samples/ExtractSample.tsx33 symbols
packages/extractor/src/maybe-box-node.ts32 symbols
packages/generator/src/artifacts/setup-artifacts.ts30 symbols
packages/types/src/spec.ts28 symbols

Dependencies from manifests, versioned

@ark-ui/react5.18.3 · 1×
@astrojs/react5.0.4 · 1×
@astrojs/solid-js5.1.3 · 1×
@atlaskit/motion6.0.0 · 1×
@atlaskit/tokens13.0.2 · 1×
@builder.io/qwik1.17.2 · 1×
@builder.io/qwik-city1.17.2 · 1×
@changesets/changelog-github0.5.2 · 1×
@changesets/cli2.29.8 · 1×
@clack/prompts0.11.0 · 1×
@csstools/postcss-cascade-layers5.0.2 · 1×
@docusaurus/core3.9.2 · 1×

For agents

$ claude mcp add panda \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact