This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datagetColorForTheme

getColorForTheme() function

getColorForTheme() function

Signature

export declare function getColorForTheme(color: string, theme: GrafanaTheme): string;

Import

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

Parameters

Parameter Type Description
color string
theme GrafanaTheme

Returns:

string