Current theme preferences (system preference and local override).
Whether dark mode is currently applied to the document.
Function to set the theme mode (dark, light, or system).
Function to toggle between dark and light modes (preserves system mode if set).
Context value providing theme state and action functions.
Source