Update naming of functions to reflect styles.variables nesting

This commit is contained in:
martinalong 2025-12-14 18:20:50 -08:00
commit 8f591b69f2
No known key found for this signature in database

View file

@ -587,7 +587,7 @@ type McpUiStyleVariableKey =
...
}
```
- Apps can use the `applyHostStyles` utility (or `useHostStyles` if they prefer a React hook) to easily populate the host-provided CSS variables into their style sheet
- Apps can use the `applyHostStyleVariables` utility (or `useHostStyleVariables` if they prefer a React hook) to easily populate the host-provided CSS variables into their style sheet
- Apps can use the `applyDocumentTheme` utility (or `useDocumentTheme` if they prefer a React hook) to easily respond to Host Context `theme` changes in a way that is compatible with the host's light/dark color variables
Example usage of standardized CSS variables: