Search & theme
Search
Section titled “Search”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:
- Auto
- Light
- 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.
Before paint
Section titled “Before paint”The theme provider resolves the stored preference in an inline script before components render. This avoids a visible light-to-dark flash.
Reduced motion
Section titled “Reduced motion”Theme and artwork transitions collapse to effectively zero duration when the user requests reduced motion.