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, 15:45 UTC
Improve toolkits page design and fix nav active state
- Move "Request a tool" button to header row - Style action buttons with orange-tinted theme (works in light/dark) - Keep Premium Tools card with original orange styling - Add Popular toolkits section at top (9 key toolkits) - Fix nav active state for Toolkits and Examples tabs (nested-url) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 2, 2026 at 18:36 UTC
ab4ed1ee0e6b39edc38f058e62eae77ee47f0e1c
3 files changed
+27
-28
fumadocs/components/toolkits/toolkit-detail.tsx
+1
-1
@@ -158,7 +158,7 @@ export function ToolkitDetail({ toolkit, tools, triggers }: ToolkitDetailProps)
158
<Link
159
href={`https://platform.composio.dev/auth?next_page=${encodeURIComponent(`/tool-router?toolkits=${toolkit.slug}`)}`}
160
target="_blank"
161
- className="inline-flex items-center gap-1.5 rounded-md bg-orange-500 px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-orange-600"
161
+ className="inline-flex items-center gap-1.5 rounded-md border border-orange-500/30 bg-orange-500/10 px-3 py-1.5 text-sm font-medium text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400"
162
>
163
Try {toolkit.name.trim()}
164
<ExternalLink className="h-3.5 w-3.5" />
fumadocs/components/toolkits/toolkits-landing.tsx
+24
-27
@@ -2,7 +2,7 @@
2
3
import { useState, useMemo } from 'react';
4
import Link from 'next/link';
5
-import { Search, ChevronDown, Sparkles, ArrowRight, Wrench, Zap, Copy, Check, MessageSquarePlus } from 'lucide-react';
5
+import { Search, ChevronDown, Sparkles, ArrowRight, Wrench, Zap, Copy, Check, ExternalLink } from 'lucide-react';
6
import toolkitsData from '@/public/data/toolkits.json';
7
import type { Toolkit } from '@/types/toolkit';
8
@@ -153,40 +153,37 @@ export function ToolkitsLanding() {
153
return (
154
<div className="space-y-5 sm:space-y-8">
155
{/* Header */}
156
- <div>
157
- <h1 className="text-2xl font-bold text-fd-foreground sm:text-3xl">Toolkits</h1>
158
- <p className="mt-1.5 text-sm text-fd-muted-foreground sm:mt-2 sm:text-base">
159
- Browse {toolkits.length} toolkits supported by Composio
160
- </p>
161
- </div>
162
-
163
- {/* Action Cards */}
164
- <div className="flex flex-col gap-2 sm:flex-row">
165
- <Link
166
- href="/toolkits/premium-tools"
167
- className="group flex flex-1 items-center justify-between gap-3 rounded-md border border-orange-500/30 bg-orange-500/5 px-3 py-2.5 transition-all hover:border-orange-500/50 hover:bg-orange-500/10"
168
- >
169
- <div className="flex flex-wrap items-center gap-x-2 gap-y-1">
170
- <Sparkles className="h-4 w-4 shrink-0 text-orange-500" />
171
- <span className="text-sm font-medium text-fd-foreground">Premium Tools</span>
172
- <span className="hidden text-sm text-fd-muted-foreground sm:inline">— Pricing and limits</span>
173
- </div>
174
- <ArrowRight className="h-4 w-4 shrink-0 text-fd-muted-foreground transition-transform group-hover:translate-x-1 group-hover:text-orange-500" />
175
- </Link>
156
+ <div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
157
+ <div>
158
+ <h1 className="text-2xl font-bold text-fd-foreground sm:text-3xl">Toolkits</h1>
159
+ <p className="mt-1.5 text-sm text-fd-muted-foreground sm:mt-2 sm:text-base">
160
+ Browse {toolkits.length} toolkits supported by Composio
161
+ </p>
162
+ </div>
163
<a
164
href="https://request.composio.dev/boards/tool-requests"
165
target="_blank"
166
rel="noopener noreferrer"
180
- className="group flex items-center justify-between gap-3 rounded-md border border-fd-border bg-fd-background px-3 py-2.5 transition-all hover:border-fd-primary/50 hover:bg-fd-accent/50"
167
+ className="inline-flex items-center gap-1.5 rounded-md border border-orange-500/30 bg-orange-500/10 px-3 py-1.5 text-sm font-medium text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400"
168
>
182
- <div className="flex items-center gap-x-2">
183
- <MessageSquarePlus className="h-4 w-4 shrink-0 text-fd-muted-foreground group-hover:text-fd-primary" />
184
- <span className="text-sm font-medium text-fd-foreground">Request a Tool</span>
185
- </div>
186
- <ArrowRight className="h-4 w-4 shrink-0 text-fd-muted-foreground transition-transform group-hover:translate-x-1 group-hover:text-fd-primary" />
169
+ Request a tool
170
+ <ExternalLink className="h-3.5 w-3.5" />
171
</a>
172
</div>
173
174
+ {/* Premium Tools Card */}
175
+ <Link
176
+ href="/toolkits/premium-tools"
177
+ className="group flex items-center justify-between gap-3 rounded-md border border-orange-500/30 bg-orange-500/5 px-3 py-2.5 transition-all hover:border-orange-500/50 hover:bg-orange-500/10"
178
+ >
179
+ <div className="flex flex-wrap items-center gap-x-2 gap-y-1">
180
+ <Sparkles className="h-4 w-4 shrink-0 text-orange-500" />
181
+ <span className="text-sm font-medium text-fd-foreground">Premium Tools</span>
182
+ <span className="hidden text-sm text-fd-muted-foreground sm:inline">— Learn about pricing and limits</span>
183
+ </div>
184
+ <ArrowRight className="h-4 w-4 shrink-0 text-fd-muted-foreground transition-transform group-hover:translate-x-1 group-hover:text-orange-500" />
185
+ </Link>
186
+
187
{/* Filters */}
188
<div className="flex flex-col gap-3 sm:flex-row sm:items-center">
189
{/* Search */}
fumadocs/lib/layout.shared.tsx
+2
@@ -47,6 +47,7 @@ export function baseOptions(): BaseLayoutProps {
47
{
48
text: 'Toolkits',
49
url: '/toolkits',
50
+ active: 'nested-url',
51
},
52
{
53
text: 'Reference',
@@ -56,6 +57,7 @@ export function baseOptions(): BaseLayoutProps {
57
{
58
text: 'Examples',
59
url: '/examples',
60
+ active: 'nested-url',
61
},
62
{
63
type: 'icon',