> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# useIsDarkTheme()

- Package: [@gooddata/sdk-ui-theme-provider](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-theme-provider/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-theme-provider/src/ThemeProvider/Context.tsx
- Guides: [useTheme](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/hooks/use-theme/index.md)

Hook that returns whether the current theme is dark

**Signature:**

```typescript
useIsDarkTheme: () => boolean
```
**Returns:**

boolean
