# Override Mechanism

Overriding files in the theme is a great solution for store owners and developers that want to have a theme based on ScandiPWA, but need to customize it for their needs. Using the override mechanism, you are able to override any part of the ScandiPWA theme, including styling, user interaction, page structure, or custom functionality. Any part that you don't need to override will fallback to the default ScandiPWA implementation.

Watch the video tutorial/showcase by following the link below!

{% content-ref url="../tutorials/video-tutorials/overriding-a-file" %}
[overriding-a-file](https://docs.scandipwa.com/tutorials/video-tutorials/overriding-a-file)
{% endcontent-ref %}

The Override Mechanism enables you to override any JavaScript or SCSS stylesheet file while keeping what you want to keep from the original file. You can of course create new files and use them in the files you override. Using this mechanism, you will be able to:

* Change the layout or styling of any component or page
* Modify any component's behavior
* Add new components with custom functionality
* Add new pages to your application
* Remove any unwanted functionality
* ...and more!&#x20;

{% hint style="warning" %}
The Override Mechanism is designed to be used for developing one specific theme. If you want to develop an extension that can be installed on multiple themes, take a look at the [Plugin Mechanism](https://docs.scandipwa.com/developing-with-scandi/extensions), which can be used to develop reusable plugins.
{% endhint %}

## Override Mechanism Guides

{% content-ref url="override-mechanism/extending-javascript" %}
[extending-javascript](https://docs.scandipwa.com/developing-with-scandi/override-mechanism/extending-javascript)
{% endcontent-ref %}

{% content-ref url="override-mechanism/extending-styles" %}
[extending-styles](https://docs.scandipwa.com/developing-with-scandi/override-mechanism/extending-styles)
{% endcontent-ref %}

{% content-ref url="override-mechanism/overriding-the-index-file" %}
[overriding-the-index-file](https://docs.scandipwa.com/developing-with-scandi/override-mechanism/overriding-the-index-file)
{% endcontent-ref %}

## Parent themes

You can also stack overrides on top of each other, by creating parent themes. Learn more in the guide below:

{% content-ref url="override-mechanism/parent-themes" %}
[parent-themes](https://docs.scandipwa.com/developing-with-scandi/override-mechanism/parent-themes)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scandipwa.com/developing-with-scandi/override-mechanism.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
