Function: useUiTheme()

useUiTheme(): UiThemeContextValue

Reads the currently resolved library theme from the nearest provider.

Returns

UiThemeContextValue

The active theme context for the current subtree.

Throws

Error When called outside of UiThemeProvider.