useColorMode

useColorMode is a custom hook that returns the current color mode.

The current colorMode is "light"

Usage

import { useColorMode } from "@yamada-ui/react"
const { changeColorMode, colorMode, internalColorMode, toggleColorMode } =
  useColorMode()

Switching Color Mode

  • colorMode: Provides the current color mode.
  • internalColorMode: Provides the current color mode including system.

The current colorMode is "light", internal colorMode is "light"