> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# useReferenceTheme()

- Package: [@gooddata/sdk-ui-theme-provider](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-theme-provider/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-theme-provider/src/ThemeProvider/Context.tsx

Hook for reaching the reference theme from context.

**Signature:**

```typescript
useReferenceTheme: () => ITheme | undefined
```
**Returns:**

[ITheme](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.itheme/index.md) &#124; undefined

## Remarks

The reference theme is the workspace theme prepared with the complementary palette enabled, regardless of how the application presents itself. Use it for computations that must be consistent across applications (e.g. color derivation); use [useTheme()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-theme-provider/sdk-ui-theme-provider.usetheme/index.md) for presentation.
