> For the complete documentation index, see [llms.txt](https://apcom.gitbook.io/altrone-ui/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apcom.gitbook.io/altrone-ui/utils/hooks/usemediamatch.md).

# useMediaMatch

Use this hook to get media information about user preferences, like system theme, device width and etc.

```typescript
import { useMediaMatch } from 'altrone-ui';

const mediaScheme = useMediaMatch('(prefers-color-scheme: dark)'); // false
```
