# useTheme

Combines the stored theme choice with the system preference, follows system
changes live without a reload, and reflects the result onto the document
through the theme source.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useTheme } from "@mapcairn/map";
 
function useTheme(): UseTheme;
```

## Returns

`UseTheme`

## See also

- [`UseTheme`](https://docs.mapcairn.com/api/map/UseTheme-interface.md)

Source: [packages/map/src/services/hooks.ts:275](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L275)
