> For the complete documentation index, see [llms.txt](https://docs.impler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.impler.io/widget-customization.md).

# Widget Customization

Customise your import widget to match your brand and design system using the AppearanceConfig options.

## Basic Example and Setup

```javascript
const { showWidget, isImplerInitiated } = useImpler({
  projectId: "",
  templateId: "",
  accessToken: "",
  appearance: {
    primaryColor: '#FF6B35',
    fontFamily: 'Inter',
    borderRadius: '8px'
  }
});
```

## **AppearanceConfig type definition**    &#x20;

```typescript
export type AppearanceConfig = {
  widget?: {
    backgroundColor?: string;
  };
  primaryColor?: string;
  fontFamily?: string;
  borderRadius?: string;
  primaryButtonConfig?: ButtonConfig;
  secondaryButtonConfig?: ButtonConfig;
};
```

```typescript
export type ButtonConfig = {
  backgroundColor?: string;
  buttonShadow?: string;
  textColor?: string;
  hoverBackground?: string;
  hoverBorderColor?: string;
  borderColor?: string;
  hoverTextColor?: string;
};

```

Note - All properties, including the `appearance` object, are optional. If none are provided, the widget will fall back to its default appearance.

## ApperaranceConfig Property with Available Customization Options

**Widget Properties:**

* `backgroundColor` - Sets the main widget background color
* `primaryColor` - Main brand color used throughout the widget
* `fontFamily` - Font family for all text elements
* `borderRadius` - Corner rounding for all elements

**Button Properties:**

* `backgroundColor` - Button background color (default state)
* `textColor` - Button text color (default state)
* `borderColor` - Button border color (default state)
* `buttonShadow` - Drop shadow effect
* `hoverBackground` - Background color when hovering
* `hoverTextColor` - Text color when hovering
* `hoverBorderColor` - Border color when hovering

### Quick Note

⚠️ **Important:** We're moving `primaryColor` inside the `appearance` object. The old way still works but will be deprecated in future releases.

***

If you have any questions, suggestions, or comments. Feel free to reach out to us over [**Discord**](https://discord.impler.io). We’re constantly improving to deliver the best Data Importer for your product, and we value your input.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.impler.io/widget-customization.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
