Panda CSS generates modern utility styles at build time from TypeScript style objects, with tokens, recipes, cascade layers, and framework-agnostic output.
Overview
Panda is a universal styling solution that extracts type-safe CSS at build time instead of shipping runtime CSS-in-JS. You author style objects or style props, and Panda emits modern CSS using cascade layers, variables, and utility classes.
Recipes and variants resemble Stitches-style APIs, while design tokens support simultaneous themes. Codegen gives autocomplete for style functions, JSX helpers, and pattern utilities. Version 2 rewrites the compiler in Rust on the Oxc engine.
Installations use the Panda CLI with PostCSS integration and work across React, Vue, Solid, Next.js, Remix, Vite, Astro, and Storybook setups, including React Server Components.
Generated output avoids runtime overhead and fits teams building shared design systems across multiple JavaScript frameworks.
Key features
- Build-time CSS extraction
- Design tokens and semantic themes
- Recipes and component variants
- Cascade layer output
- TypeScript autocomplete via codegen
- Style props and JSX helpers
- Rust-based v2 compiler
- PostCSS and multiple framework guides
Use cases
- Design systems needing typed styles
- RSC-friendly component libraries
- Migrating from runtime CSS-in-JS
- Sharing tokens across frameworks