getTextColorForBackground() function

getTextColorForBackground() function

Signature

  1. export declare function getTextColorForBackground(color: string): "rgb(32, 34, 38)" | "rgb(247, 248, 250)";

Import

  1. import { getTextColorForBackground } from '@grafana/ui';

Parameters

ParameterTypeDescription
colorstring

Returns:

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