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

## getColorForTheme variable

### getColorForTheme variable

<b>Signature</b>

```typescript
getColorForTheme: (color: ColorDefinition, theme?: GrafanaThemeType | undefined) => string
```
<b>Import</b>

```typescript
import { getColorForTheme } from '@grafana/data';
```
