What does visual-mockup-designer do?
This skill produces a single-file HTML mockup the user can double-click to open in any browser. It uses CDN Tailwind (no build step), applies all design tokens (colors, type, spacing, radii, shadows), pulls real copy from copy.json, and renders every section from ia.json end-to-end. Critically, it is NOT production code — image slots are placeholders, animations are commented stubs, and JavaScript is minimal. The mockup exists to validate "does this design feel right?" while changes are still cheap. Building production code first means every visual revision rewires components; building a mockup first means visual decisions get locked before component architecture matters.
When to use this skill
Run this skill when:
lp-workspace/03-design/design-tokens.json,02-strategy/copy.json,02-strategy/ia.jsonexist, andlp-workspace/03-design/mockup.htmldoes not (or needs regeneration)- The orchestrator (
lp-maker) reaches Tier 3 Step 3 - The user says "show me what it'd look like" / "design comp" / "preview"
- Design tokens or copy changed and the mockup is stale
Do NOT use this skill when:
- Any of the three required inputs is missing — halt and route to the owning skill
- The user wants production code (route to
lp-coder-htmlorlp-coder-nextjs) - The user wants only a wireframe (route to
wireframe-generator) - The user wants real generated images installed (that's
image-asset-generatorin Tier 4)
Inputs
Required:
lp-workspace/03-design/design-tokens.json— colors, typography, spacing, radii, shadows, breakpoints,tailwindConfig. WHY: the mockup must visually express the brand system; arbitrary inline styles defeat the purpose.lp-workspace/02-strategy/ia.json— sections to render and their order. WHY: every section must appear, in correct order, with correct IDs.lp-workspace/02-strategy/copy.json— actual headlines, subheads, body text, CTA labels, testimonial quotes, FAQ Q/A, pricing tier copy. WHY: lorem ipsum mockups hide hierarchy mistakes; real copy reveals them.
Optional:
4. lp-workspace/03-design/wireframe.svg — confirms structural decisions already made. WHY: if a wireframe was signed off, the mockup should preserve its block-level layout choices, not reinvent them.
5. lp-workspace/03-design/image-spec.json (if image-asset-planner already ran) — image dimensions and alt text. WHY: placeholder boxes can use the planned dimensions, so the mockup looks accurate.
6. lp-workspace/00-brief.json — project.language for <html lang>, business.brandTone for tone confirmation.
If any required input is missing, halt:
Mockup generation requires:
- lp-workspace/03-design/design-tokens.json [✓ or missing → design-system-builder]
- lp-workspace/02-strategy/ia.json [✓ or missing → lp-information-architect]
- lp-workspace/02-strategy/copy.json [✓ or missing → copywriting-generator]
Process
Step 1. Validate upstream and read inputs
Read all three required JSON files. Read optional inputs if present. Verify design-tokens.json has color.primary, color.neutral, typography.fontFamily, typography.scale, spacing, radius. If tailwindConfig is present, capture it for injection.
Step 2. Decide the HTML document shell
Build a single <html> document with:
<!doctype html><html lang="{project.language}">— defaults to"ja"for Japanese projects,"en"otherwise. WHY: lang attribute drives screen reader pronunciation, font rendering hints, and SEO.<head>containing:<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">— WHY: without this, mobile shows a zoomed-out desktop layout.<title>fromcopy.json.meta.titleif present, elsebusiness.productOrService<meta name="description">fromcopy.json.meta.descriptionif present (it's just a mockup hint, but SEO tools downstream will reuse it)- Google Fonts link tag for any non-system fonts in
design-tokens.typography.fontFamily(e.g. Noto Sans JP, Inter, Playfair Display) - Tailwind CDN:
<script src="https://cdn.tailwindcss.com"></script>. WHY: zero build step means the user opens the file and it just works. - Tailwind config injection:
<script>tailwind.config = { theme: { extend: { ... from design-tokens ... } } };</script>— copy the structure fromdesign-tokens.tailwindConfigand convert to inline JS. WHY: this mapsbg-primary-500,text-neutral-900,rounded-lg, etc. to the actual brand values, so every Tailwind class throughout the mockup expresses the design system. - A small
<style>block ONLY for things Tailwind config can't express (e.g.body { font-family: var(--font-body); }, custom font-feature-settings for Japanese). Keep under 30 lines.
WHY one file: the user can email, airdrop, or share it as a single attachment, open it offline (except font/CDN load), drag-drop into Figma's HTML importer, or hand it to a developer as a reference. Multiple files force a build/serve step that derails the review.
Step 3. Render sections in IA order
Iterate ia.json.sections in order. For each:
- Wrap in
<section id="{id}" class="...">with vertical padding fromspacingtokens (typical:py-16 md:py-24). WHY: stable IDs allow anchor links and downstream code to reference sections. - Add an HTML comment header above each section:
<!-- Section: {id} ({type}) — purpose: {purpose} -->so reviewers (andlp-coder-htmldownstream) understand intent. - Apply alternating background where IA flow benefits from rhythm (e.g.
bg-white/bg-neutral-50). Two-tone alternation only — three-tone fragments visual flow.
Per section type, render with real copy from copy.json[id]:
Header — <header class="sticky top-0 z-40 bg-white/80 backdrop-blur"> with logo wordmark (use brand name as text if no logo), nav links (desktop only — hidden behind hamburger on mobile via Tailwind responsive classes), primary CTA pinned right.
Hero — Two-column grid on md:+, single column on mobile. Left: <h1 class="text-4xl md:text-6xl font-bold leading-tight">{copy.hero.headline}</h1> then subhead <p class="text-lg md:text-xl text-neutral-600 mt-4">{copy.hero.subhead}</p> then primary CTA button + secondary CTA link, then trust strip (3–4 logo placeholders or stat row). Right: image placeholder using image-spec.json dimensions if available, else 16:9 ratio. WHY: the H1 is the single most consequential element on the page; render it as tall, bold, leading-tight text per typographic best practice.
Problem / Pain — Centered headline, then a 3-column grid (grid grid-cols-1 md:grid-cols-3 gap-8) of pain-point cards. Each card: icon placeholder (use a Tailwind-styled SVG checkmark, X, or alert in text-primary-500), heading, 2-line body.
Solution — Two-column block. Copy-left with headline + body. Diagram-right or product image-right.
Benefits — 3-column grid of icon + headline + body. Icons use text-primary-500 for tint.
Features — Alternating image-left/right rows for top-level features (use IA enumeration); or a 2x2 grid for compact feature cards.
Social Proof / Testimonials — 3-column grid of testimonial cards. Each card: bg-white shadow-md rounded-lg p-6, avatar circle (initials inside if no image), name, role, quote with leading quotation mark styling.
Logo Cloud — flex flex-wrap items-center justify-center gap-8 grayscale opacity-70. Use text wordmarks as placeholders for logos. WHY: real logo placement requires permission; grayscale + placeholder communicates intent without overpromising.
Case Study — 2-column block with image-left, copy-right (results bullets with large numbers in text-primary-600, quote, attribution).
Pricing — 3-column tier card grid (grid grid-cols-1 md:grid-cols-3 gap-6). Middle card has border-2 border-primary-500 shadow-xl scale-105 and a "Recommended" badge. Each card: tier name, price (large), per-period suffix, feature list with checkmark icons, CTA button. WHY: middle-card emphasis exploits the decoy effect documented in pricing research.
FAQ — <details> elements styled with Tailwind (group, chevron rotation on open). Each Q is <summary>, answer is the rest. WHY: native <details> gives a working accordion with zero JavaScript — perfect for a mockup.
Objection Handling — Alternating Q/A blocks, or a 2-column "truth / reality" layout.
Guarantee — Centered single block, badge SVG + headline + body, bg-primary-50 tinted background.
Urgency / Scarcity — Banner stripe bg-primary-900 text-white py-4 with countdown placeholder (<span class="font-mono">00:00:00</span>) + inline CTA. Only include if IA has this section.
About / Founder Story — 2-column: portrait-left + copy-right with quoted callout.
CTA section — Centered <h2> + subhead + large primary button + small risk-reversal note ("No credit card required" / "30 seconds to complete").
Footer — 4-column grid on desktop (Product / Company / Legal / Contact), single accordion on mobile. Include links for legal compliance notation, privacy policy, and terms of use for Japanese projects (anchors only — actual text is in Tier 9 legal-compliance-checker). Bottom row: copyright + social icon row.
Step 4. Apply design tokens consistently throughout
Every visual property must come from tokens, not inline arbitrary values:
- Colors:
bg-primary-*,text-neutral-*,bg-accent-*— NEVERbg-[#xxxxxx]. WHY: arbitrary hexes defeat the system and make later edits combinatorial. - Typography: heading elements use
font-heading(mapped via Tailwind config), body uses default (font-bodymapped from tokens). Sizes fromtext-*scale. - Spacing:
p-*,m-*,gap-*from the 8pt scale only. - Radii:
rounded-*from the scale. - Shadows:
shadow-*from the scale.
WHY this discipline: the mockup IS the design system rendered. If it cheats, the design system is undermined and downstream code inherits the inconsistency.
Step 5. Mark interaction stubs with HTML comments
For every place where animation or interaction is implied, drop a comment so ui-microinteraction-designer (and animation-implementer later) know what to spec:
<!-- INTERACTION: hover-lift on this card (translateY -4px, shadow-lg) -->
<!-- INTERACTION: scroll-reveal on this section (fade-up, stagger children 80ms) -->
<!-- INTERACTION: parallax on hero image (subtle, 0.3x scroll speed) -->
<!-- INTERACTION: button micro-bounce on click (scale 0.97 -> 1) -->
<!-- INTERACTION: counter animation on stat number (0 -> target on viewport enter) -->
WHY HTML comments: they survive every downstream transform, are visible in DevTools, and act as a checklist for the microinteraction skill. Do NOT implement the animations here — the mockup is static intent, not motion intent.
Step 6. Add accessibility scaffolding
Even in a mockup, model the right structure so downstream code starts correct:
- One and only one
<h1>(in Hero) <h2>for each section heading; never skip from h1 to h3- Buttons are
<button>(or<a>if linking) — never styled<div> - Images have
alt=""(decorative) or descriptivealtfromimage-spec.jsonif available - Form fields (if pricing/CTA includes mini-form) have associated
<label> - Color contrast already verified in
design-tokens.json— don't override via inline styles
Step 7. Write 03-design/mockup.html
- Ensure
lp-workspace/03-design/exists. - If
mockup.htmlexists, copy tomockup.html.backupfirst. - Write the single HTML file. Target under 200KB minified-equivalent.
- Verify the file opens by inspecting its structure (well-formed tags, no unclosed elements).
Step 8. Report back
Show the user:
Mockup generated:
File: lp-workspace/03-design/mockup.html
Sections: [N]
Tokens applied: full color, typography, and spacing from design-tokens.json
Images: placeholders (image-asset-generator will replace with real images later)
Animations: marked with HTML comments (ui-microinteraction-designer will specify)
Open the file in a browser to preview (CDN Tailwind, no build required).
Next steps: image-asset-planner / ui-microinteraction-designer / if approved, lp-coder-html
WHY this report: the user often wants to send the mockup to a stakeholder; calling out "open in browser, no build needed" sets expectations.
Output
File written: lp-workspace/03-design/mockup.html
A single, self-contained HTML file that:
- Opens in any modern browser without a build step (CDN Tailwind)
- Renders every section from
ia.jsonin order, with real copy fromcopy.json - Applies all
design-tokens.jsonvalues via Tailwind config - Includes
<!-- Section: ... -->comments above each section - Includes
<!-- INTERACTION: ... -->comment stubs where animations belong - Models semantic HTML and accessibility scaffolding (one h1, real
<button>, alt text, lang attribute)
Quality checks
Before declaring done:
- File is valid HTML (parses, no unclosed tags)
- Single
<h1>in Hero; subsequent sections use<h2>headings; no heading-level skips - Every
ia.json.sectionsentry rendered as a<section id="...">, in IAorder - Real copy from
copy.jsonpopulated (no lorem ipsum, no{placeholder}strings) - All colors via
primary-*/secondary-*/accent-*/neutral-*Tailwind classes — no arbitrary[#xxxxxx]values - All spacing via Tailwind scale — no arbitrary
[12px]values - Japanese projects have
<html lang="ja">and include Japanese font in font stack - CTA buttons are
<button>or<a>(not styled<div>) - Images use
alt(descriptive or empty for decorative); placeholder dimensions reflectimage-spec.jsonif available - FAQ implemented as native
<details>/<summary>(works without JS) - Tailwind CDN script included; Tailwind config script injects tokens
- Sticky header
z-indexdoesn't conflict with modal placeholders -
<!-- INTERACTION: ... -->comments present at each implied animation site - File renders meaningfully on a 375px viewport (no horizontal scroll, text readable)