Skip to main content

A sophisticated Python CLI tool that automatically generates conversion-optimized frontend landing pages using professional UX design thinking methodology

Project description

CCUX — Claude Code UI Generator

A sophisticated Python CLI tool that automatically generates conversion-optimized frontend landing pages using professional UX design thinking methodology. Leverages Claude AI to implement a comprehensive 12-phase design process used by professional UX agencies.

✨ What it does

  1. Automated Competitive Research: Discovers 3 competitor websites and design showcases
  2. Screenshot Analysis: Captures and analyzes competitor landing pages for design patterns
  3. Professional Design Process: 12-phase UX methodology including user research, wireframing, and visual design
  4. Strategic Copy Generation: Creates conversion-optimized copy based on competitive analysis
  5. Code Generation: Outputs production-ready HTML or React components with TailwindCSS styling
  6. Section Management: Regenerate specific sections or change themes without rebuilding

🧰 Prerequisites

  • Python 3.9 or higher
  • Claude CLI tool installed and configured
  • macOS/Linux/Windows (WSL recommended for Windows)

🚀 Setup and Installation

# 1. Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# 2. Install package in development mode
pip install -e .

# 3. Initialize Playwright browsers (required for screenshot capture)
ccux init

# 4. Generate your first landing page
ccux gen --desc "AI-powered project management tool"

📋 Commands

ccux init

Initialize CCUX by installing Playwright browsers.

Usage: ccux init

Example:

ccux init

ccux gen

Generate a conversion-optimized landing page using AI-powered design thinking.

Usage: ccux gen [OPTIONS]

Options:

  • --desc, -d TEXT: Product description
  • --desc-file FILE: Load description from text file
  • --url, -u URL: Reference URLs (can use multiple times, max 3)
  • --framework, -f [html|react]: Output framework (default: html)
  • --theme, -t [minimal|brutalist|playful|corporate|morphism|animated|terminal|aesthetic|dark|vibrant|sustainable|data|illustrated]: Design theme (default: minimal)
  • --no-design-thinking: Skip design thinking for faster generation
  • --output, -o DIR: Output directory

Examples:

# Interactive mode (recommended)
ccux gen

# Quick generation without design thinking
ccux gen --desc "AI project management tool" --no-design-thinking

# Full analysis with custom references and theme
ccux gen --url https://linear.app --desc "Project management tool" --theme brutalist

# Load from file with React output
ccux gen --desc-file product_desc.txt --framework react --theme corporate

ccux regen

Regenerate specific sections of an existing landing page.

Usage: ccux regen [OPTIONS]

Options:

  • --section, -s TEXT: Sections to regenerate (comma-separated)
  • --all: Regenerate all sections
  • --desc, -d TEXT: Product description
  • --file, -f FILE: Path to landing page file
  • --output, -o DIR: Output directory

Examples:

# Regenerate hero section
ccux regen --section hero

# Regenerate multiple sections
ccux regen --section hero,features,pricing

# Regenerate all sections
ccux regen --all

ccux theme

Change the design theme of an existing landing page.

Usage: ccux theme THEME [OPTIONS]

Options:

  • --file, -f FILE: Path to landing page file
  • --output, -o DIR: Output directory

Examples:

# Change to brutalist theme
ccux theme brutalist

# Change theme for specific file
ccux theme playful --file custom/page.html

ccux version

Show version information.

Usage: ccux version

Example:

ccux version

🎨 Themes

Core Themes

  • minimal: Clean, content-focused design following Dieter Rams' principles
  • brutalist: Raw, honest design inspired by Brutalist architecture
  • playful: Joyful, approachable design with organic shapes and vibrant colors
  • corporate: Traditional, trustworthy design following business conventions

Modern Design Theory Themes

  • morphism: Soft, tactile design combining neumorphism and glassmorphism
  • animated: Motion-first design where animation drives user experience
  • terminal: CLI-inspired aesthetic for developers and tech enthusiasts
  • aesthetic: Retro-futuristic Y2K, vaporwave, and cyber aesthetics

Additional Theme Options

  • dark: Modern dark theme optimized for contrast and reduced eye strain
  • vibrant: Colorful, dopamine-rich design that energizes user interactions
  • sustainable: Nature-inspired design emphasizing eco-conscious branding
  • data: Information-dense design optimized for dashboards and analytics
  • illustrated: Hand-drawn, custom illustration-driven design for humanized experiences

📖 See THEME_IMPLEMENTATION_GUIDE.md for detailed specifications and usage guidelines

🛠️ Frameworks

  • html: Single HTML file with inline TailwindCSS (default)
  • react: React component with ESM imports

⚙️ Configuration

Create optional ccux.yaml in your working directory:

framework: html    # html or react
theme: minimal     # minimal|brutalist|playful|corporate|morphism|animated|terminal|aesthetic|dark|vibrant|sustainable|data|illustrated
sections: [hero, features, pricing, footer]
claude_cmd: claude
output_dir: output/landing-page

CLI flags always override config values.

🔬 Design Thinking Process

When not using --no-design-thinking, CCUX implements a 12-phase professional UX methodology:

  1. Reference Discovery - Auto-finds competitors using Claude AI
  2. Screenshot Capture - Captures competitor landing pages
  3. Product Understanding - Analyzes value proposition
  4. UX Analysis - Identifies design patterns and opportunities
  5. User Research - Creates empathy maps and personas
  6. Site Flow - Maps user journeys and information architecture
  7. Content Strategy - Develops strategic messaging
  8. Wireframing - Validates mobile-first layouts
  9. Design System - Creates typography, colors, and components
  10. High-Fidelity Design - Adds interactive elements and polish
  11. Copy Generation - Refines conversion-optimized copy
  12. Implementation - Generates production-ready code

🌐 Preview Generated Pages

# Start local server to preview
python -m http.server -d output/landing-page 3000

# Or with Node.js
npx serve output/landing-page -p 3000

# Then open http://localhost:3000 in your browser

💡 Usage Tips

  • Long Descriptions: Files >100 words are automatically summarized to optimize processing
  • Reference Limit: Maximum 3 reference URLs for optimal performance
  • Interactive Mode: Run ccux gen without options for guided setup
  • Section Updates: Use ccux regen to update specific parts without rebuilding
  • Theme Changes: Use ccux theme to redesign with preserved content

🆘 Troubleshooting

  • Claude CLI Issues: Ensure claude command is accessible on PATH
  • Playwright Errors: Run ccux init to install required browsers
  • Screenshot Failures: Tool continues without screenshots if capture fails
  • Generation Errors: Try --no-design-thinking for simpler processing
  • Memory Issues: Tool automatically cleans up between operations

🏗️ Architecture

  • CLI Interface: Typer-based with rich terminal formatting
  • Web Scraping: Playwright automation with error handling
  • AI Integration: Claude CLI with timeout protection and usage tracking
  • Output Management: Structured HTML/React with section markers
  • Configuration: YAML-based with CLI override support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccux-0.1.0.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccux-0.1.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file ccux-0.1.0.tar.gz.

File metadata

  • Download URL: ccux-0.1.0.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ccux-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9703467daf0f65f0253a514ef367aa4866ab785fad28c94d1a0677847733d65a
MD5 82edc45ec0c34454b90e5469c5e26e51
BLAKE2b-256 139a01628edd38c9d0d9489c30035ba1fb1708ff4bc602b06d2c980a00ca8dec

See more details on using hashes here.

Provenance

The following attestation bundles were made for ccux-0.1.0.tar.gz:

Publisher: publish.yml on thisisharsh7/claude-cli-wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ccux-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ccux-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ccux-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86f70485ab6be9fd37bec11e252bb029127d54042dbe1038b7cebba09be5335d
MD5 a1e604df718b66f9922e0abfb8f2ecfa
BLAKE2b-256 7c6b97f8253f0446acf52ea7da1bb7ad452b821395a23d317c3861d2b81574aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for ccux-0.1.0-py3-none-any.whl:

Publisher: publish.yml on thisisharsh7/claude-cli-wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page