API Reference@grafana/data › getColorForTheme

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