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

# Widget themes

Use themes to customize the visual appearance of the claimr widget on your platform.&#x20;

Custom themes let you:

* Match the widget to your brand or app styling
* Automatically switch appearance based on user preferences
* Keep dark mode and light mode consistent with your product
* Reuse the same widget across campaigns with different visual identities

Inside the claimr platform, the Theme tab in the widget preview lets you toggle between Light and Dark. These are the default base styles, which you can use for quick testing.&#x20;

<figure><img src="/files/nSldTySz3WOIlScmIjpP" alt="" width="375"><figcaption></figcaption></figure>

However, this toggle does not affect your live widget. The final theme applied is always controlled by you — via the set\_theme() method on your platform.

### Apply a theme via method

To dynamically apply a theme to the claimr widget, use the following SDK method in your code:

```javascript
window.claimr.set_theme("your_theme_name")
```

The set\_theme() method accepts a string as a parameter — the name of your custom theme. This injects the value as a data-theme attribute into the \<body> of the widget iframe.

Once applied, your CSS can target this attribute to apply theme-specific styles, giving you full control over the widget’s appearance.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.claimr.io/widget/widget-themes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
