MCP Apps Kit - v0.5.0
    Preparing search index...

    Function applyHostStyleVariables

    • Apply host-provided CSS variables to the document

      Sets CSS custom properties on the document root element. Variable names are normalized to include the -- prefix if missing.

      Parameters

      • variables: Record<string, string>

        Record of variable names to values

      Returns void

      applyHostStyleVariables({
      "primary-color": "#007bff",
      "--secondary-color": "#6c757d",
      "font-size-base": "16px",
      });