Skip to content

Want to skip the docs? Check out pandamastery.com - the best way to learn Panda CSS

Styled System

Styled System

What’s inside the generated styled-system folder, and where each entrypoint is documented.

styled-system is the package Panda codegen writes for your project (path from config.outdir). You import css, patterns, recipes, and JSX helpers from it.

It is a build artifact, not a style engine. The helpers map style objects to class name strings. The CSS itself comes from extraction. Don't edit these files by hand; regenerate with panda codegen or panda build.

For the mental model (codegen vs extraction), see Why Panda → How it works.

Folder layout

Exact files depend on your config (jsxFramework, recipes, patterns, and so on).

Entrypoints

PathPageRole
css/csscss()Style object → class name
css/cvacva()Atomic recipes (colocated variants)
css/svasva()Slot recipes (multi-part)
css/cxcx()Join class name strings
css/view-transitionviewTransition()Shared View Transition classes
patterns/patternsLayout primitive functions
recipes/recipesConfig recipes from your theme
jsx/jsxstyled factory and JSX patterns
tokens/tokenstoken() / token.var() in JS
types/typesGenerated TypeScript types

Root files: helpers.js (shared runtime helpers) and styles.css (extracted atomic CSS).

Generation and commit policy

  • Written by panda, panda build, or panda codegen from your resolved config.
  • Not meant to be edited. Customizations belong in panda.config.ts and your source files.
  • Usually gitignored. A design system publishes it through panda lib. See Publishing.

See also

Edit this page on GitHubView as markdown
Last updated on