# Set theme

The Set theme action node changes the theme used by an app, instantly altering the color palette and typography. To set a theme, it must be first created under [Themes](/reference/resources/themes.md).

## Usage

Common use cases for this action node include switching between light mode and dark mode, or enabling a customer theme that features their brand colours. It is possible to store a theme as an object class property, for example as part of a customer object or in an object attached to a user, and enable that theme using Set theme.

For a step-by-step guide to adding a theme switcher to an app, see [Change the active theme](/how-to/themes-and-styling/change-the-active-theme.md).

{% hint style="info" %}
**Example**

A Set theme example is available in our [Showroom](https://showroom.appfarm.app/action-nodes/set-theme). You can view the demo, as well as access the setup in Appfarm Create. Don't have access? [Register](https://showroom.appfarm.app/sign-up).
{% endhint %}

## Properties

<table><thead><tr><th width="269">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Theme</strong></td><td>Select a theme from the list of themes added to the solution.</td></tr><tr><td><strong>Theme from data</strong></td><td>Select a theme dynamically using a <a href="/pages/-MiR7spoCXs5BAzGkvRX">data binding</a>.</td></tr></tbody></table>


---

# 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.appfarm.io/library/action-nodes/set-theme.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.
