API Reference@grafana/uigetTextColorForAlphaBackground

getTextColorForAlphaBackground() function

getTextColorForAlphaBackground() function

Signature

export declare function getTextColorForAlphaBackground(color: string, themeIsDark: boolean): "rgb(32, 34, 38)" | "rgb(247, 248, 250)";

Import

import { getTextColorForAlphaBackground } from '@grafana/ui';

Parameters

ParameterTypeDescription
colorstring
themeIsDarkboolean

Returns:

"rgb(32, 34, 38)" | "rgb(247, 248, 250)"