Themes
This guide is designed to assist customers who are upgrading their SXA themes from version 10.2 to 10.5. It provides step-by-step instructions and important considerations to ensure a smooth transition to the latest version.
For more information about SXA themes, refer to the the SXA themes.
Backup
Before upgrading, make sure to create a full backup of the theme, which is the sass/ directory and all custom components.
Preparing package.json
It is recommended to use the following `package.json`:
Steps Before Installation
-
Back up the existing package.json and theme files.
-
Update the existing @sitecore/sxa-celt entry in devDependencies to 10.5.0 and the gulp entry in dependencies to ^5.0.0. Preserve other project-specific dependencies, scripts, and configuration.
-
Run the following command:
Existing Sass Compatibility
Updating npm dependencies does not automatically migrate existing Sass sources. Build the theme with the SXA 10.5 tooling, review compilation errors and deprecation warnings, and update custom Sass where required.
After the Upgrade
- Run the following command:
- Confirm the command finishes without errors.
- Upload the generated assets to the correct Sitecore theme.
- Publish the updated theme items to the delivery database.
- Open the SXA website and confirm the styles display correctly.