unstale

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

@unstale/cli on npm

@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.

    2.0.0upgrade guide

  • Border overrides sort by property rather than source order; all-sides shorthands win, while longhands rank above every shorthand.

    2.0.0upgrade guide

  • The browserslist config option is removed.

    2.0.0upgrade guide

  • The clean config option is removed.

    2.0.0upgrade guide

  • Compound-variant styles now emit as their own class, so properties not overridden by css continue to apply.

    2.0.0upgrade guide

  • The v1 engine hook is no longer available.

    2.0.0upgrade guide

  • Replace this helper with a recipe-specific context helper.

    2.0.0upgrade guide

  • CSS output is sorted into Panda's layers with stable ordering; shorthands rank below longhands.

    2.0.0upgrade guide

  • Panda registers utility variables with @property rather than universally seeding them; unused variables are omitted, and older browsers may drop affected utilities.

    2.0.0upgrade guide

  • The hook is observe-only and runs after final CSS; it can no longer rewrite the CSS string.

    2.0.0upgrade guide

  • cssgen:done is observe-only; it can read generated CSS but cannot rewrite the string.

    2.0.0upgrade guide

  • Use SystemStyleObject or SystemProperties from styled-system/types instead.

    2.0.0upgrade guide

  • The helper is gone; write the selector yourself or use defineSlotRecipe for a class per part.

    2.0.0upgrade guide

  • The eject config option is gone.

    2.0.0upgrade guide

  • The eject config option is removed.

    2.0.0upgrade guide

  • The emitTokensOnly config option is gone.

    2.0.0upgrade guide

  • The emitTokensOnly config option is removed.

    2.0.0upgrade guide

  • Engine-internal hooks, including context:created, parser:after, tokens:created, and utility:created, are gone.

    2.0.0upgrade guide

  • Panda v2 is ESM-only; use an ESM config and imports instead of CommonJS.

    2.0.0upgrade guide

  • Panda 2.0 is ESM-only, which affects how projects load the package.

    2.0.0release notes

  • Panda is ESM-only; set type to module in package.json and convert CommonJS config.

    2.0.0upgrade guide

  • Replaced by forceImportExtension, which has different semantics.

    2.0.0upgrade guide

  • This option replaces forceConsistentTypeExtension with different semantics.

    2.0.0upgrade guide

  • Replaces forceConsistentTypeExtension with different semantics.

    2.0.0upgrade guide

  • The gitignore config option is removed.

    2.0.0upgrade guide

  • This config option is replaced by the positionTry() factory.

    2.0.0upgrade guide

  • globalPositionTry is gone; move its entries to theme.positionTry and reference them through the factory.

    2.0.0upgrade guide

  • Hooks now belong to named plugins rather than a root hooks object.

    2.0.0upgrade guide

  • Root-level hooks moved into plugins, each with a filter and handler.

    2.0.0upgrade guide

  • Use this repeatable flag for file globs instead of positional globs.

    2.0.0upgrade guide

  • jsxFramework: 'qwik' no longer generates styled, Box, or pattern components.

    2.0.0upgrade guide

  • Replaces the matchTag callback with declarative rules matched by component name, pattern, or imported module.

    2.0.0upgrade guide

  • The lightningcss config option is removed.

    2.0.0upgrade guide

  • Replaces the separate silent, quiet, and verbose logging flags with one option.

    2.0.0upgrade guide

  • The matchTag callback is replaced by declarative jsxMatchTag rules.

    2.0.0upgrade guide

  • Panda v2 requires Node 22 or newer.

    2.0.0upgrade guide

  • Panda 2.0 requires Node 22 or newer.

    2.0.0upgrade guide

  • Panda 2.0 requires Node 22 or newer.

    2.0.0release notes

  • On the full build, -o now means --outfile, a CSS file path; use --outdir to select an output directory.

    2.0.0upgrade guide

  • Minimal output now includes staticCss rules, so per-package sheets may repeat rules shipped by the host sheet.

    2.0.0upgrade guide

  • Artifact subcommands no longer select an individual stylesheet artifact; generate the full stylesheet or use --splitting.

    2.0.0upgrade guide

  • Combines inspect, validate, and info into one project health check; --json is available for scripts.

    2.0.0upgrade guide

  • Replaces the separate panda inspect, panda validate, and panda info commands.

    2.0.0upgrade guide

  • This command is removed; panda lib manages design-system package exports.

    2.0.0upgrade guide

  • Build a Panda design system package; Panda packages its config and syncs the package's exports.

    2.0.0upgrade guide

  • The CLI no longer provides the MCP command; run the standalone MCP package instead.

    2.0.0upgrade guide

  • Use panda lib to publish a design system or panda buildinfo for build info.

    2.0.0upgrade guide

  • panda ship is gone, replaced by the design-system flow using panda lib and designSystem.

    2.0.0upgrade guide

  • Replace this command with panda codegen --spec.

    2.0.0upgrade guide

  • Studio now opens the hosted Studio connected to the project; there is nothing to build or preview.

    2.0.0upgrade guide

  • This v1 internal package is gone; its work now lives in @pandacss/compiler.

    2.0.0upgrade guide

  • This v1 internal package is gone; its work now lives in @pandacss/compiler.

    2.0.0upgrade guide

  • This v1 internal package is gone; its work now lives in @pandacss/compiler.

    2.0.0upgrade guide

  • The MCP server is provided by its own package rather than the CLI.

    2.0.0upgrade guide

  • The MCP server is now its own package and can be run with npx.

    2.0.0upgrade guide

  • This v1 internal package is gone; its work now lives in @pandacss/compiler.

    2.0.0upgrade guide

  • This v1 internal package is gone; its work now lives in @pandacss/compiler.

    2.0.0upgrade guide

  • Remove this plugin from plugins; the compiler now reads .svelte files directly.

    2.0.0upgrade guide

  • Remove this plugin from plugins; the compiler now reads .vue files directly.

    2.0.0upgrade guide

  • The poll config option is removed.

    2.0.0upgrade guide

  • Panda v2 no longer adds @pandacss/preset-base automatically; list the presets you need.

    2.0.0upgrade guide

  • This flag replaces --cpu-prof and writes trace.json and timings.json, including Rust engine time.

    2.0.0upgrade guide

  • Creates a performance profile that includes time spent inside the Rust engine.

    2.0.0upgrade guide

  • Replaces --cpu-prof and also covers time spent inside the Rust engine.

    2.0.0upgrade guide

  • Import config types other than Config, Preset, and UserConfig from @pandacss/types.

    2.0.0upgrade guide

  • Generated RecipeConfig is now RecipeDefinition and no longer includes config fields.

    2.0.0upgrade guide

  • This property now takes a raw two-value string; move a single color to scrollbarThumb.

    2.0.0upgrade guide

  • A single scrollbarColor value moves to scrollbarThumb.

    2.0.0upgrade guide

  • This property now accepts auto, thin, or none instead of sizes tokens.

    2.0.0upgrade guide

  • scrollbarWidth now takes the CSS keywords auto, thin, or none instead of a size token.

    2.0.0upgrade guide

  • A scrollbarWidth token value is no longer accepted; use the CSS keywords auto, thin, or none.

    2.0.0upgrade guide

  • Atomic selector ties now sort by selector text rather than source order; recipe variants retain written order.

    2.0.0upgrade guide

  • Replace this flag with --log-level silent.

    2.0.0upgrade guide

  • @pandacss/preset-panda changes this token from 65ch to 60ch.

    2.0.0upgrade guide

  • The preset-panda default changes from 65ch to 60ch.

    2.0.0upgrade guide

  • Generated SlotRecipeConfig is now SlotRecipeDefinition and no longer includes config fields.

    2.0.0upgrade guide

  • The studio config option and its sub-options are gone.

    2.0.0upgrade guide

  • The studio config option is removed.

    2.0.0upgrade guide

  • Token and SizeToken move here from styled-system/tokens.

    2.0.0upgrade guide

  • The compiler reads .svelte files directly, so the Svelte plugin is no longer needed.

    2.0.0upgrade guide

  • The syntax option and template-literal authoring mode are gone; write styles as objects.

    2.0.0upgrade guide

  • The syntax option is removed; drop it from config.

    2.0.0upgrade guide

  • Remove the --syntax flag from panda init.

    2.0.0upgrade guide

  • The template-literal authoring mode is removed; write styles with the object form.

    2.0.0upgrade guide

  • Theme keys without extend now claim only the entry named rather than replacing an entire scale or collection; breakpoints remain an exception.

    2.0.0upgrade guide

  • Use theme.containers instead of theme.containerSizes; the old key is ignored.

    2.0.0upgrade guide

  • UtilityValues is gone; use SystemStyleObject or SystemProperties from styled-system/types.

    2.0.0upgrade guide

  • The watch config option is removed.

    2.0.0upgrade guide

Deprecations 1

  • Array conditions still work but are converted to object form with a warning; migrate to nested object conditions ending in '@slot'.

    2.0.0upgrade guide

New APIs and options 41

  • The base preset adds pointer, user-validity, and inert conditions.

    2.0.0upgrade guide

  • Use this helper to create a context for a config recipe.

    2.0.0upgrade guide

  • Creates a style context for a single recipe.

    2.0.0upgrade guide

  • Use this helper to create a context for a slot recipe.

    2.0.0upgrade guide

  • Creates a style context for a slot recipe.

    2.0.0upgrade guide

  • Adds autocomplete and type-checking for custom conditions authored outside defineConfig.

    2.0.0upgrade guide

  • Adds autocomplete and type-checking for anchor fallbacks authored outside defineConfig.

    2.0.0upgrade guide

  • Consumes a publishable design system without re-extraction in the app.

    2.0.0release notes

  • Apps can consume a published component library through this config field.

    2.0.0upgrade guide

  • Set designSystem in the consuming app to use a published Panda design system without re-extracting its styles.

    2.0.0upgrade guide

  • Adds value fallbacks that are tree-shaken to what you use.

    2.0.0release notes

  • Write ordered CSS value fallbacks; Panda emits declarations in the order CSS needs.

    2.0.0upgrade guide

  • Overrides source globs for a single run.

    2.0.0upgrade guide

  • Adds local keyframes that are tree-shaken to what you use.

    2.0.0release notes

  • Set the logging level with this flag; supported levels are silent, error, warn, info, and debug.

    2.0.0upgrade guide

  • The base preset adds masking utilities for edge fades and radial masks.

    2.0.0upgrade guide

  • Opt in to removing unused tokens and keyframes, emitting only used compound variants, and tree-shaking design systems.

    2.0.0release notes

  • Enable this option to seed defaults as plain declarations for variables your project uses.

    2.0.0upgrade guide

  • Set optimize.propertyFallback to true to seed plain-declaration defaults for browsers without @property support.

    2.0.0upgrade guide

  • The new opt-in CSS cleanup block provides token, keyframe, compound-variant, design-system tree-shaking, and property-fallback options.

    2.0.0upgrade guide

  • The option now accepts a 'ts' value.

    2.0.0upgrade guide

  • outExtension now also accepts ts.

    2.0.0upgrade guide

  • Provides an interactive setup flow and scaffolds the base presets by default.

    2.0.0upgrade guide

  • Authors publishable design systems for apps to consume without re-extraction.

    2.0.0release notes

  • Runs the same engine in the browser as in Node and produces the same CSS.

    2.0.0release notes

  • Adds a prose recipe for Markdown and CMS content.

    2.0.0release notes

  • Adds a typography preset with a prose recipe for styling content such as Markdown or CMS-rendered HTML.

    2.0.0upgrade guide

  • Adds anchor fallbacks that are tree-shaken to what you use.

    2.0.0release notes

  • Define CSS anchor-positioning fallbacks with a typed, tree-shaken factory.

    2.0.0upgrade guide

  • Provides profiling to help inspect a project.

    2.0.0release notes

  • Adds a recipe for styling Markdown and CMS content through the typography preset.

    2.0.0release notes

  • The base preset adds separate scrollbar thumb and track properties.

    2.0.0upgrade guide

  • The base preset adds more text-wrap values.

    2.0.0upgrade guide

  • Use theme.positionTry for shared anchor-positioning fallbacks.

    2.0.0upgrade guide

  • Setting transform to true makes the bundler rewrite static styling calls to class strings, removing the styling runtime from the bundle.

    2.0.0release notes

  • Bundler plugins can use transform: true to rewrite static css() calls.

    2.0.0upgrade guide

  • Styles the View Transitions API and provides a stable class.

    2.0.0release notes

  • Style the View Transitions API and get a stable class back.

    2.0.0upgrade guide

  • Define element transitions between old and new states; named transitions can be shared through a theme.

    2.0.0upgrade guide

  • This new helper supports a slot recipe root that does not render a slot of its own.

    2.0.0upgrade guide

  • Adds a slot root that renders no slot of its own.

    2.0.0upgrade guide

Performance 7

  • Extraction, watch mode, and staticCss are faster, reducing build and development wait times.

    2.0.0release notes

  • Repeated styles are memoized, making css() and recipes up to about four times faster.

    2.0.0release notes

  • Runtime css() calls now use memoization so repeated styles do not have to do the same work again.

    2.0.0upgrade guide

  • Cold extraction runs 15 to 37 times faster than the ts-morph engine.

    2.0.0upgrade guide

  • Runtime recipes now use memoization so repeated styles do not have to do the same work again.

    2.0.0upgrade guide

  • staticCss builds about 85 times faster on a config generating around 29,000 rules.

    2.0.0upgrade guide

  • Watch-mode re-parsing is roughly 360–390 times faster.

    2.0.0upgrade guide

Behavior and default changes 4

  • Panda resolves imported values across files and folds the values used by styles.

    2.0.0upgrade guide

  • Responsive conditions use CSS media-range syntax instead of min-width/max-width.

    2.0.0upgrade guide

  • Panda follows named imports, re-exports, export-star barrels, and tsconfig path aliases to generate CSS from static imported values.

    2.0.0upgrade guide

  • Panda registers CSS variables with @property, generating defaults only when they are needed.

    2.0.0upgrade guide

Tooling 18

  • The compiler reads .astro files directly.

    2.0.0upgrade guide

  • Panda ships Vite, webpack, Rollup, and Bun plugins; transform: true rewrites static styling calls into class strings.

    2.0.0upgrade guide

  • Lints against the same extraction used by the build.

    2.0.0release notes

  • The lint plugin now lints against the same extraction used by the v2 engine.

    2.0.0upgrade guide

  • Generated types use about 99% fewer TypeScript type instantiations, reducing editor and CI work.

    2.0.0release notes

  • The rebuilt CLI runs codegen and CSS together.

    2.0.0release notes

  • Shows how tokens and styles are being used across the project.

    2.0.0upgrade guide

  • panda build still runs codegen and CSS generation in one pass.

    2.0.0upgrade guide

  • Generates project information and extraction details for debugging or reporting an issue.

    2.0.0upgrade guide

  • Inspects a project with the new CLI.

    2.0.0release notes

  • Publish a design system with this command.

    2.0.0upgrade guide

  • A Bun plugin runs Panda inside your build.

    2.0.0release notes

  • Panda adds an official ESLint plugin with recommended rules and autofixing.

    2.0.0upgrade guide

  • A Rollup plugin runs Panda inside your build.

    2.0.0release notes

  • A Vite plugin runs Panda inside your build.

    2.0.0release notes

  • A webpack plugin runs Panda inside your build.

    2.0.0release notes

  • The compiler is replaced with a Rust engine built on Oxc, with one parse per file, cross-file value resolution, and native CSS output.

    2.0.0release notes

  • The compiler reads .vue files directly, so the Vue plugin is no longer needed.

    2.0.0upgrade guide

Fixes and other changes 6

  • Default imports are not followed for CSS extraction; use named imports instead.

    2.0.0upgrade guide

  • Namespace imports are not followed for CSS extraction; use named imports instead.

    2.0.0upgrade guide

  • rotateX is fixed, with better composition between rotation and non-uniform scaling.

    2.0.0upgrade guide

  • rotateY is fixed, with better composition between rotation and non-uniform scaling.

    2.0.0upgrade guide

  • rotateZ is fixed, with better composition between rotation and non-uniform scaling.

    2.0.0upgrade guide

  • 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.

    2.0.0upgrade guide

@pandacss/dev 111 changes

Breaking changes 4

  • Use this command to run MCP after it was moved out of @pandacss/dev.

    1.12.0release notes

  • The command now errors with a migration message; use npx -y @pandacss/mcp instead.

    1.12.0release notes

  • Installs no longer pull the MCP SDK and Hono; use the separate @pandacss/mcp package instead.

    1.12.0release notes

  • Every published package now declares Node >=20 so consumers and tooling can see the supported Node version.

    1.11.3release notes

New APIs and options 3

  • The --outdir option lets you choose a custom output directory for specification files.

    1.7.0release notes

  • The cssgen command can emit CSS as separate per-layer files instead of a single styles.css.

    1.6.0release notes

  • Adds createStyleContext to React, Preact, Solid, and Vue framework artifacts for creating provider and context components from a style recipe.

    1.0.0release notes

Tooling 2

  • Adds an MCP server for AI agents, exposing tools for tokens, recipes, patterns, conditions, styles, keyframes, configuration, and usage reports.

    1.8.0release notes

  • Generates JSON specification files for a theme, including metadata, examples, and usage information.

    1.7.0release notes

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.

    1.10.0release notes

  • Fixed a module resolution error when using Bun or other package managers with flat node_modules structures.

    1.4.3release notes