CLAUDE LABJP
WWDC — WWDC 2026 confirms Siri runs on Google Gemini; third-party handoff to ChatGPT is dropped, and Siri AI won't ship in the EU under the DMA at iOS 27BILLING — 6 days until the Jun 15 change: Agent SDK, headless Claude Code, GitHub Actions, and third-party agents move to API-rate monthly creditOUTAGE — claude.ai, Claude Code, and Cowork saw an outage (Jun). Scheduled runs are safest when built around fallbackModel and retriesDYNAMIC-WORKFLOWS — Dynamic workflows are on by default on Max/Team and the API, for codebase-wide bug hunts and independent verificationULTRACODE — Claude Code's new ultracode setting sits in the effort menu, fixing effort to xhigh while Claude decides when to run a workflowOPUS4.8 — Claude Opus 4.8 is settled in as the default across major plans, with stronger coding, agentic, and reasoning skillsWWDC — WWDC 2026 confirms Siri runs on Google Gemini; third-party handoff to ChatGPT is dropped, and Siri AI won't ship in the EU under the DMA at iOS 27BILLING — 6 days until the Jun 15 change: Agent SDK, headless Claude Code, GitHub Actions, and third-party agents move to API-rate monthly creditOUTAGE — claude.ai, Claude Code, and Cowork saw an outage (Jun). Scheduled runs are safest when built around fallbackModel and retriesDYNAMIC-WORKFLOWS — Dynamic workflows are on by default on Max/Team and the API, for codebase-wide bug hunts and independent verificationULTRACODE — Claude Code's new ultracode setting sits in the effort menu, fixing effort to xhigh while Claude decides when to run a workflowOPUS4.8 — Claude Opus 4.8 is settled in as the default across major plans, with stronger coding, agentic, and reasoning skills
Articles/Claude Code
Claude Code/2026-03-28Beginner

How to Build a Landing Page from Design Comps Using Only Claude Code

Learn how to turn Figma design comps into a fully functional landing page using Claude Code alone — even without coding experience. We cover Plan Mode strategy, CLAUDE.md design, and section-by-section implementation techniques.

claude-code165landing-page2design-compweb-developmentplan-mode2

From Design Comp to Live LP: A New Era

Building web pages used to demand coding expertise. The division between designers and engineers was rigid, almost sacred. But that era has passed.

Claude Code has fundamentally changed what's possible. You can now take a Figma design comp and, through simple conversation with an AI, build a production-ready landing page without writing a single line of code yourself.

The secret isn't rushing to implementation. In fact, the opposite is true. Planning and preparation are where success is won. This guide walks you through a battle-tested approach: from design comp to completed, pixel-perfect landing page.

The Preparation Phase: Use Plan Mode to Crystallize Your Vision

The biggest pitfall with Claude Code is jumping straight into implementation. When you enable Auto-Accept Mode, the AI moves forward without waiting for your approval—and sometimes that "helpful" completion doesn't match what you actually intended.

That's where Plan Mode comes in.

Plan Mode makes Claude Code show you the implementation strategy before executing anything. This is your moment to verify that everything aligns with your expectations. Check for:

  • Is the technology stack appropriate? (Next.js? Astro? Plain HTML+CSS?)
  • Does the folder structure make sense?
  • Is the component breakdown at the right level of granularity?
  • Which styling approach will be used? (Tailwind CSS? CSS Modules? Styled components?)

Here's the concrete workflow:

Enable Plan Mode and share your project overview. Claude Code will respond with a detailed plan—review it, discuss it, refine it—before you approve execution.

# Example Plan Mode Prompt

I have a design comp for a SaaS landing page in Figma.

Key sections:
- Header with navigation
- Hero section with background video
- Features (3-column grid)
- Pricing table (3 tiers)
- FAQ accordion
- Footer

Tech stack: Next.js 16 (App Router) + Tailwind CSS
Requirements: Full responsive support (mobile, tablet, desktop)

Can you create an implementation plan? Show me:
1. Build order (which section first, which last)
2. File and folder structure
3. Component names and props
4. Any potential challenges

By planning upfront, you avoid costly rework later. The AI understands your constraints and preferences before writing any code.

The CLAUDE.md Blueprint: Create Your Project Constitution

Before you start building, write down the rules that will govern the entire project. This is your CLAUDE.md—a single Markdown file that serves as your project's reference document.

What should be in CLAUDE.md?

# Landing Page Build Guide
 
## Project Overview
SaaS landing page implementation.
 
## Tech Stack
- Framework: Next.js 16 (App Router)
- Styling: Tailwind CSS v3
- Typography: Google Fonts (Sora, Roboto)
- Animations: CSS Animations (keep it simple—avoid Framer Motion unless essential)
- Hosting: Vercel
 
## Folder Structure

app/ ├── page.tsx # Main page ├── layout.tsx # Global layout └── globals.css # Global styles

components/ ├── Header.tsx # Navigation header ├── Hero.tsx # Hero section ├── Features.tsx # Feature showcase ├── Pricing.tsx # Pricing table ├── FAQ.tsx # FAQ accordion └── Footer.tsx # Footer

public/ ├── images/ # Optimized images └── videos/ # Video files


## Naming Conventions
- Components: PascalCase (Header.tsx)
- CSS classes: kebab-case (hero-section)
- State variables: camelCase (isMenuOpen)
- Images: descriptive-lowercase (hero-bg.webp)

## Color Palette
- Primary Blue: #3B82F6
- Accent Purple: #8B5CF6
- Background: #FFFFFF
- Text Primary: #1F2937
- Text Secondary: #6B7280

## Responsive Breakpoints
- Mobile: 0px–640px
- Tablet: 641px–1024px
- Desktop: 1025px and up

## Critical Implementation Rules
- Use relative paths for internal links
- Always use Next.js Image component for images
- Load all fonts in layout.tsx
- Dark mode is not required (light-only for now)
- Images must be WebP format
- Button minimum size: 44×44 pixels (mobile accessibility)
- Line heights: 1.5 for body, 1.2 for headings

When you share CLAUDE.md with Claude Code, the AI always stays aligned with your project's standards. No more explaining conventions every conversation—it's all there in one place.

Section-by-Section Implementation: The Path to Accuracy

Never implement a full LP at once. Break it into sections, implement each methodically, and review each before moving forward.

Recommended build order:

  1. Header → The foundation everything else rests on
  2. Hero → Your most visible section—get this right first
  3. Features → The substance of what you're selling
  4. Pricing → The conversion mechanism
  5. FAQ → Answers to objections
  6. Footer → Legal, links, closing elements
  7. Polish pass → Unified styling and micro-refinements

When you ask Claude Code to build a section, be specific about what you're referencing.

# Section-by-Section Implementation Example

## Build the Header First

Look at the very top of the design comp.

Create a Header component with:
1. Logo (text "ACME")
2. Navigation links (Product, Pricing, Company, Docs)
3. CTA button ("Start Free Trial")

Desktop: All elements horizontal, right-aligned
Mobile: Hamburger menu for nav links

Styling:
- Background: white
- Bottom border: 1px solid #E5E7EB
- Fixed position (stays at top when scrolling)
- Logo color: #1F2937
- Link color: #6B7280
- Button uses primary blue (#3B82F6)

Specific, bounded, visual—Claude Code knows exactly what to build because you've narrowed the scope and referenced the design.

Comparing to Comps: Close the Gap

After each section, compare the output to your design comp. Look for discrepancies:

Common differences to catch:

  • Colors — Is that shade of blue accurate? RGB values must match.
  • Typography — Font family, size, weight all correct?
  • Spacing — Padding and margins aligned with the comp?
  • Line height — Text not too cramped?
  • Button sizing — Large enough for comfortable clicking?

When you spot a difference, tell Claude Code exactly what you see:

# Feedback on Hero Section

Comparing the Hero section to the comp, I notice:

Design comp shows:
- Headline font: Sora Bold, 48px
- Headline color: #1F2937
- Subheading: Roboto Regular, 18px
- Subheading color: #6B7280
- CTA button padding: 12px 32px

Current implementation:
- Headline is 40px (too small)
- Subheading color is too dark

Please adjust these sizes and colors to match the comp exactly.

This specific feedback helps Claude Code make surgical corrections rather than broad changes.

Handling Images and Videos

Your design comp likely includes images and videos. These need optimization before integration.

Image optimization:

  • Format: WebP (convert from Figma PNG exports)
  • Max width: 1200 pixels for desktop
  • File size: Aim for 100KB or less per image
  • Resolution: 2x pixel density for retina displays
# Convert PNG to WebP using ImageMagick
convert hero.png -quality 80 hero.webp
 
# Batch convert all PNGs in a folder
for file in *.png; do
  convert "$file" -quality 80 "${file%.png}.webp"
done

Video requirements:

  • Format: MP4 (H.264 codec)
  • Resolution: 1920×1080 or 1280×720
  • File size: Under 5MB (keeps page load fast)
  • Autoplay: Always use muted attribute (browsers require this)
<!-- Example video implementation -->
<video
  autoPlay
  muted
  loop
  className="w-full"
>
  <source src="/videos/hero-bg.mp4" type="video/mp4" />
  Your browser doesn't support HTML5 video.
</video>

Tell Claude Code where your optimized files live, and let it handle the integration using Next.js best practices.

Making Assets Web-Ready

Before asking Claude Code to build anything with images or videos:

  1. Export from Figma (or your design tool) at 2x resolution
  2. Optimize with a tool like TinyPNG or ImageMagick
  3. Convert to WebP
  4. Upload to your public/ folder
  5. Reference the paths in your instructions

Claude Code will wrap these assets with proper Next.js Image components, lazy loading, and responsive attributes—you just need to point to where they live.

The Build Checklist

Before you consider a section "done," run through this checklist:

  • [ ] All text matches the design comp exactly
  • [ ] Colors match the design palette
  • [ ] Spacing and alignment are pixel-perfect
  • [ ] Responsive behavior works on mobile and desktop
  • [ ] All links and buttons are clickable
  • [ ] Images and videos load smoothly
  • [ ] No console errors or warnings
  • [ ] Tested in Chrome, Safari, Firefox (at least two browsers)

Next Steps: From Functional to Excellent

You've now taken a design comp and built a working landing page with Claude Code. Congratulations—that's real progress.

But there's another level: taking that functional page and transforming it into a polished, professional product. That journey involves responsive design mastery, animation implementation, performance optimization, and accessibility compliance.

Your next challenge: Learn the advanced techniques that separate "good enough" from "professional-grade."


Start today. Open your design comp. Fire up Claude Code in Plan Mode. The bridge between vision and reality is closer than you think.

Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

Claude Code2026-04-22
Stop Rewriting Code: Using Claude Code Plan Mode as a Real Design Phase
Claude Code's Plan Mode sounds unremarkable on paper, but treating it as a dedicated design phase dramatically reduces token spend and rework. Here's when to switch into it, the prompt template that produces useful plans, and the pitfalls I kept hitting.
Claude Code2026-03-28
7 Advanced Techniques to Elevate Your Claude Code LP Implementation
Take your Claude Code-built landing pages to professional quality with 7 proven techniques. From responsive design and animations to performance optimization and accessibility — learn how to achieve pixel-perfect results that match your design comp.
Claude Code2026-06-09
When Yesterday's Article Bleeds Into Today's — The Stale Fixed-Name Temp File Trap
In a Claude Code automation pipeline, a fixed-name temp file kept stale content from the previous run and leaked old body text into a completely different article. Here is why the write fails silently, and how unique names plus a post-write grep check prevent it.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →