ORIGAM_THEME_ATTR

const
Theme

HTML attribute name written on the root element to activate a named theme. Setting data-theme="dark" on <html> switches the active token set.

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.

Applying a theme attribute to the document root

typescript