+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "mockThemeContext"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
draft = true
+++

## mockThemeContext variable

### mockThemeContext variable

Enables theme context mocking

<b>Signature</b>

```typescript
mockThemeContext: (theme: Partial<GrafanaTheme>) => () => void
```
<b>Import</b>

```typescript
import { mockThemeContext } from '@grafana/ui';
```
