# Overview URL: /react/updates/upgrade Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/updates/upgrade/index.mdx Guide to checking compatibility and safely upgrading when updating Crispy package versions. This guide explains how to check compatibility and safely upgrade when updating the version of Crispy packages (`@seed-design/react`, `@seed-design/css`, etc.). Refer to the detailed changelog for the target version you want to upgrade to. Package and code changes needed when upgrading from Crispy React 1.2.x to 2. Work required to upgrade between versions prior to Crispy React 2. ## Versioning Policy Crispy has different versioning policies with **2.0 as a breaking point**. | Range | Policy | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **2.0 or later** | Follows strict SemVer. Breaking changes occur **only in major** versions, and minor·patch versions guarantee backward compatibility. | | **Before 2.0 (0.x·1.x)** | Breaking changes could occur in minor·patch versions. For this range, check the actual compatibility range using the method in the **Compatibility** section below. | From 2.0 onwards, you can freely upgrade minor·patch versions within the same major version. Compatibility verification is especially important when upgrading the 1.x range. Here, "backward compatibility" applies not only to the code but also to the **screen**. Color tokens change not only in name but also **in value only in major** versions. Color and style changes based on design decisions only happen in major versions, so the screen doesn't intentionally change even when you upgrade minor·patch. However, adjustments to correct incorrect values (such as insufficient contrast) may be included in patch versions. Paths like `@seed-design/css/vars/component/*` except for `@seed-design/css/vars/component/typography` are not subject to SemVer guarantees. Names or structures may change in minor·patch versions if the rootage component spec changes, so it is recommended not to directly depend on them in app or library code. ## Compatibility: react ↔ css `@seed-design/react` uses `@seed-design/css` at runtime (classnames·styles). \**If you mix the two packages with incompatible versions, class names may not match and styles may break.*\* - **2.0 or later**: `react` declares the compatible `css` range (`^N.M.0`) in `peerDependencies`. \**You can trust the declaration as is.*\* - **Before 2.0**: Some declarations have no upper limit or are omitted entirely, so there are combinations that look compatible by declaration but actually have mismatched styles. ### 2.0 or Later Check the peer declaration of the installed package. ```bash cat node_modules/@seed-design/react/package.json | grep -A5 peerDependencies ``` If the installed `css` version falls within the range declared like `^2.0.0`, it is compatible. Since it follows strict SemVer, minor·patch upgrades are safe. ### Before 2.0 The 1.x range cannot be judged by declaration alone. Which combinations actually work is documented in a version-specific table in the **Package Version Compatibility** section of the [Crispy React 1 and older](/react/updates/upgrade/v1) document. If you use `@seed-design/stackflow` together, check the known incompatible combinations in that table as well. Moving only the core rules, `css` must be on the **same minor line** as `react` and be at or above the floor specified in the table. Follow the table for exact floors and exceptions. ### Checking Snippet Compatibility Check if the installed snippet matches the current package version with `compat`. ```bash npx @seed-design/cli@latest compat ``` If there is a compatibility issue, it ends with exit code `1`, so it can also be used as a CI gate. ## Upgrading Versions ### Check Current Compatibility Status Verify that the installed snippet matches the current package version. ```bash npx @seed-design/cli@latest compat ``` Whether `react` and `css` are compatible with each other follows the [Compatibility: react ↔ css](#compatibility-react--css) above. If 2.0 or later, check the peer declaration; if 1.x, check the compatibility table in the v1 document. ### Check Changes Verify what changes up to the target version (especially breaking changes). ```bash npx @seed-design/cli@latest docs react/updates/changelog/react/{current-version} --raw ``` This command returns **all changes from the current version onwards**. To see only up to a specific target version, skip sections for higher versions. ### Upgrade react and css with Compatible Versions When spanning the 1.x range, you must upgrade `react` and `css` to **compatible versions together**. If you upgrade only one, the styles may break. **The version numbers of the two packages are different.** Since they are released independently, you should not install them with matching numbers (e.g., the pair of `react@2.0.4` is `css@2.2.1`). Determine the target version for `css` separately using the [Compatibility](#compatibility-react--css) procedure above — if 2.0 or later, from the peer declaration range of `react`; if 1.x, from the compatibility table in the v1 document. - npm: npm install @seed-design/react@\{react-target-version} @seed-design/css@\{css-target-version} - pnpm: pnpm add @seed-design/react@\{react-target-version} @seed-design/css@\{css-target-version} - yarn: yarn add @seed-design/react@\{react-target-version} @seed-design/css@\{css-target-version} - bun: bun add @seed-design/react@\{react-target-version} @seed-design/css@\{css-target-version} ### Reinstall Snippets At some version boundaries, internal structure changes require snippet reinstallation. Components marked as "Reinstall Required" in the changes are downloaded again. ```bash npx @seed-design/cli@latest add ui:{component} ``` ### Verification After upgrading, verify snippet compatibility again with `compat` and check the screen styles and behavior. For complex version jumps or when upgrading multiple packages at once, you can request the `/seed-design` skill in Claude Code or similar: "I want to upgrade from the current version to X". It will provide compatibility diagnostics, upgrade paths, and a list of snippets to reinstall.