Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Revert custom theme toggle, use fumadocs default
Sushmithamallesh702b960d0956
diff --git a/fumadocs/app/global.css b/fumadocs/app/global.cssindex 7c7eea9d8..e7d2d4cad 100644--- a/fumadocs/app/global.css+++ b/fumadocs/app/global.css@@ -241,31 +241,6 @@ a:focus-visible {gap: 0.5rem;}-/* Theme toggle button */-.theme-toggle-btn {- display: inline-flex;- align-items: center;- justify-content: center;- width: 2.25rem;- height: 2.25rem;- border: none;- background: transparent;- border-radius: 0.375rem;- color: var(--color-fd-muted-foreground);- cursor: pointer;- transition: color var(--header-transition), background var(--header-transition);-}--.theme-toggle-btn:hover {- color: var(--color-fd-foreground);- background: var(--color-fd-accent);-}--.theme-toggle-btn:focus-visible {- outline: 2px solid var(--composio-orange);- outline-offset: 2px;-}-/* GitHub icon link */#nd-nav a[href*="github.com"] {display: inline-flex;diff --git a/fumadocs/components/theme-toggle.tsx b/fumadocs/components/theme-toggle.tsxdeleted file mode 100644index 1899aa5a5..000000000--- a/fumadocs/components/theme-toggle.tsx+++ /dev/null@@ -1,29 +0,0 @@-'use client';--import { Moon, Sun } from 'lucide-react';-import { useTheme } from 'next-themes';-import { useEffect, useState } from 'react';--export function ThemeToggle() {- const { setTheme, resolvedTheme } = useTheme();- const [mounted, setMounted] = useState(false);-- useEffect(() => {- setMounted(true);- }, []);-- return (- <button- type="button"- className="theme-toggle-btn"- onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}- aria-label="Toggle theme"- >- {mounted && resolvedTheme === 'dark' ? (- <Sun className="size-[18px]" />- ) : (- <Moon className="size-[18px]" />- )}- </button>- );-}diff --git a/fumadocs/lib/layout.shared.tsx b/fumadocs/lib/layout.shared.tsxindex 7dbcb6794..01d79acd3 100644--- a/fumadocs/lib/layout.shared.tsx+++ b/fumadocs/lib/layout.shared.tsx@@ -1,6 +1,5 @@import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';import Image from 'next/image';-import { ThemeToggle } from '@/components/theme-toggle';// Composio Logo Component with light/dark mode switchingfunction ComposioLogo() {@@ -34,10 +33,6 @@ export function baseOptions(): BaseLayoutProps {title: <ComposioLogo />,transparentMode: 'top',},- themeSwitch: {- enabled: true,- component: <ThemeToggle />,- },links: [{text: 'Docs',