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

# InitUserTheme

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

***

> **initUserTheme**(`username`): `void`

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

Initializes the theme for an authenticated user: reads the user's
saved preference, applies it, and stores the username for future saves.

## Parameters

### username

`string`

The logged-in user's name.

## Returns

`void`
