Panda CSS Zero-Runtime
Write type-safe, zero-runtime CSS with Panda CSS, combining the DX of CSS-in-JS with the performance of static extraction.
Overview
Built by the Chakra UI team, Panda CSS works with any JavaScript framework. Your AI agent can define tokens for colors, spacing, and typography in `panda.config.ts`, create reusable recipes for component variants, and write styles using the `css()` function or JSX style props with full TypeScript autocomplete.
The atomic CSS approach means your production bundle only contains the styles actually used in your application, resulting in minimal CSS output. AI agents can help you migrate from runtime CSS-in-JS libraries like Emotion or Styled Components to Panda for better performance without sacrificing DX.
Who Is This For?
- Teams seeking CSS-in-JS DX without runtime performance costs
- Developers building design systems with type-safe tokens and recipes
- Engineers migrating from runtime CSS-in-JS to zero-runtime solutions
- Full-stack developers who want framework-agnostic styling
Installation
npm install -D @pandacss/dev
npx panda init Configuration
// panda.config.ts
import { defineConfig } from "@pandacss/dev";
export default defineConfig({
preflight: true,
include: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
tokens: {
colors: { primary: { value: "#6366f1" } },
},
},
outdir: "styled-system",
}); Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Servers
Figma MCP Server
Bridge the gap between design and code by connecting Figma to your AI agent via MCP, enabling accurate design-to-code translation.
Storybook Component Docs
Build, document, and visually test UI components in isolation using Storybook. AI agents can generate stories and catch visual regressions.
Tailwind CSS IntelliSense
Get intelligent Tailwind class suggestions, autocompletions, and linting as you style components in your editor.