Dark Mode Settings

Controls dark mode activation and theme configuration.

darkLogoUrl

Specifies the URL of the logo displayed when dark mode is active, ensuring consistent branding across themes.

Type: string
Default Value: ""


darkTheme

Provides custom theme overrides specifically for dark mode. Its structure mirrors that of the standard Theme Settings, allowing full control over colors and styles in dark mode.

Type: object
Default Value: {}


foldspace.agent('API-KEY').setConfiguration({
  // Dark mode settings
  darkModeSettings: {
    darkTheme: {
      primaryColor: "#3B82F6",
      primaryFontColor: "#FFFFFF",
      backgroundColor: "#0F1724",
      fontFamily: "Roboto",
      fontSize: 14,
      secondaryFontColor: "#9CA3AF",
      secondaryColor: "#111827",
      borderColor: "#1F2937"
    },
    darkLogoUrl: "https://assets.foldspace.com/logos/foldspace-logo-dark.svg"
  }
});