# parseThemeChoice

Reads a stored value as a theme choice. Anything that is not exactly
"system", "light" or "dark" becomes "system".

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

## Signature

```ts
import { parseThemeChoice } from "@mapcairn/core";
 
function parseThemeChoice(raw: unknown): ThemeChoice;
```

## Parameters

- `raw` (`unknown`)

## Returns

`ThemeChoice`

## Remarks

Must stay free of outside references: the inline bootstrap script
 is built from this function's source text.

## See also

- [`ThemeChoice`](https://docs.mapcairn.com/api/core/ThemeChoice.md)

Source: [packages/core/src/theme/theme.ts:24](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/theme/theme.ts#L24)
