useTheme is a custom hook to get the theme object from context.
useTheme
import { useTheme } from "@chakra-ui/core"
The useTheme hook returns the theme object.
function Example() { const theme = useTheme() return <div>{/* Do something with the theme */}</div>}
Previous
useMediaQuery
Next
usePrefersReducedMotion