Preset library
The preset library gives Panda projects reusable starting points for styling and design tokens. The base preset supplies the styling language, while the Panda, Open Props, and Atlaskit presets supply different token systems that projects can select and combine in their configuration. See Design token system for the wider token model and Token dictionary processing for the later token-processing stages.
Preset model
A preset is a named, reusable configuration that adds theme data or styling rules to a project. A project can use a preset as a shared foundation, then add local values or replace a foundation that does not match its design system.
Presets can provide these kinds of design-system input:
- Tokens for values such as color, spacing, type, motion, and shape.
- Semantic tokens for roles whose value can change by mode, such as light and dark colors.
- Theme support such as breakpoints, keyframes, text styles, and container sizes.
- Styling support such as utilities, conditions, patterns, and global CSS.
The compiler resolves the selected presets into the project configuration. The token system then uses the resolved theme as input for generated styling and token artifacts.
Built-in foundations
The library separates the styling vocabulary from the values used by that vocabulary. This lets a project keep the base styling behavior while choosing the token foundation that fits its product.
Base preset
@pandacss/preset-base provides the core styling language without a default design-token theme. It supplies conditions for state and responsive styling, utilities that map style properties to CSS, patterns for common layout shapes, and global CSS support.
This preset is the engine-facing foundation for a minimal Panda setup. It does not decide which colors, spacing scale, fonts, or other design values a project should use.
References: packages/…/index.ts• L1-19 website/…/presets.mdx• L208-225
Panda preset
@pandacss/preset-panda provides Panda’s default theme. It gives a project a ready-to-use set of tokens together with breakpoints, keyframes, text styles, and container sizes.
The preset is useful when a project wants sensible defaults. A project that selects a different design system can omit it while keeping the base styling foundation.
References: packages/…/index.ts• L1-21 packages/…/tokens.ts• L1-62 website/…/presets.mdx• L227-237
Open Props preset
@pandacss/preset-open-props adapts the Open Props value set to Panda’s theme model. It supplies broad token groups such as colors, sizes, spacing, typography, borders, shadows, gradients, assets, and layering values.
It also supplies keyframes, breakpoints, and semantic animation and shadow values. Its utility layer extends the styling vocabulary for projects that use Open Props as their design foundation.
References: packages/…/index.ts• L1-26 packages/…/tokens.ts• L1-31 packages/…/package.json• L40-44
Atlaskit preset
@pandacss/preset-atlaskit provides a Panda theme based on Atlassian’s design tokens and motion values. It covers core and semantic colors, typography, spacing, shape, opacity, shadows, breakpoints, text styles, durations, and easing values.
Its semantic values include light and dark variants. This makes the preset a bridge for projects that want Panda styling with Atlassian Design System values and behavior.
References: packages/…/index.ts• L1-43 packages/…/semantic.ts• L1-30 packages/…/README.md• L27-47
Preset selection
The project configuration controls which foundations become active. The base preset is included by default unless the project opts out with eject: true; the Panda default theme is used only when the project does not define its own presets list.
When a project defines a presets list, it should add @pandacss/preset-panda explicitly if it still needs Panda’s default values. Open Props and Atlaskit are selectable alternatives rather than automatic defaults.
Configuration entry
Projects name a published preset or pass a preset object in the presets setting. A preset must have a unique name so the configuration system can identify it during resolution.
References: website/…/presets.mdx• L22-37 packages/…/bundled-preset.ts• L1-17
Preset merging
The configuration system combines the selected presets with the project configuration into one resolved theme. Presets merge in order, so later preset or project values can extend an earlier foundation or win when the same value is defined more than once.
This resolved result is the handoff to token and style processing. A project can therefore share a common preset package while still applying product-specific tokens or theme extensions at the project boundary.
The diagram shows how a configured project turns reusable preset inputs into the resolved styling foundation used by downstream processing.
flowchart LR
A[Project configuration] --> B[Preset selection]
P1[Base preset] --> B
P2[Theme preset] --> B
P3[Optional Open Props or Atlaskit preset] --> B
B --> C[Ordered preset merge]
A --> C
C --> D[Resolved theme and styling rules]
D --> E[Token and style processing]
E --> F[Project styling artifacts]
References: website/…/presets.mdx• L122-159 website/…/presets.mdx• L239-255 packages/…/merge-presets.test.ts• L9-17 packages/…/merge-presets.test.ts• L113-137
Preset maintenance
The Panda and Open Props presets define their source theme data in the package. The Atlaskit preset has an additional source boundary because its theme is generated from Atlassian token and motion packages.
When those upstream Atlaskit packages change, the preset must be regenerated and reviewed as a theme update. This keeps the reusable package aligned with the source design system before projects consume the new values.
References: packages/…/README.md• L64-88 packages/…/README.md• L92-121
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the base preset can affect every project because it provides the default styling vocabulary even when a project selects another theme.
- Changes to the Panda preset’s token names can affect projects that use the default theme and any generated token documentation that reads those names.
- Changes to a preset’s semantic token paths must stay aligned with the light and dark values consumed by the token processing stage.
- Changes to the Atlaskit source package versions require regeneration of its theme before the preset package is rebuilt.
- Changes to preset inclusion rules must preserve the distinction between the always-included base foundation and the explicitly selected theme foundation.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
A project sets presets but does not include the Panda preset when it expects Panda defaults | The styling vocabulary remains available, but the expected default token values are missing | Add @pandacss/preset-panda explicitly when using a custom preset list |
A project enables eject: true without defining replacement styling support | Default conditions, utilities, patterns, and global CSS support are removed | Provide replacement base capabilities in the project’s own configuration or preset |
| Two selected presets use conflicting values and the order is not intentional | The later value silently wins and can change generated styles | Treat preset order as part of the project’s configuration contract |
| Atlaskit source packages change their token shape or internal paths | Theme generation can fail or produce incomplete Atlaskit values | Pin compatible source versions, regenerate, and review the generated theme |
Key files
| File | Why to read it |
|---|---|
| packages/…/index.ts | Shows the styling-only foundation shared by Panda projects. |
| packages/…/index.ts | Shows the default theme areas exposed by the Panda preset. |
| packages/…/tokens.ts | Shows the main categories in Panda’s default token set. |
| packages/…/index.ts | Shows how Open Props combines tokens, semantic values, breakpoints, and utilities. |
| packages/…/index.ts | Shows the Atlaskit theme surface exposed to Panda projects. |
| packages/…/README.md | Explains the upstream source and refresh path for Atlaskit theme data. |
| packages/…/bundled-preset.ts | Shows which presets the configuration system recognizes without loading a project package. |
| website/…/presets.mdx | Explains preset selection, default inclusion, and ordered merging from the user’s point of view. |