✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Function useTheme
useTheme():
CompleteThemeSettings
Returns the resolved theme from the nearest ThemeProvider. Falls back to the default theme when no provider is present.
# Returns
Resolved CompleteThemeSettings
# Example
const { palette, typography, widget } = useTheme();