@devries-cameron20 / composio Mirror · read-only / commits / 702b960d0
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 17:00 UTC

Revert custom theme toggle, use fumadocs default

Removed custom ThemeToggle component and related CSS in favor of fumadocs' built-in theme switch for better reliability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Dec 29, 2025 at 16:26 UTC 702b960d095682b4a58e94475a0796ac7ca6e2c4
3 files changed -59
fumadocs/app/global.css
-25
@@ -241,31 +241,6 @@ a:focus-visible {
241 gap: 0.5rem;
242 }
243
244 -/* Theme toggle button */
245 -.theme-toggle-btn {
246 - display: inline-flex;
247 - align-items: center;
248 - justify-content: center;
249 - width: 2.25rem;
250 - height: 2.25rem;
251 - border: none;
252 - background: transparent;
253 - border-radius: 0.375rem;
254 - color: var(--color-fd-muted-foreground);
255 - cursor: pointer;
256 - transition: color var(--header-transition), background var(--header-transition);
257 -}
258 -
259 -.theme-toggle-btn:hover {
260 - color: var(--color-fd-foreground);
261 - background: var(--color-fd-accent);
262 -}
263 -
264 -.theme-toggle-btn:focus-visible {
265 - outline: 2px solid var(--composio-orange);
266 - outline-offset: 2px;
267 -}
268 -
244 /* GitHub icon link */
245 #nd-nav a[href*="github.com"] {
246 display: inline-flex;
fumadocs/components/theme-toggle.tsx deleted
-29
@@ -1,29 +0,0 @@
1 -'use client';
2 -
3 -import { Moon, Sun } from 'lucide-react';
4 -import { useTheme } from 'next-themes';
5 -import { useEffect, useState } from 'react';
6 -
7 -export function ThemeToggle() {
8 - const { setTheme, resolvedTheme } = useTheme();
9 - const [mounted, setMounted] = useState(false);
10 -
11 - useEffect(() => {
12 - setMounted(true);
13 - }, []);
14 -
15 - return (
16 - <button
17 - type="button"
18 - className="theme-toggle-btn"
19 - onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}
20 - aria-label="Toggle theme"
21 - >
22 - {mounted && resolvedTheme === 'dark' ? (
23 - <Sun className="size-[18px]" />
24 - ) : (
25 - <Moon className="size-[18px]" />
26 - )}
27 - </button>
28 - );
29 -}
fumadocs/lib/layout.shared.tsx
-5
@@ -1,6 +1,5 @@
1 import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
2 import Image from 'next/image';
3 -import { ThemeToggle } from '@/components/theme-toggle';
3
4 // Composio Logo Component with light/dark mode switching
5 function ComposioLogo() {
@@ -34,10 +33,6 @@ export function baseOptions(): BaseLayoutProps {
33 title: <ComposioLogo />,
34 transparentMode: 'top',
35 },
37 - themeSwitch: {
38 - enabled: true,
39 - component: <ThemeToggle />,
40 - },
36 links: [
37 {
38 text: 'Docs',