# Theming

Element provides a default `element` theme with `light` and `dark` theme types as well as supports the definition of custom themes. A custom theme can support either `light`, `dark`, or both theme types.

## How it works

Element uses CSS variables to implement theming, as they can be changed at runtime in the browser without page reload. The [semantic color tokens](<https://element.siemens.io/fundamentals/colors/ui-colors/>) in the design system are set to CSS variables instead of direct color codes, e.g. `$element-ui-0: var(--element-ui-0);` and are changed at runtime by either applying the `.app--dark` CSS class or by changing the value using the service `SiThemeService`.

The SCSS variables are also set or overwritten to use those semantic tokens including the base font. Besides that, assets like the brand logo can also be overwritten using CSS variables.

## Dark mode

Element supports a `light` and `dark` theme mode, which applies to the theme itself as well as all components. A user can choose either `light` or `dark` mode, while the default is being derived from the browser or operating system configuration.

### Applying dark mode

Switching dark mode is done by adding the class `app--dark` to the `<html>` tag. This will then switch the CSS variables to the value for the dark theme.

This process is automated using the `SiThemeService` service. Inject the service in your component and use `applyThemeType('dark' | 'light' | 'auto')`:

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component, inject } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SiThemeService, ThemeType } from '@siemens/element-ng/theme';

@Component({
  selector: 'app-sample',
  imports: [FormsModule],
  templateUrl: './theme-switcher.html'
})
export class SampleComponent {
  theme: ThemeType = 'light';

  private themeService = inject(SiThemeService);

  applyThemeType(): void {
    this.themeService.applyThemeType(this.theme);
  }
}
```

Template:

```html
<div class="p-4">
  <h3>Theme Switcher</h3>

  <select
    class="form-control w-25"
    aria-label="Theme Switcher"
    [(ngModel)]="theme"
    (ngModelChange)="applyThemeType()"
  >
    <option value="auto">Auto</option>
    <option value="light">Light</option>
    <option value="dark">Dark</option>
  </select>
</div>
```

> **Note:** It is recommended to call `themeService.applyThemeType('auto')` during initialization of the app (e.g. within `app.component.ts`) as this derives the theme choice from the user's browser or operating system configuration, allowing a coherent experience across different apps.

### Preparing application for dark mode support

The dark theme works out of the box, if you use the [semantic tokens](<https://element.siemens.io/fundamentals/colors/ui-colors/>) and follow these few steps:

- In the application's SCSS, make sure to use the semantic tokens everywhere, i.e. use `$element-ui-4` for border colors instead of `$element-gray-200`.
- In some cases using the `$element-ui-*` tokens will fail, e.g. for things like `background-color: rgba($element-ui-4, 0.5)`.

## Custom themes

The SiThemeService is responsible for all theming topics.

- At startup, it tries to load a custom active theme from the SiThemeStore.
- If available, it applies the custom theme. Otherwise, the default Element theme is used.

### [SiThemeStore](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L15-L64>)

**Kind:** class

```
import { SiThemeStore } from '@siemens/element-ng/theme';
```

SiThemeStore object is used by the theme service to load and store the themes. You can inject your own implementation to provide a backend implementation. Otherwise a localStorage based implementation is used.

```
undecorated_class SiThemeStore
```

#### Constructor

##### constructor

[Source for constructor](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L15-L64>)

```
constructor(): SiThemeStore
```

**Returns:** [SiThemeStore](<index.html#t:SiThemeStore>)

#### Methods

##### activateTheme

[Source for activateTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L30-L30>)

Sets the theme with the given name to active.

Returns: True on success, otherwise false.

```
activateTheme(name: string): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L30-L30>) | `string` |  | • The name of the theme to become active. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### deactivateTheme

[Source for deactivateTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L35-L35>)

Deactivate any active theme and makes the element theme the default one.

Returns: True on success, otherwise false.

```
deactivateTheme(): Observable<boolean>
```

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### deleteTheme

[Source for deleteTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L63-L63>)

Deletes the theme with the given name from the store.

Returns: True on success, otherwise false. All nicely wrapped in an observable that may also emit errors. Returns false, if the theme does not exist.

```
deleteTheme(name: string): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L63-L63>) | `string` |  | • The name of the theme to be deleted. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### loadActiveTheme

[Source for loadActiveTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L24-L24>)

Load and return an alternative custom theme, other then the default element theme. This method is invoked initially to check for an alternative custom theme.

Returns: The active theme to be used, or undefined if the default element theme shall be used. All wrapped in an observable that can also emit errors.

```
loadActiveTheme(): Observable<Theme | undefined>
```

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[Theme](<index.html#t:Theme>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)`>`

##### loadTheme

[Source for loadTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L47-L47>)

Load theme with the given `name`.

Returns: Observable with the named theme or `undefined` if no such theme exist.

```
loadTheme(name: string): Observable<Theme | undefined>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L47-L47>) | `string` |  | • The name of the theme to be returned. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[Theme](<index.html#t:Theme>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)`>`

##### loadThemeNames

[Source for loadThemeNames](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L41-L41>)

Load and return the available theme names.

Returns: An `Observable` of available theme names, other than the default element theme.

```
loadThemeNames(): Observable<string[]>
```

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`[]>`

##### saveTheme

[Source for saveTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L55-L55>)

Saves a theme to the store. The name shall not be empty. A theme with identical name gets overwritten.

Returns: True on success, otherwise false. All nicely wrapped in an observable that may also emit errors.

```
saveTheme(theme: Theme): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [theme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme-store.ts#L55-L55>) | `Theme` |  | • The theme to be saved. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

The `SiDefaultThemeStore` is a [localStorage](<https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage>) based implementation of the `SiThemeStore`, which is used by default. To provide custom themes using other means than a localStorage like e.g. a backend service, you can implement your own `SiThemeStore` and load a `Theme` custom theme object.

You need to provide your implementation in the main app module:

```
{ provide: SiThemeStore, useClass: YourThemeStoreImpl }
```

### [SiThemeService](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L29-L496>)

**Kind:** class

**Provided in:** `root`

```
import { SiThemeService } from '@siemens/element-ng/theme';
```

```
undecorated_class SiThemeService
```

#### Attributes and Methods

##### activeThemeName

[Source for activeThemeName](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L78-L78>)

**Modifiers:** optional

**Type:** `string`

The name of the theme that is active. Theme name `element` is the default.

##### addOrUpdateTheme

[Source for addOrUpdateTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L195-L215>)

Adds or updates the given theme in the theme store.

Returns: `true` if the theme was saved successfully.

```
addOrUpdateTheme(theme: Theme): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [theme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L195-L195>) | `Theme` |  | • The theme to be saved. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### applyTheme

[Source for applyTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L323-L334>)

Applies the given theme to the configured theme target. If no theme is given, the active theme is applied.

```
applyTheme(theme?: Theme, type?: ThemeType, overwrite?: boolean): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [theme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L323-L323>) (optional) | `Theme` |  |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L323-L323>) (optional) | `ThemeType` |  |  |
| [overwrite](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L323-L323>) (optional) | `boolean` |  |  |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### applyThemeType

[Source for applyThemeType](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L303-L318>)

Apply `light` or `dark` theme to the configured theme target.

```
applyThemeType(type: ThemeType): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L303-L303>) | `ThemeType` |  |  |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### deleteTheme

[Source for deleteTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L220-L242>)

Deletes the theme with the given name from the theme store.

```
deleteTheme(name: string): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L220-L220>) | `string` |  |  |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### getActiveTheme

[Source for getActiveTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L172-L188>)

Loads and returns the currently active theme. Returns undefined if no custom theme is used.

Returns: A custom theme or `undefined` if the default element theme is used.

```
getActiveTheme(): Observable<Theme | undefined>
```

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[Theme](<index.html#t:Theme>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)`>`

##### getTheme

[Source for getTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L148-L166>)

Returns a clone of the theme with the given name or `undefined` if not available or name is `element`.

Returns: The theme with the given name and `undefined` if name is `element`.

```
getTheme(name: string): Observable<Theme | undefined>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L148-L148>) | `string` |  | • The name of the theme to be returned. |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[Theme](<index.html#t:Theme>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)`>`

##### hasTheme

[Source for hasTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L138-L140>)

Returns `true` if a theme with the given name is available.

```
hasTheme(name: string): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L138-L138>) | `string` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### isThemeValid

[Source for isThemeValid](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L352-L364>)

Checks if the given theme JSON object is a valid theme.

```
isThemeValid(data: unknown): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [data](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L352-L352>) | `unknown` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### resetPreview

[Source for resetPreview](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L247-L250>)

Resets the preview theme to the default element theme.

```
resetPreview(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### resolvedColorScheme

[Source for resolvedColorScheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L44-L46>)

**Modifiers:** readonly

**Type:** `ThemeType | undefined`

The current color scheme. (e.g. light or dark).

##### resolvedColorScheme$

[Source for resolvedColorScheme$](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L40-L40>)

**Modifiers:** readonly

**Type:** `Observable<keyof ThemeColorSchemes>`

**Default:** `this.resolvedColorSchemeSub.asObservable()`

Emits events when the color scheme changes.

##### setActiveTheme

[Source for setActiveTheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L255-L298>)

Sets the active theme to the given name. If no name is given, the default element theme is used.

```
setActiveTheme(name?: string, type?: ThemeType): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L255-L255>) (optional) | `string` |  |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L255-L255>) (optional) | `ThemeType` |  |  |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

##### themeChange

[Source for themeChange](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L73-L73>)

**Modifiers:** readonly

**Type:** `EventEmitter<Theme | undefined>`

**Default:** `new EventEmitter<Theme | undefined>()`

Emits events when the currently applied theme changes. Either by changing to another theme or by re-applying a theme with updated properties. When switching to default theme element, `undefined` is emitted.

##### themeIcons

[Source for themeIcons](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L86-L86>)

**Modifiers:** readonly

**Type:** `WritableSignal<Record<string, string>>`

**Default:** `{}`

Icon overrides by the currently activeTheme.

##### themeNames

[Source for themeNames](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L63-L65>)

**Modifiers:** readonly

**Type:** `string[]`

All available theme names, including element theme name.

##### themeNames$

[Source for themeNames$](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L58-L58>)

**Modifiers:** readonly

**Type:** `Observable<string[]>`

**Default:** `this.themeNamesSub.asObservable()`

Emits events when the list of available theme names changes.

##### updateProperty

[Source for updateProperty](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L339-L347>)

Updates the given property of the preview theme.

```
updateProperty(name: string, value: string, type: keyof ThemeColorSchemes): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L339-L339>) | `string` |  |  |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L339-L339>) | `string` |  |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.service.ts#L339-L339>) | `keyof ThemeColorSchemes` |  |  |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

## Build time custom theme

It's also possible to use custom themes at build time. This option is mostly for OEM theming. To use a theme at build time, first set up a SCSS file with the theme definitions. These are a SCSS map. For the required keys, please see the [Siemens Brand](<https://github.com/siemens/element/tree/main/projects/element-theme/src/styles/variables/siemens-brand/_theme-siemens-brand.scss>) definitions.

For example, create `_theme-oem.scss` with this:

```
$theme-oem: (
  // definitions, see above
);
```

Then, to include this theme and build it as the default, change the main style sheets:

```
// first configure the element-theme by not building the 'siemens-brand' theme
@use '@siemens/element-theme/src/theme' with (
  // the default is 'siemens-brand';
  $element-theme-default: 'oem',
  // themes to build.
  $element-themes: ('oem')
);
@use '@siemens/element-ng/element-ng';

// build the OEM theme
@use '@siemens/element-theme/src/styles/themes';
@use './theme-oem';
@include themes.make-theme(theme-oem.$theme-oem, 'oem', false);
```

The list `$element-themes` doesn't need to include the value set as `$element-theme-default`. `$element-theme-default` determines the name of the theme used as default, i.e. the one that is active w/o setting any additional class on the root element.

To use e.g. the `siemens-brand` theme by default but also allow a `oem` theme as opt-in, use `$element-theme-default: 'siemens-brand'` or completely emit this configuration and provide `$element-themes: ('oem')`. The additional `oem` theme is built and can be activated by applying the class `theme-oem` to the `<html>` tag.

If both a light and a dark mode version are desired, defines two maps, e.g.

```
$theme-oem-light: (
  // light mode and shared definitions
);

$theme-oem-dark: (
  // dark mode definitions
);
```

Then, use `themes.make-theme()` like this:

```
@include themes.make-theme(theme-oem.$theme-oem-light, 'oem', false);
@include themes.make-theme(theme-oem.$theme-oem-dark, 'oem', true);
```

> [!WARNING]
>
> **Important info**
>
> The required keys in the map might change in future versions of Element, so forward compatibility is not guaranteed. Topic like usability and accessibility and not guaranteed that way so please always involve UX when using this feature.

### Types Documentation

### [Theme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L25-L43>)

**Kind:** interface

```
import type { Theme } from '@siemens/element-ng/theme';
```

```
interface Theme
```

#### Properties

<table>     <thead>       <tr>         <th>Name</th>         <th>Type</th>         <th>Description</th>       </tr>     </thead>     <tbody>         <tr id="t:Theme.icons">           <td class="api-column-name">                           <a href="https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L42-L42">icons</a> (optional)          </td>           <td class="api-column-type">             <code>Record&lt;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>&gt;</code>           </td>           <td class="api-column-description"><p>A map of icons that overrides the default Element icons. The key must be the key of the original icon that should be overridden. The value has to be a data SVG string.</p><p>Example:</p><pre><code class="language-ts">{&#10;  elementUser: &quot;data:image/svg+xml;utf8,&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'&gt;...&lt;/svg&gt;&quot;&#10;}</code></pre></td>         </tr>         <tr id="t:Theme.name">           <td class="api-column-name">                           <a href="https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L26-L26">name</a>           </td>           <td class="api-column-type">             <code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code>           </td>           <td class="api-column-description"></td>         </tr>         <tr id="t:Theme.schemes">           <td class="api-column-name">                           <a href="https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L27-L27">schemes</a>           </td>           <td class="api-column-type">             <code><a href="index.html#t:ThemeColorSchemes">ThemeColorSchemes</a></code>           </td>           <td class="api-column-description"></td>         </tr>     </tbody>   </table>

### [ThemeColorSchemes](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L45-L48>)

**Kind:** interface

```
import type { ThemeColorSchemes } from '@siemens/element-ng/theme';
```

```
interface ThemeColorSchemes
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [dark](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L47-L47>) (optional) | `ThemeColorScheme` |  |
| [light](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L46-L46>) (optional) | `ThemeColorScheme` |  |

### [ThemeType](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L54-L54>)

**Kind:** type alias

```
import type { ThemeType } from '@siemens/element-ng/theme';
```

```
type ThemeType = ColorScheme | 'auto'
```

### [ThemeColorScheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L50-L50>)

**Kind:** type alias

```
import type { ThemeColorScheme } from '@siemens/element-ng/theme';
```

```
type ThemeColorScheme = { [key: string]: string }
```

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[key: string\]](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L50-L50>) | `string` |  |

### [ColorScheme](<https://github.com/siemens/element/blob/main/projects/element-ng/theme/si-theme.model.ts#L52-L52>)

**Kind:** type alias

```
import type { ColorScheme } from '@siemens/element-ng/theme';
```

```
type ColorScheme = 'light' | 'dark'
```
