> For the complete documentation index, see [llms.txt](https://docs.paytweed.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paytweed.com/developer-tools/tweed-sdks/core-react/usetweed.md).

# useTweed

Manage your Tweed SDK integration using the useTweed hook, which includes the setPaletteMode function and the SDK's loading state.

### Set palette mode

The tweed widgets SDK offers both dark and light modes. You can select which one to use with this function.

<details>

<summary>setPaletteMode()</summary>

```tsx
import { useTweed } from "@paytweed/core-react";

const { setPaletteMode } = useTweed()

    setPaletteMode((mode) =>
        mode === "light" ? "dark" : "light",
      )
```

**Method parameters**

paletteMode <mark style="color:red;">REQUIRED</mark>   <mark style="color:blue;">"dark" | "light"</mark>

</details>
