@duckduckgo/privacy-dashboard
    Preparing search index...
    • Sets the color scheme theme and/or theme variant.

      This can be called with either a string for backwards compatibility, or an object to set both theme and themeVariant.

      Example Payloads:

      // String format (backwards compatible)
      "dark"
      "light"
      "system"

      // Object format
      { "theme": "dark" }
      { "theme": "light", "themeVariant": "violet" }
      { "theme": "system" }

      Parameters

      • payload: string | { theme?: string; themeVariant?: string }

      Returns void