For the complete documentation index, see llms.txt. This page is also available as Markdown.

setDarkMode

Enable or disable dark mode to test light/dark UI behavior.

The setDarkMode command sets the system-wide dark mode (light/dark appearance) state on the device.

On Android, this toggles the system night mode setting. On iOS, this controls the simulator's system appearance. On web, this forces the prefers-color-scheme media query, which affects any page using it to detect dark mode.

Syntax

The command takes a single required argument that specifies the desired state for dark mode.

The following example enables dark mode:

- setDarkMode: enabled

The following example disables dark mode:

- setDarkMode: disabled

Last updated