Release Notes > Older Releases > 5.40.0
Theme Folder Updates
Learn about the changes made to the `theme` folder in the Webiny v5.40.0 release.
Overview
As mentioned in the changelog, with this release, we’ve made a couple of changes to the theme
folder, that was previously located in the apps
folder.
In short, the main changes are:
- the
theme
folder has been moved from theapps
folder to the newextensions
folder - the actual theme-related code is now located in the
theme/src
folder and not in the root of thetheme
folder (onlypackage.json
andtsconfig.json
remain) - the Reset CSS styles that have been residing in the
theme/global.scss
file have been removed (reference)
And although these changes will be automatically applied to your project upon performing the upgrade (upon running the webiny upgrade
command), it’s still useful to know the following.
global.scss
Backup and Replacement
During the upgrade process, your existing global.scss
file will be automatically backed up (global.backup.scss
will be created) and replaced with the new one.
This ensures that you don’t lose any customizations you might have made to the global.scss
file and that you can easily re-apply them to the new file.
Removal ofglobal.scss
File Imports
Existing imports of the global.scss
file in your apps/admin
and apps/website
folders (Admin and Website project applications) will be removed, as the global.scss
file is now imported within the theme
folder itself.