Utility
Component
useTheme is a custom hook used to get the theme object from context.
useTheme
import { useTheme } from '@fluidtruck/core'
The useTheme hook returns the theme object.
function Example() { const theme = useTheme() return <div>{/* Do something with the theme */}</div>}
Previous
usePrefersReducedMotion
Next
useToken