The useStyles hook returns the host’s style configuration. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
For most use cases, prefer the SDK’s useHostStyleVariables or useHostFonts hooks which automatically apply styles to the document. Use useStyles when you need raw access to the style data.