+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "mockThemeContext"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## mockThemeContext variable
### mockThemeContext variable
Enables theme context mocking
Signature
```typescript
mockThemeContext: (theme: Partial) => () => void
```
Import
```typescript
import { mockThemeContext } from '@grafana/ui';
```