Assets Override Workflow
To override assets (such as logos, icons, or images) in your project, follow these steps:
-
Identify the Asset to Override
- Determine which asset (logo, icon, image, etc.) you want to replace in your project.
- Use your browser's inspect element tool to locate the asset path or variable.
-
Replace or Override the Asset
-
Go to your project’s assets directory (commonly found at
project-repo/src/shared/assets/). If the directory does not exist, create it. and place your assets in this directory. -
Go to your project's
design.cssfile (usually atproject-repo/src/design.css). -
Add the same assets variable and provide your overridden value with the
!importantkeyword. -
Example design.css screenshot:
-
-
Run the Project
- Start your project with:
yarn start
- You should now see the updated assets.
- Start your project with: