---
id: sdk.createwidgetoptions.theme
title: CreateWidgetOptions.theme
hide_title: true
sidebar_class_name: sidebar-hidden
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@friendlycaptcha/sdk](./sdk.md) &gt; [CreateWidgetOptions](./sdk.createwidgetoptions.md) &gt; [theme](./sdk.createwidgetoptions.theme.md)

## CreateWidgetOptions.theme property

The theme for the widget.

\* `"light"` (default): a light theme with a white background. \* `"dark"`<!-- -->: a dark theme with a dark background. \* `"auto"`<!-- -->: the theme is automatically chosen based on the user's system preferences.

**Signature:**

```typescript
theme?: "light" | "dark" | "auto";
```