mcp-host-styling-integration
Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.
npx skills add a5c-ai/babysitter --skill mcp-host-styling-integration --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# mcp-host-styling-integration Integrate MCP App UIs with the host application's theming system so apps look native in Claude Desktop, ChatGPT, VS Code, Goose, Postman, and other MCP-enabled hosts. ## Overview MCP Apps render in sandboxed iframes inside host applications. Each host has its own visual theme (colors, fonts, border radii, spacing). The MCP Apps SDK provides: - **CSS variables** (`--color-*`, `--font-*`, `--border-radius-*`) injected by the host - **SDK helpers** (`applyDocumentTheme`, `applyHostStyleVariables`, `applyHostFonts`) to apply them - **React hooks** (`useHostStyles`, `useHostStyleVariables`, `useHostFonts`) for React apps - **`onhostcontextchanged` event** fired when theme changes (e.g., dark mode toggle) The key principle is: always use CSS variable fallbacks so the app looks correct both as an MCP App (host provides variables) and standalone (fallback values apply). ## Capabilities ### Host CSS Variable Integration - Apply all host CSS variables with sensible fallback values - Support color variables: `--color-background-primary`, `--color-background-secondary`, `--color-text-primary`, `--color-text-secondary`, `--color-border-primary` - Support font vari
- Overview
- Capabilities
- Host CSS Variable Integration
- onhostcontextchanged Handler
- Safe Area Insets
- Display Mode Detection
- SDK Helper Functions
- React Hook Integration
- Usage
- Vanilla JS: Full Host Styling
- React: useHostStyles Hook
- CSS with Fallback Values
- Available Host CSS Variables
- Hybrid App Styling (MCP + Standalone)
What does the mcp-host-styling-integration skill do?
Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill mcp-host-styling-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
