# Customization Guide

To customize the widget's theme interactively, visit the [Squid Widget Studio](https://widget.squidrouter.com/). Copy paste the config code snippet into your code via this button: <img src="/files/s57RzzaK2i6l5jXXnIVN" alt="" data-size="line">

There are a number of ways to configure the widget’s behaviour, UX and design:

* [Broken mention](broken://pages/iz4XwzgEdJG6PulCFIv2): Giving the widget a name and setting the correct API.
* [Default User Settings](/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide/default-user-settings.md): Configure the default user settings such as slippage.
* [Theme Customization](/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide/theme-customization.md): Configure the widget's visual theme.
* [Configuring Content](/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide/configuring-content.md): Customize the widget's content, like titles and animations.
* [Default Chains and Tokens](/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide/default-chains-and-tokens.md): Select which tokens appear on load and pin favourites to the top of token lists.

### Default configuration example

You can use the widget with default values like this:

```jsx
import { SquidWidget } from '@0xsquid/widget';
// ...
<SquidWidget />
```

### Full configuration example

```jsx
<SquidWidget config={
  {
    companyName: "Squid",
    slippage: 1, // default slippage
    style: {
      neutralContent: "#9DA7B1",
      baseContent: "#FFFDFD",
      base100: "#434565",
      base200: "#202230",
      base300: "#161522",
      error: "#ED6A5E",
      warning: "#FFB155",
      success: "#62C555",
      primary: "#AB67CB",
      secondary: "#37394C",
      secondaryContent: "#B2BCD3",
      neutral: "#383A4C",
      roundedBtn: "24px",
      roundedBox: "20px",
      roundedDropDown: "0px",
      displayDivider: false,
      advanced: {
        transparentWidget: false,
      },
    },
    hideAnimations: true, 
    instantExec: true,
    infiniteApproval: true,
    apiUrl: " https://v2.api.squidrouter.com",
    mainLogoUrl: "",
    titles: {
      swap: "Convert",
      settings: "Settings",
      wallets: "Wallets",
      tokens: "Tokens",
      chains: "Chains",
      history: "History",
      transaction: "Transaction",
      destination: "Destination address",
    },
    priceImpactWarnings: {
      warning: 3,
      critical: 5,
    },
    initialFromChainId: 42161, // Arbitrum
    initialToChainId: 1284, // Moonbeam
    favTokens: [
      {
        address: "0x539bdE0d7Dbd336b79148AA742883198BBF60342", // Token address for MAGIC
        chainId: 42161, // Chain ID for Arbitrum
      },
      {
        address: "0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2", // Token address for STELLA
        chainId: 1284, // Chain ID for Moonbeam
      },
    ],
    defaultTokens: [
      {
        address: "0xd4d42F0b6DEF4CE0383636770eF773390d85c61A", // Token address for SUSHI
        chainId: 42161, // Chain ID for Arbitrum
      },
      {
        address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", // Token address for GLMR
        chainId: 1284, // Chain ID for Moonbeam
      },
    ],
  }
}/>
```

All configuration types can be found at [Configuration Types](/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide/configuration-types.md)


---

# 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.squidrouter.com/old-v2-documentation-deprecated/add-a-widget/widget/customization-guide.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.
