Universal, type-safe, CSS-in-JS framework for design systems
open sourceMITself-hostablefreeMCP
Panda CSS is a styling engine: you write styles in TypeScript with a css() function, JSX style props, layout patterns or variant recipes, and at build time it scans your source and emits only the atomic CSS you used, so no style engine runs in the browser. A codegen step turns your config's design tokens, semantic tokens, themes and recipes into a type-safe styled-system package, and the output uses CSS variables and cascade layers. It runs through PostCSS or the Panda CLI with guides for Next.js, Vite, Astro, Vue, Svelte, SolidJS and more, and ships an MCP server that lets coding agents query a project's tokens and recipes, official agent skills and an ESLint plugin. It is MIT-licensed and made by Chakra Systems, the team behind Chakra UI.
Problems it solves
- I like writing styles in TypeScript but don't want a CSS-in-JS runtime slowing down my React app
- styled-components and Emotion don't work well with React Server Components
- type-safe design tokens so a typo in a colour or spacing name fails in the editor
- generate only the atomic CSS my components actually use at build time
- define button and card variants once as recipes and get typed props for them
- set up semantic tokens, dark mode and several brand themes for a design system
- the same styling approach across React, Vue, Svelte, Solid and Qwik projects
- let my coding agent look up our design system's real tokens and recipes instead of guessing
- lint for hard-coded values that should use a design token
- migrate off a runtime CSS-in-JS library without rewriting every component's styles
Features
- css() function, JSX style props, layout patterns and cva-style recipes that all compile to atomic CSS
- static extraction at build time: only the styles you use reach the stylesheet
- codegen of a type-safe styled-system package from your config
- design tokens, semantic tokens, composite styles, themes and dark mode
- slot recipes for multi-part components and config recipes for design systems
- output with CSS variables and cascade layers, with a polyfill option
- PostCSS plugin and Panda CLI with watch mode
- framework guides for Next.js, Vite, Astro, Nuxt, Vue, Svelte, SolidJS, Qwik, Angular and more
- MCP server (@pandacss/mcp) exposing a project's tokens, recipes, patterns and conditions to AI assistants
- official agent skills for styling, theming and the v1 to v2 upgrade
View 2 more
- ESLint plugin for unresolved tokens and hard-coded values
- migration guides from Chakra UI, Emotion, styled-components, StyleX, Tailwind CSS and vanilla-extract
Limitations
- Doesn't generate CSS for values only known at runtime: styles are extracted at build time, so values must be visible in the source1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what Panda CSS does.
- styled-components Fast, expressive styling for React. Server components, client components, streaming SSR, React Native, all one API.
- vanilla-extract Zero-runtime Stylesheets-in-TypeScript
- StyleX The expressive, type-safe, composable, predictable and themeable styling system for ambitious interfaces
- Emotion CSS-in-JS library designed for high performance style composition
- Tailwind CSS Rapidly build modern websites without ever leaving your HTML.
- goober A less than 1KB css-in-js solution
