navigationhwcz-lsh

Theme Toggle

Button that applies a theme/group value as a class on the document root, persisted in localStorage and synced across instances.

Notes

  • Configuration is stored under the __Z_THEME__ localStorage key as a group → value map.
  • Non-mode groups replace any existing class sharing the value's two-segment prefix (e.g. theme-*) on <html>.
  • Button content comes from the shared deferred template child.