← All widgets

Search Widget – Dark Mode Cookie Test

Cookie Controls

Cookie key: userModeTheme

Current cookie value:

The widget polls the userModeTheme cookie every 500 ms and sends a postMessage to the iframe. Removing the cookie falls back to prefers-color-scheme.

Search Widget

Test scenarios