npm / @pandacss/dev
@pandacss/dev
What changed in @pandacss/dev 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.
92 breaking1 deprecations44 new APIs and options7 performance4 behavior and defaults20 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@pandacss/dev 2165 changes
Breaking changes 88
Atomic rules now sort deterministically by property breadth, so shorthand and longhand composition can produce different overrides than source order.
Border overrides sort by property rather than source order; all-sides shorthands win, while longhands rank above every shorthand.
The browserslist config option is removed.
The clean config option is removed.
Compound-variant styles now emit as their own class, so properties not overridden by
csscontinue to apply.The v1 engine hook is no longer available.
Replace this helper with a recipe-specific context helper.
CSS output is sorted into Panda's layers with stable ordering; shorthands rank below longhands.
Panda registers utility variables with
@propertyrather than universally seeding them; unused variables are omitted, and older browsers may drop affected utilities.The hook is observe-only and runs after final CSS; it can no longer rewrite the CSS string.
cssgen:done is observe-only; it can read generated CSS but cannot rewrite the string.
Use
SystemStyleObjectorSystemPropertiesfromstyled-system/typesinstead.The helper is gone; write the selector yourself or use
defineSlotRecipefor a class per part.The
ejectconfig option is gone.The eject config option is removed.
The
emitTokensOnlyconfig option is gone.The emitTokensOnly config option is removed.
Engine-internal hooks, including context:created, parser:after, tokens:created, and utility:created, are gone.
Panda v2 is ESM-only; use an ESM config and imports instead of CommonJS.
Panda 2.0 is ESM-only, which affects how projects load the package.
Panda is ESM-only; set type to module in package.json and convert CommonJS config.
Replaced by forceImportExtension, which has different semantics.
This option replaces
forceConsistentTypeExtensionwith different semantics.Replaces forceConsistentTypeExtension with different semantics.
The gitignore config option is removed.
This config option is replaced by the
positionTry()factory.globalPositionTry is gone; move its entries to theme.positionTry and reference them through the factory.
Hooks now belong to named plugins rather than a root hooks object.
Root-level hooks moved into plugins, each with a filter and handler.
Use this repeatable flag for file globs instead of positional globs.
jsxFramework: 'qwik'no longer generatesstyled,Box, or pattern components.Replaces the matchTag callback with declarative rules matched by component name, pattern, or imported module.
The lightningcss config option is removed.
Replaces the separate silent, quiet, and verbose logging flags with one option.
The matchTag callback is replaced by declarative jsxMatchTag rules.
Panda v2 requires Node 22 or newer.
Panda 2.0 requires Node 22 or newer.
Panda 2.0 requires Node 22 or newer.
On the full build,
-onow means--outfile, a CSS file path; use--outdirto select an output directory.Minimal output now includes
staticCssrules, so per-package sheets may repeat rules shipped by the host sheet.Artifact subcommands no longer select an individual stylesheet artifact; generate the full stylesheet or use
--splitting.Combines inspect, validate, and info into one project health check; --json is available for scripts.
Replaces the separate panda inspect, panda validate, and panda info commands.
This command is removed;
panda libmanages design-system package exports.Build a Panda design system package; Panda packages its config and syncs the package's exports.
The CLI no longer provides the MCP command; run the standalone MCP package instead.
Use
panda libto publish a design system orpanda buildinfofor build info.panda ship is gone, replaced by the design-system flow using panda lib and designSystem.
Replace this command with
panda codegen --spec.Studio now opens the hosted Studio connected to the project; there is nothing to build or preview.
This v1 internal package is gone; its work now lives in
@pandacss/compiler.This v1 internal package is gone; its work now lives in
@pandacss/compiler.This v1 internal package is gone; its work now lives in
@pandacss/compiler.The MCP server is provided by its own package rather than the CLI.
The MCP server is now its own package and can be run with npx.
This v1 internal package is gone; its work now lives in
@pandacss/compiler.This v1 internal package is gone; its work now lives in
@pandacss/compiler.Remove this plugin from
plugins; the compiler now reads.sveltefiles directly.Remove this plugin from
plugins; the compiler now reads.vuefiles directly.The poll config option is removed.
Panda v2 no longer adds
@pandacss/preset-baseautomatically; list the presets you need.This flag replaces
--cpu-profand writestrace.jsonandtimings.json, including Rust engine time.Creates a performance profile that includes time spent inside the Rust engine.
Replaces --cpu-prof and also covers time spent inside the Rust engine.
Import config types other than
Config,Preset, andUserConfigfrom@pandacss/types.Generated
RecipeConfigis nowRecipeDefinitionand no longer includes config fields.This property now takes a raw two-value string; move a single color to
scrollbarThumb.A single scrollbarColor value moves to scrollbarThumb.
This property now accepts
auto,thin, ornoneinstead of sizes tokens.scrollbarWidth now takes the CSS keywords auto, thin, or none instead of a size token.
A scrollbarWidth token value is no longer accepted; use the CSS keywords auto, thin, or none.
Atomic selector ties now sort by selector text rather than source order; recipe variants retain written order.
Replace this flag with
--log-level silent.@pandacss/preset-pandachanges this token from65chto60ch.The preset-panda default changes from 65ch to 60ch.
Generated
SlotRecipeConfigis nowSlotRecipeDefinitionand no longer includes config fields.The
studioconfig option and its sub-options are gone.The studio config option is removed.
TokenandSizeTokenmove here fromstyled-system/tokens.The compiler reads .svelte files directly, so the Svelte plugin is no longer needed.
The
syntaxoption and template-literal authoring mode are gone; write styles as objects.The syntax option is removed; drop it from config.
Remove the --syntax flag from panda init.
The template-literal authoring mode is removed; write styles with the object form.
Theme keys without
extendnow claim only the entry named rather than replacing an entire scale or collection; breakpoints remain an exception.Use
theme.containersinstead oftheme.containerSizes; the old key is ignored.UtilityValuesis gone; useSystemStyleObjectorSystemPropertiesfromstyled-system/types.The watch config option is removed.
Deprecations 1
Array conditions still work but are converted to object form with a warning; migrate to nested object conditions ending in
'@slot'.
New APIs and options 41
The base preset adds pointer, user-validity, and inert conditions.
Use this helper to create a context for a config recipe.
Creates a style context for a single recipe.
Use this helper to create a context for a slot recipe.
Creates a style context for a slot recipe.
Adds autocomplete and type-checking for custom conditions authored outside defineConfig.
Adds autocomplete and type-checking for anchor fallbacks authored outside defineConfig.
Consumes a publishable design system without re-extraction in the app.
Apps can consume a published component library through this config field.
Set designSystem in the consuming app to use a published Panda design system without re-extracting its styles.
Adds value fallbacks that are tree-shaken to what you use.
Write ordered CSS value fallbacks; Panda emits declarations in the order CSS needs.
Overrides source globs for a single run.
Adds local keyframes that are tree-shaken to what you use.
Set the logging level with this flag; supported levels are
silent,error,warn,info, anddebug.The base preset adds masking utilities for edge fades and radial masks.
Opt in to removing unused tokens and keyframes, emitting only used compound variants, and tree-shaking design systems.
Enable this option to seed defaults as plain declarations for variables your project uses.
Set optimize.propertyFallback to true to seed plain-declaration defaults for browsers without @property support.
The new opt-in CSS cleanup block provides token, keyframe, compound-variant, design-system tree-shaking, and property-fallback options.
The option now accepts a
'ts'value.outExtension now also accepts ts.
Provides an interactive setup flow and scaffolds the base presets by default.
Authors publishable design systems for apps to consume without re-extraction.
Runs the same engine in the browser as in Node and produces the same CSS.
Adds a prose recipe for Markdown and CMS content.
Adds a typography preset with a prose recipe for styling content such as Markdown or CMS-rendered HTML.
Adds anchor fallbacks that are tree-shaken to what you use.
Define CSS anchor-positioning fallbacks with a typed, tree-shaken factory.
Provides profiling to help inspect a project.
Adds a recipe for styling Markdown and CMS content through the typography preset.
The base preset adds separate scrollbar thumb and track properties.
The base preset adds more text-wrap values.
Use theme.positionTry for shared anchor-positioning fallbacks.
Setting transform to true makes the bundler rewrite static styling calls to class strings, removing the styling runtime from the bundle.
Bundler plugins can use
transform: trueto rewrite staticcss()calls.Styles the View Transitions API and provides a stable class.
Style the View Transitions API and get a stable class back.
Define element transitions between old and new states; named transitions can be shared through a theme.
This new helper supports a slot recipe root that does not render a slot of its own.
Adds a slot root that renders no slot of its own.
Performance 7
Extraction, watch mode, and staticCss are faster, reducing build and development wait times.
Repeated styles are memoized, making css() and recipes up to about four times faster.
Runtime css() calls now use memoization so repeated styles do not have to do the same work again.
Cold extraction runs 15 to 37 times faster than the ts-morph engine.
Runtime recipes now use memoization so repeated styles do not have to do the same work again.
staticCss builds about 85 times faster on a config generating around 29,000 rules.
Watch-mode re-parsing is roughly 360–390 times faster.
Behavior and default changes 4
Panda resolves imported values across files and folds the values used by styles.
Responsive conditions use CSS media-range syntax instead of min-width/max-width.
Panda follows named imports, re-exports, export-star barrels, and tsconfig path aliases to generate CSS from static imported values.
Panda registers CSS variables with @property, generating defaults only when they are needed.
Tooling 18
The compiler reads .astro files directly.
Panda ships Vite, webpack, Rollup, and Bun plugins; transform: true rewrites static styling calls into class strings.
Lints against the same extraction used by the build.
The lint plugin now lints against the same extraction used by the v2 engine.
Generated types use about 99% fewer TypeScript type instantiations, reducing editor and CI work.
The rebuilt CLI runs codegen and CSS together.
Shows how tokens and styles are being used across the project.
panda build still runs codegen and CSS generation in one pass.
Generates project information and extraction details for debugging or reporting an issue.
Inspects a project with the new CLI.
Publish a design system with this command.
A Bun plugin runs Panda inside your build.
Panda adds an official ESLint plugin with recommended rules and autofixing.
A Rollup plugin runs Panda inside your build.
A Vite plugin runs Panda inside your build.
A webpack plugin runs Panda inside your build.
The compiler is replaced with a Rust engine built on Oxc, with one parse per file, cross-file value resolution, and native CSS output.
The compiler reads .vue files directly, so the Vue plugin is no longer needed.
Fixes and other changes 6
Default imports are not followed for CSS extraction; use named imports instead.
Namespace imports are not followed for CSS extraction; use named imports instead.
rotateX is fixed, with better composition between rotation and non-uniform scaling.
rotateY is fixed, with better composition between rotation and non-uniform scaling.
rotateZ is fixed, with better composition between rotation and non-uniform scaling.
Keyframe names now work with strictTokens without escape-hatch brackets; native CSS values keep autocomplete when a token category is empty, and CSS keywords work as expected.
@pandacss/dev 111 changes
Breaking changes 4
Use this command to run MCP after it was moved out of @pandacss/dev.
The command now errors with a migration message; use npx -y @pandacss/mcp instead.
Installs no longer pull the MCP SDK and Hono; use the separate @pandacss/mcp package instead.
Every published package now declares Node >=20 so consumers and tooling can see the supported Node version.
New APIs and options 3
The
--outdiroption lets you choose a custom output directory for specification files.The cssgen command can emit CSS as separate per-layer files instead of a single styles.css.
Adds createStyleContext to React, Preact, Solid, and Vue framework artifacts for creating provider and context components from a style recipe.
Tooling 2
Adds an MCP server for AI agents, exposing tools for tokens, recipes, patterns, conditions, styles, keyframes, configuration, and usage reports.
Generates JSON specification files for a theme, including metadata, examples, and usage information.
Fixes and other changes 2
Re-exported from @pandacss/dev so consumers can resolve the return type of defineAnimationStyles without it falling back to any.
Fixed a module resolution error when using Bun or other package managers with flat node_modules structures.