Add way to pass fonts

This commit is contained in:
martinalong 2025-12-14 18:01:24 -08:00
commit 6397ec1511
No known key found for this signature in database

View file

@ -284,12 +284,22 @@ export interface McpUiToolCancelledNotification {
};
}
/**
* @description CSS blocks that can be injected by apps.
*/
export interface McpUiHostCss {
/** @description CSS for font loading (@font-face rules or @import statements). Apps must apply using applyHostFonts(). */
fonts?: string;
}
/**
* @description Style configuration for theming MCP apps.
*/
export interface McpUiHostStyles {
/** @description CSS variables for theming the app. */
variables?: McpUiStyles;
/** @description CSS blocks that apps can inject. */
css?: McpUiHostCss;
}
/**