DocsComponentsUtilitiesGuidesSponsorsLicense
  • Docs

    • Introduction
    • Getting Started
    • Configuration
  • Components

    • CodeBlock
      • CopyButton
      • LineNumbers
      • Tokens
      • Toolbar
    • CodeInline
    • Copyright
    • GitProvider
    • MDX
    • Markdown
    • PackageInstall
    • Reference
    • Refresh
    • Sponsors
    • Theme
      • ThemeStyles
  • Hooks

    • useSectionObserver
    • useThemePicker
  • Utilities

    • File System
  • Guides

    • MDX
    • Next.js
    • Waku
    • Zod
    • Valibot
  • © 2025 souporserious

useThemePicker

API Reference

Last updated: 8/3/2025Edit on GitHub
Previous
useSectionObserver
Next
Guides

On this page

  1. API Reference
  2. useThemePicker

A hook that provides the current color mode and a function to set the color mode.

Returns

[theme: string | undefined, setTheme: (theme?: string | undefined) => void]