Add way to pass fonts
This commit is contained in:
parent
c516cf0894
commit
6397ec1511
1 changed files with 323 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue