Widget themes

Use themes to customize the visual appearance of the claimr widget on your platform.

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.

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:

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.

Last updated

Was this helpful?