ORIGAM_THEME_STORAGE_KEY

const
Theme

localStorage key under which the user's chosen theme name is persisted across page reloads. useTheme() reads and writes this key automatically.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Reading the persisted theme directly from localStorage

typescript