+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "useTheme" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++ ## useTheme() function ### useTheme() function Signature ```typescript export declare function useTheme(): GrafanaTheme; ``` Import ```typescript import { useTheme } from '@grafana/ui'; ``` Returns: `GrafanaTheme`