@devries-cameron20 / composio-1 / commits / df0439b73
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.

docs: improve AI tools banner UX and positioning

Move the AI tools banner above the Quickstart card on the welcome page, make the npx command fully clickable to copy, and reduce grid pattern opacity in dark mode for subtlety. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Feb 23, 2026 at 21:17 UTC df0439b7332e59fbb97e91ade10a8e2e3316d738
2 files changed +11 -14
docs/components/ai-tools-banner.tsx
+9 -12
@@ -4,7 +4,7 @@ import { useState } from 'react';
4 import Link from 'next/link';
5 import { Bot, FileText, Copy, Check, ExternalLink } from 'lucide-react';
6
7 -function CopyButton({ text }: { text: string }) {
7 +function CopyableCommand({ text }: { text: string }) {
8 const [copied, setCopied] = useState(false);
9
10 return (
@@ -14,13 +14,14 @@ function CopyButton({ text }: { text: string }) {
14 setCopied(true);
15 setTimeout(() => setCopied(false), 2000);
16 }}
17 - className="shrink-0 rounded-md p-1 text-fd-muted-foreground/60 hover:text-fd-foreground transition-colors"
18 - aria-label="Copy to clipboard"
17 + className="mb-3 flex w-full cursor-pointer items-center gap-2 rounded-lg border border-fd-border bg-fd-background dark:bg-fd-background/50 px-3.5 py-2.5 font-mono text-[13px] text-fd-foreground transition-colors hover:border-[var(--composio-orange)]/40"
18 >
19 + <span className="select-none text-fd-muted-foreground">$</span>
20 + <span className="flex-1 text-left">{text}</span>
21 {copied ? (
21 - <Check className="h-3.5 w-3.5 text-green-500" />
22 + <Check className="h-3.5 w-3.5 shrink-0 text-green-500" />
23 ) : (
23 - <Copy className="h-3.5 w-3.5" />
24 + <Copy className="h-3.5 w-3.5 shrink-0 text-fd-muted-foreground/60" />
25 )}
26 </button>
27 );
@@ -30,10 +31,10 @@ export function AIToolsBanner() {
31 const skillsCommand = 'npx skills add composiohq/skills';
32
33 return (
33 - <div className="not-prose relative mt-6 overflow-hidden rounded-xl border border-fd-border bg-gradient-to-br from-fd-card via-fd-card to-fd-muted/50 dark:from-fd-muted/20 dark:via-fd-card dark:to-fd-muted/40">
34 + <div className="not-prose relative mt-6 mb-6 overflow-hidden rounded-xl border border-fd-border bg-gradient-to-br from-fd-card via-fd-card to-fd-muted/50 dark:from-fd-muted/20 dark:via-fd-card dark:to-fd-muted/40">
35 {/* Subtle grid pattern */}
36 <div
36 - className="pointer-events-none absolute inset-0 opacity-[0.03] dark:opacity-[0.04]"
37 + className="pointer-events-none absolute inset-0 opacity-[0.03] dark:opacity-[0.02]"
38 style={{
39 backgroundImage:
40 'linear-gradient(var(--color-fd-foreground) 1px, transparent 1px), linear-gradient(90deg, var(--color-fd-foreground) 1px, transparent 1px)',
@@ -52,11 +53,7 @@ export function AIToolsBanner() {
53 </div>
54
55 {/* Skills command */}
55 - <div className="mb-3 flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background dark:bg-fd-background/50 px-3.5 py-2.5 font-mono text-[13px] text-fd-foreground">
56 - <span className="select-none text-fd-muted-foreground">$</span>
57 - <span className="flex-1 select-all">{skillsCommand}</span>
58 - <CopyButton text={skillsCommand} />
59 - </div>
56 + <CopyableCommand text={skillsCommand} />
57
58 {/* Skills links */}
59 <div className="mb-4 flex items-center gap-3 text-xs">
docs/content/docs/index.mdx
+2 -2
@@ -21,6 +21,8 @@ Composio powers 1000+ toolkits, tool search, context management, authentication,
21
22 ## Get Started
23
24 +<AIToolsBanner />
25 +
26 <Cards className="grid-cols-1">
27 <Card
28 icon={<Rocket />}
@@ -30,8 +32,6 @@ Composio powers 1000+ toolkits, tool search, context management, authentication,
32 />
33 </Cards>
34
33 -<AIToolsBanner />
34 -
35 ## Explore
36
37 <Cards>