Skip to content

Begin typing to search this documentation.

Search & theme

Documentation search opens from the header or with ⌘K/Ctrl+K. Results are loaded from Starlight’s Pagefind output and remain scoped to the current documentation site.

The dialog is centred, focusable, dismissible with Escape, and usable on mobile without relying on hover.

The theme control cycles through:

  1. Auto
  2. Light
  3. Dark

The current preference is stored in local storage and a gw-theme cookie. On Greenways production hosts, the cookie is scoped to the parent domain so project transitions preserve the choice.

The theme provider resolves the stored preference in an inline script before components render. This avoids a visible light-to-dark flash.

Theme and artwork transitions collapse to effectively zero duration when the user requests reduced motion.