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();