Skip to main content
Glama

design_frontend

Generate production-ready frontend UI components with TailwindCSS, supporting customizable themes, dark mode, and accessibility.

Instructions

Design a frontend UI component using Gemini 3 Pro.

This tool generates high-quality, production-ready HTML components with TailwindCSS. Always uses gemini-3-pro-preview for best design quality. Perfect for creating UI components that Claude Code can then integrate into a larger application.

IMPORTANT: Content language defaults to Turkish (tr). Use content_language parameter to generate content in other languages (en, de).

ADVANCED THEME CUSTOMIZATION: Each theme now supports deep customization via factory parameters. See theme-specific parameters below.

Workflow:

  1. Claude analyzes the feature requirements

  2. Claude breaks down into atomic components (atoms, molecules, organisms)

  3. Claude calls design_frontend for each component with the same theme

  4. Gemini 3 Pro generates high-quality HTML with TailwindCSS

  5. Claude assembles the components into a complete page

Args: component_type: Type of component to design. Options: Atoms: button, input, badge, avatar, icon, dropdown, toggle, tooltip, slider, spinner, progress, chip, divider Molecules: card, form, modal, tabs, table, accordion, alert, breadcrumb, pagination, search_bar, stat_card, pricing_card, carousel, stepper, timeline, file_upload, rating, color_picker Organisms: navbar, hero, sidebar, footer, data_table, login_form, signup_form, contact_form, feature_section, testimonial_section, pricing_table, dashboard_header, kanban_board, calendar, chat_widget, notification_center, user_profile, settings_panel context: Usage context explaining where/how the component will be used. Example: "Primary CTA button for newsletter signup on landing page" content_structure: JSON string with component content. Example: '{"text": "Abone Ol", "icon": "mail"}' '{"tier": "Pro", "price": "₺299/ay", "features": ["Sınırsız kullanıcı"]}' theme: Visual style preset. Options: - modern-minimal: Clean, professional (default) - brutalist: Bold, high-contrast, sharp edges - glassmorphism: Frosted glass, transparency - neo-brutalism: Playful with bold colors - soft-ui: Neumorphic, soft depth - corporate: Professional, trustworthy - gradient: Gradient-heavy modern design - cyberpunk: Neon colors, dark background - retro: 80s/90s inspired - pastel: Soft pastel colors - dark_mode_first: Dark mode optimized - high_contrast: WCAG AAA accessible - nature: Earth tones, organic feel - startup: Tech startup aesthetic vibe: Optional design spirit / persona. Options: - elite_corporate: Precise, luxury corporate - playful_funny: High energy, bouncy, witty - cyberpunk_edge: High contrast, neon, industrial - luxury_editorial: Elegant, spacious, serif-heavy dark_mode: Include dark: variants for dark mode support (default: True) border_radius: Custom border radius override (e.g., "rounded-xl") responsive_breakpoints: Comma-separated breakpoints (default: "sm,md,lg") accessibility_level: WCAG level - "AA" or "AAA" (default: "AA") micro_interactions: Include hover/focus animations (default: True) max_width: Maximum width constraint (e.g., "1280px", "max-w-7xl") project_context: Project-specific context for design consistency. auto_fix: Apply JS fallback fixes automatically (default: True) content_language: Language for generated content (default: "tr") use_trifecta: Enable multi-agent Trifecta Engine pipeline for higher quality output. Uses 4 specialized agents (Architect, Alchemist, Physicist, QualityGuard) instead of single API call. Produces separate HTML/CSS/JS outputs. (default: False)

--- THEME-SPECIFIC CUSTOMIZATION ---

MODERN-MINIMAL:
    brand_primary: Hex color for brand (e.g., "#E11D48"). Auto-generates palette.
    neutral_base: Gray family - "slate", "gray", "zinc", "neutral", "stone"

BRUTALIST:
    contrast_mode: "standard" (4.5:1), "high" (7:1), "maximum" (10:1+)

GLASSMORPHISM:
    blur_intensity: "sm", "md", "lg", "xl", "2xl", "3xl"
    glass_opacity: 0.3 to 0.95 (default: 0.7)
    performance_mode: "quality", "balanced", "performance" (Safari optimization)

NEO-BRUTALISM:
    gradient_preset: "sunset", "ocean", "forest", "candy", "fire"
    gradient_animation: "none", "flow", "pulse", "shimmer", "wave"

SOFT-UI:
    neumorphism_intensity: "subtle", "medium", "strong"

CORPORATE:
    industry: "finance", "healthcare", "legal", "tech", "manufacturing", "consulting"
    layout_style: "traditional", "modern", "editorial"
    formality: "formal", "semi-formal", "approachable"

GRADIENT:
    primary_gradient: "aurora", "sunset", "ocean", "forest", "fire", 
                     "slate_subtle", "mesh_purple", "dark_aurora", etc. (20+ options)

CYBERPUNK:
    primary_neon: "cyan", "fuchsia", "yellow", "green", "pink", "blue", "purple", "red", "orange"
    neon_intensity: "subtle", "medium", "strong", "intense", "extreme"
    scanline_effect: True/False for CRT-style scanlines

RETRO:
    retro_era: "80s_tech", "80s_neon", "90s_grunge", "90s_web", "retro_futurism", "vintage_americana"
    retro_color_scheme: "neon", "pastel", "earthy", "chrome"

PASTEL:
    primary_pastel: "rose", "pink", "sky", "violet", "teal", "amber", "lime"
    wcag_level: "AA" (4.5:1) or "AAA" (7:1) contrast

DARK_MODE_FIRST:
    primary_glow: "emerald", "cyan", "violet", "amber"
    light_mode_style: "minimal", "warm", "cool", "inverted"

HIGH_CONTRAST:
    softness_level: "sharp" (no radius), "balanced", "smooth"
    hc_color_scheme: "blue", "purple", "green", "neutral"

NATURE:
    season: "spring", "summer", "autumn", "winter"
    organic_shapes: True for blob-like rounded corners
    eco_friendly_mode: True for simpler visuals (less energy)

STARTUP:
    archetype: "disruptor", "enterprise", "consumer", "fintech",
              "healthtech", "ai_ml", "sustainability"
    startup_stage: "seed" (bold), "growth" (balanced), "scale" (refined)

--- CORPORATE QUALITY ENHANCEMENT ---

corporate_preset: One-click enterprise configuration. Options:
    - "enterprise_bank": Finance, formal, WCAG AAA, premium quality
    - "fintech_startup": Finance, semi-formal, modern layout
    - "hospital_portal": Healthcare, formal, WCAG AAA
    - "law_firm": Legal, editorial layout, luxury_editorial vibe
    - "saas_enterprise": Tech, semi-formal, premium quality
    - "developer_tools": Tech, approachable, cyberpunk_edge vibe
    - "industrial_b2b": Manufacturing, traditional layout
    - "management_consulting": Consulting, editorial, luxury_editorial
    - "boutique_agency": Consulting, modern, semi-formal

quality_target: Quality level for validation strictness. Options:
    - "draft": Fast output (threshold: 6.0, 1 iteration)
    - "production": Standard (threshold: 7.0, 2 iterations) [default]
    - "standard": Same as production
    - "high": With Critic (threshold: 8.0, 3 iterations)
    - "premium": With Professional Validator (threshold: 8.5, 4 iterations)
    - "enterprise": Full corporate evaluation (threshold: 9.0, 5 iterations)

Returns: Dict containing: - component_id: Unique identifier for the component - atomic_level: atom, molecule, or organism - html: Self-contained HTML with TailwindCSS (ready to use) - tailwind_classes_used: List of Tailwind classes used - accessibility_features: A11y features implemented - responsive_breakpoints: Breakpoints used - dark_mode_support: Whether dark mode is supported - micro_interactions: Animation/transition classes - design_notes: Gemini's explanation of design decisions - theme_config: Advanced theme configuration used - model_used: Always gemini-3-pro-preview

When use_trifecta=True, additional fields:
- trifecta_enabled: True
- agents_executed: List of agents that ran (e.g., ["architect", "alchemist"])
- css_output: Separate CSS generated by Alchemist agent
- js_output: Separate JS generated by Physicist agent

Examples: # Custom Brand Colors (Modern-Minimal) design_frontend( component_type="button", theme="modern-minimal", brand_primary="#E11D48", # Rose brand color neutral_base="zinc" )

# High Contrast Brutalist
design_frontend(
    component_type="card",
    theme="brutalist",
    contrast_mode="maximum"  # WCAG AAA+
)

# Corporate Preset - One-Click Enterprise Setup
design_frontend(
    component_type="hero",
    corporate_preset="enterprise_bank",  # Auto-sets: finance, formal, premium
    use_trifecta=True  # Recommended for enterprise quality
)

# Enterprise Quality with Custom Settings
design_frontend(
    component_type="pricing_table",
    theme="corporate",
    industry="healthcare",
    formality="formal",
    quality_target="enterprise",  # WCAG AAA, 5 iterations, full validation
    use_trifecta=True
)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tierNo
vibeNo
themeNomodern-minimal
seasonNospring
contextNo
auto_fixNo
industryNoconsulting
archetypeNodisruptor
dark_modeNo
formalityNosemi-formal
max_widthNo
retro_eraNo80s_neon
wcag_levelNoAA
auto_previewNo
layout_styleNomodern
neutral_baseNoslate
primary_glowNoemerald
primary_neonNocyan
use_trifectaNo
border_radiusNo
brand_primaryNo
contrast_modeNostandard
glass_opacityNo
startup_stageNogrowth
blur_intensityNoxl
component_typeYes
neon_intensityNomedium
organic_shapesNo
primary_pastelNorose
quality_targetNoproduction
softness_levelNobalanced
gradient_presetNosunset
hc_color_schemeNoblue
project_contextNo
scanline_effectNo
content_languageNotr
corporate_presetNo
light_mode_styleNominimal
performance_modeNobalanced
primary_gradientNoaurora
content_structureNo{}
eco_friendly_modeNo
gradient_animationNoflow
micro_interactionsNo
retro_color_schemeNoneon
accessibility_levelNoAA
inject_js_fallbacksNo
neumorphism_intensityNomedium
responsive_breakpointsNosm,md,lg
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description fully discloses behavior: it uses Gemini 3 Pro, generates HTML/CSS/JS, supports various options like themes, quality levels, and multi-agent Trifecta pipeline. It does not mention rate limits or authentication, but since it is a generative tool, these are less critical. Overall, it provides sufficient transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very long but well-structured with clear sections (Workflow, Args, Theme-Specific, Corporate Quality, Examples). It is front-loaded with the core purpose, making key information easy to find. While lengthy, the complexity of the tool justifies the verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the high complexity (49 parameters, no output schema, no annotations), the description covers all necessary aspects: workflow, parameter details, return fields, theme customization, quality targets, and examples. It leaves no significant gaps for an agent to understand how to use the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 49 parameters with 0% description coverage, so the description carries the full burden. It thoroughly explains each parameter's purpose, possible values, and defaults, including exhaustive lists for component_type, theme, and theme-specific options. This is essential for correct tool invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool designs frontend UI components using Gemini 3 Pro, generating production-ready HTML with TailwindCSS. It distinguishes itself from sibling tools like design_page and design_section by specifying that it creates atomic components (atoms, molecules, organisms) for assembly by Claude.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use the tool ('perfect for creating UI components that Claude Code can then integrate') and includes a workflow explaining its role in a larger pipeline. However, it does not explicitly state when not to use it or list alternative tools for different component sizes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/archolet/claude-gemini-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server