HTML-First UI

Theme Switch

A toggle switch for light and dark color themes

Notes

The theme switch provides a toggle to switch between light and dark mode.

  • Persists the user preference in local storage
  • Falls back to OS preference when no explicit choice is made
  • Uses sun/moon icons to indicate the current mode