+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "useStyles"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## useStyles variable
### useStyles variable
Hook for using memoized styles with access to the theme.
Signature
```typescript
useStyles: (getStyles: (theme?: GrafanaTheme | undefined) => any) => any
```
Import
```typescript
import { useStyles } from '@grafana/ui';
```