---
url: "https://vueda.dev/v3/reference/api/js/use/themeRegistry/functions/setTheme.md"
title: "setTheme"
---

# setTheme

## Overview

Replace the base theme, including previous base patches. Project overrides
remain in effect; use clearThemeOverrides to remove them.

## Signature

`setTheme(newTheme)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-newTheme">newTheme</span> | [ThemeObject](/v3/reference/api/js/use/useTheme/types/ThemeObject.md) | yes | The new default theme. |

### Returns

`void`

## Source

`client/lib/use/themeRegistry.js:191`
