Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
OPENAI_API_KEY, FIRECRAWL_API_KEY
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
AI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallstepCountIscreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/branding-agent/route.tslib/actions.tslib/branding-types.tslib/rate-limit.tslib/ai/branding-agent.tslib/ai/tools/export-tokens.tslib/ai/tools/generate-palette.tslib/ai/tools/analyze-accessibility.tslib/ai/tools/generate-components.tslib/ai/tools/suggest-personality.tsREADME.mdnpm packages
8
Registry components
branding-agent/route.tsAPI route using createAgentUIStreamResponse with brandContext passed via callOptions.
ai/branding-agent.tsToolLoopAgent with callOptionsSchema + prepareCall that injects brand context into instructions and experimental_context. Uses stopWhen with hasToolCall for each tool.
tools/generate-palette.tsColor palette generation tool with HSL color theory algorithms (shades, complementary, analogous, accessible). Most complex branding tool.
tools/analyze-accessibility.tsWCAG contrast ratio analysis tool computing ratios between color pairs and evaluating AA/AAA compliance.
tools/export-tokens.tsDesign token export tool generating CSS variables, Tailwind config, or JSON design tokens.
tools/generate-components.tsComponent style generation tool creating styled examples from brand tokens.
tools/suggest-personality.tsBrand personality suggestion tool analyzing colors and typography for tone and audience alignment.
lib/actions.tsServer action for initial brand data extraction from a URL. Provides the brandContext that feeds into the agent.
Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
OPENAI_API_KEY, FIRECRAWL_API_KEY
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
AI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallstepCountIscreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/branding-agent/route.tslib/actions.tslib/branding-types.tslib/rate-limit.tslib/ai/branding-agent.tslib/ai/tools/export-tokens.tslib/ai/tools/generate-palette.tslib/ai/tools/analyze-accessibility.tslib/ai/tools/generate-components.tslib/ai/tools/suggest-personality.tsREADME.mdnpm packages
8
Registry components
branding-agent/route.tsAPI route using createAgentUIStreamResponse with brandContext passed via callOptions.
ai/branding-agent.tsToolLoopAgent with callOptionsSchema + prepareCall that injects brand context into instructions and experimental_context. Uses stopWhen with hasToolCall for each tool.
tools/generate-palette.tsColor palette generation tool with HSL color theory algorithms (shades, complementary, analogous, accessible). Most complex branding tool.
tools/analyze-accessibility.tsWCAG contrast ratio analysis tool computing ratios between color pairs and evaluating AA/AAA compliance.
tools/export-tokens.tsDesign token export tool generating CSS variables, Tailwind config, or JSON design tokens.
tools/generate-components.tsComponent style generation tool creating styled examples from brand tokens.
tools/suggest-personality.tsBrand personality suggestion tool analyzing colors and typography for tone and audience alignment.
lib/actions.tsServer action for initial brand data extraction from a URL. Provides the brandContext that feeds into the agent.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.