Overview
Hosts may provide custom font CSS viaMcpUiHostContext.styles.css.fonts. This CSS can contain @font-face rules, @import statements, or both. Use applyHostFonts to inject it as a <style> tag.
applyHostFonts
Injects host font CSS into the document head. Idempotent — subsequent calls are no-ops.Signature
CSS string containing
@font-face rules and/or @import statements.