# ThemeService

> **Info:** This is documentation for **Stream Chat Angular SDK v4**, which is no longer actively maintained. For up-to-date documentation, see the [latest version (v8)](https://getstream.io/chat/docs/sdk/angular/).

The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](https://getstream.io/chat/docs/sdk/angular/v4/theming/themingv2/) gives a complete overview about the topic.

## Properties

### theme$

• **theme$**: `BehaviorSubject<string>`

A Subject that can be used to get or set the currently active theme.

#### Defined in

[lib/theme.service.ts:16](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L16)

---

### themeVersion

• **themeVersion**: `"1"` \| `"2"`

Stream chat theme version - this is used internally by some UI components of the SDK, integrators shouldn't need to use this variable

#### Defined in

[lib/theme.service.ts:20](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L20)

## Accessors

### customDarkThemeVariables

• `get` **customDarkThemeVariables**(): `undefined` \| `{ [key: string]:`string`; }`

A getter that returns the currently set custom dark theme variables.

**`deprecated`** Only use with [theme v1](https://getstream.io/chat/docs/sdk/angular/v4/concepts/themeing/)

#### Returns

`undefined` \| `{ [key: string]:`string`; }`

An object where the keys are theme variables, and the values are the currently set CSS values.

#### Defined in

[lib/theme.service.ts:103](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L103)

• `set` **customDarkThemeVariables**(`variables`): `void`

A setter that can be used to overwrite the values of the CSS theme variables of the dark theme.

**`deprecated`** Only use with [theme v1](https://getstream.io/chat/docs/sdk/angular/v4/concepts/themeing/)

#### Parameters

| Name        | Type                                         | Description                                                                  |
| :---------- | :------------------------------------------- | :--------------------------------------------------------------------------- |
| `variables` | `undefined` \| `{ [key: string]:`string`; }` | An object where the keys are theme variables, and the values are CSS values. |

#### Returns

`void`

An object where the keys are theme variables, and the values are the currently set CSS values.

#### Defined in

[lib/theme.service.ts:112](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L112)

---

### customLightThemeVariables

• `get` **customLightThemeVariables**(): `undefined` \| `{ [key: string]:`string`; }`

A getter that returns the currently set custom light theme variables.

**`deprecated`** Only use with [theme v1](https://getstream.io/chat/docs/sdk/angular/v4/concepts/themeing/)

#### Returns

`undefined` \| `{ [key: string]:`string`; }`

An object where the keys are theme variables, and the values are the currently set CSS values.

#### Defined in

[lib/theme.service.ts:76](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L76)

• `set` **customLightThemeVariables**(`variables`): `void`

A setter that can be used to overwrite the values of the CSS theme variables of the light theme.

**`deprecated`** Only use with [theme v1](https://getstream.io/chat/docs/sdk/angular/v4/concepts/themeing/)

#### Parameters

| Name        | Type                                         | Description                                                                  |
| :---------- | :------------------------------------------- | :--------------------------------------------------------------------------- |
| `variables` | `undefined` \| `{ [key: string]:`string`; }` | An object where the keys are theme variables, and the values are CSS values. |

#### Returns

`void`

An object where the keys are theme variables, and the values are the currently set CSS values.

#### Defined in

[lib/theme.service.ts:85](https://github.com/GetStream/stream-chat-angular/blob/2451bc8/projects/stream-chat-angular/src/lib/theme.service.ts#L85)

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v4/services/ThemeService/](https://getstream.io/chat/docs/sdk/angular/v4/services/ThemeService/).