# ThemeContext

`ThemeContext` is provided by [`OverlayProvider`](/chat/docs/sdk/react-native/core-components/overlay-provider/) and [`Chat`](/chat/docs/sdk/react-native/core-components/chat/) components.
Read the [theming section](/chat/docs/sdk/react-native/customization/theming/) for more information on how to customize your theme.
If you are not familiar with React Context API, please read about it on [React docs](https://reactjs.org/docs/context.html).

## Basic Usage

`ThemeContext` can be consumed by any of the child component of `OverlayProvider` or `Chat` components.

```tsx
import { useContext } from "react";
import { ThemeContext } from "stream-chat-react-native";

const {
  theme: {
    colors: { accent_red },
  },
} = useContext(OverlayContext);
```

Alternatively, you can also use `useTheme` hook provided by library to consume ThemeContext.

```tsx
import { useTheme } from "stream-chat-react-native";

const {
  theme: {
    colors: { accent_red },
  },
} = useTheme();
```

## Value

### theme

The default theme object in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)
merged with the theme you pass as `style` to [`OverlayProvider`](/chat/docs/sdk/react-native/core-components/overlay-provider/) or [`Chat`](/chat/docs/sdk/react-native/core-components/chat/) components.

| Type   |
| ------ |
| object |

---

This page was last updated at 2025-08-15T14:16:31.370Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/contexts/theme-context/](https://getstream.io/chat/docs/sdk/react-native/contexts/theme-context/).