> ## Documentation Index
> Fetch the complete documentation index at: https://stratanote.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UseTheme

[**API Reference**](/api-reference/index) / [**utils/theme**](/api-reference/utils/theme/index)

***

> **useTheme**(): \[[`ThemeId`](/api-reference/utils/theme/type-aliases/ThemeId), (`theme`) => `void`]

Defined in: [utils/theme.ts:140](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/utils/theme.ts#L140)

React hook to access and change theme state reactively.

## Returns

\[[`ThemeId`](/api-reference/utils/theme/type-aliases/ThemeId), (`theme`) => `void`]

Tuple of \[currentThemeId, setThemeFunction].
