# get method

Information noteSTABLE.   
  
This API is reliable and breaking changes are unlikely.

qlik.theme.get(id)

qlik.app.theme.get(id)

Retrieves a [QTheme](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/ThemeAPI/QTheme.htm) object that consists of a theme and helper methods.

Information noteThis method requires an open app.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | Qlik Sense February 2018 |

## Parameters

### id

Type: String

Mandatory when used in global context, optional when used in app context.

ID of the theme to fetch.

If no ID is specified when in app context, the theme that is saved for the app is returned.

## Returns

A promise that resolves with a [QTheme](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/ThemeAPI/QTheme.htm) object consisting of the theme as a JSON structure.

## Example

```
qlik.theme.get('my-theme-id').then(function(qtheme){
   alert('Theme background color: ' + qtheme.properties.backgroundColor);
	});
```