Overview
TheuseStyles hook returns the host’s style configuration. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
Returns
McpUiHostStyles | undefined
The host’s style configuration including CSS variables and font settings, or
undefined if the host does not provide styles.