diff --git a/src/react/useHostStyles.ts b/src/react/useHostStyles.ts index 72247f752..1368362ed 100644 --- a/src/react/useHostStyles.ts +++ b/src/react/useHostStyles.ts @@ -48,6 +48,8 @@ import { McpUiHostContext } from "../types"; * @see {@link applyDocumentTheme `applyDocumentTheme`} for the underlying theme function * @see {@link useHostFonts `useHostFonts`} for applying host fonts * @see {@link McpUiStyles `McpUiStyles`} for available CSS variables + * + * @deprecated Use {@link useHostStyles `useHostStyles`} instead. */ export function useHostStyleVariables( app: App | null, @@ -121,6 +123,8 @@ export function useHostStyleVariables( * * @see {@link applyHostFonts `applyHostFonts`} for the underlying fonts function * @see {@link useHostStyleVariables `useHostStyleVariables`} for applying style variables and theme + * + * @deprecated Use {@link useHostStyles `useHostStyles`} instead. */ export function useHostFonts( app: App | null, @@ -156,8 +160,10 @@ export function useHostFonts( /** * Applies all host styling (CSS variables, theme, and fonts) to match the host application. * - * This is a convenience hook that combines {@link useHostStyleVariables `useHostStyleVariables`} and - * {@link useHostFonts `useHostFonts`}. Use the individual hooks if you need more control. + * This hook listens to host context changes and automatically applies: + * - `styles.variables` CSS variables to `document.documentElement` + * - `theme` via `color-scheme` CSS property, enabling `light-dark()` CSS function support + * - `styles.css.fonts` as a `