state/theme_controller library

Classes

ThemeController
Owns the theme mode, persists it, and exposes the resolved theme that the UI applies as data-theme on the document root.

Enums

ResolvedTheme
The concrete theme applied to the document: only light or dark.
ThemeMode
The user's theme preference.