CODE_THEME

enum
Code

Controls which shiki colour theme OrigamCode applies. AUTO follows the host page data-theme attribute or prefers-color-scheme.

TypeScript

Definition

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

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

CODE_THEME.AUTO
Follows the host page theme (data-theme or prefers-color-scheme).
CODE_THEME.LIGHT
Forces the light shiki theme regardless of the page theme.
CODE_THEME.DARK
Forces the dark shiki theme regardless of the page theme.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Forcing dark highlighting

vue