Settings

Toasts via HTMX HX-Trigger, Petite-Vue, and the shared toast.ts helper.

Server toasts (HX-Trigger)

Each button hits /htmx/settings/notify?kind=…; Hono sets HX-Trigger with message + type for Toastify.

Form (Petite-Vue)

Example toggle

demoToggle: {{ demoToggle }} — click or drag the thumb (toggle-switch + role="switch" + bound aria-checked).

Theme

Same control as the sidebar — localStorage + data-theme on <html>.

Client toasts (Petite-Vue)

window.__toast uses the same styling; each kind gets its own label, icon, and duration.