GitPedia

Panda

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

From chakra-ui·Updated June 25, 2026·View on GitHub·

Panda is a universal styling solution for the modern web — The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2022. It has gained significant community traction with 6,098 stars and 305 forks on GitHub. Key topics include: atomic-css, compiler, css, css-in-js, design-system.

Write typesafe styles with Panda

<p align="center"> <br/> <a href="https://panda-css.com">Panda</a> is a universal styling solution for the modern web &mdash; <br/> build time, type safe, and scalable CSS-in-JS <br/><br/> <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/%40pandacss%2Fdev"> <img alt="NPM Version" src="https://img.shields.io/npm/v/%40pandacss%2Fdev"> <img alt="X (formerly Twitter) Follow" src="https://img.shields.io/twitter/follow/panda__css">

<br/><br/>

</p>

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)
<br/>
<p align="center"> <b> 🐼 Get a taste of Panda. Try it out for yourself in&nbsp; <a href="https://stackblitz.com/edit/vitejs-vite-lfwyue?file=src%2FApp.tsx&terminal=dev">StackBlitz</a> </b> </p>
<br/>

Documentation

Visit our official documentation.

Install

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

bash
npm i -D @pandacss/dev

To scaffold the panda config and postcss

bash
npx panda init -p

Setup and import the entry CSS file

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

Start the dev server of your project

bash
npm run dev

Start using panda

jsx
import { css } from '../styled-system/css' import { stack, vstack, hstack } from '../styled-system/patterns' function Example() { return ( <div> <div className={hstack({ gap: '30px', color: 'pink.300' })}>Box 1</div> <div className={css({ fontSize: 'lg', color: 'red.400' })}>Box 2</div> </div> ) }

Directory Structure

PackageDescription
cliCLI package installed by the end user
coreContains core features of Panda (utility, recipes, etc)
configContains functions for reading and merging the panda config
extractorContains code for fast AST parsing and scanning
generatorContains codegen artifacts (js, css, jsx)
parserContains code for parsing a source code
is-valid-propContains code for checking if a prop is a valid css prop
nodeContains the Node.js API of Panda's features
token-dictionaryContains code used to process tokens and semantic tokens
sharedContains 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

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from chakra-ui/panda via the GitHub API.Last fetched: 6/26/2026