# useTweed

### 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>
