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

API Reference@grafana/uiuseTheme2

useTheme2() function

useTheme2() function

Signature

export declare function useTheme2(): GrafanaTheme2;

Import

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

Returns:

GrafanaTheme2