ORIGAM_MODE_ATTR

const
Theme & Mode

HTML attribute name set on the <html> element to reflect the active color mode. Consumers should read and write this attribute to synchronise mode state.

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 active mode from the DOM

typescript