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.

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

const { setPaletteMode } = useTweed()

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

Method parameters

paletteMode REQUIRED "dark" | "light"

Last updated