Working with Designers for AI Coders
How to take a design from Figma and describe it to your AI coding tool. Bridge the gap between what a designer creates and what AI builds.
In this chapter
- How to read a Figma design and extract the details AI needs
- The difference between vague prompts and design-informed prompts
- A checklist for pulling specs from any design handoff
- How to describe layouts, spacing, and colors precisely to AI tools
The Design → Code Workflow
-
1
Receive the design A designer shares a Figma link, a screenshot, or a PDF mockup. This is your reference for what the final product should look like.
-
2
Study the design carefully Look at spacing, colors, fonts, and layout. Note what's consistent: do all cards have the same padding? Are headings the same size?
-
3
Describe it to AI section by section Don't try to describe the whole page at once. Break it into sections: hero, features, testimonials, footer. Describe each one.
-
4
Compare and iterate Put the design and your site side by side. Tell AI what's different: 'the padding needs to be bigger' or 'the font is too small.'
Before vs After: Design-Informed Prompts
Vague prompts give vague results. Here's what happens when you include real design details:
What to Extract from a Design
When looking at a Figma design, these are the things to note and describe to your AI tool:
Design Handoff Checklist
Before you start prompting, extract these six things from the design. The more specific you are, the closer AI will get on the first try:
-
1
Colors (hex codes) Primary, secondary, accent, background, text colors. Example: #5046E5, #F9FAFB, #1A1A3E.
-
2
Fonts (family, size, weight) Heading and body fonts, their sizes, and weights. Example: Inter Bold 32px for headings, Inter Regular 16px for body.
-
3
Spacing (padding, margins, gaps) Section padding, card padding, gaps between elements. Example: 80px section padding, 24px card padding, 16px gap.
-
4
Border radius values How rounded are the corners? Example: 12px for cards, 8px for buttons, full-circle for avatars.
-
5
Shadow values Any box shadows on cards, modals, or buttons. Example: 0 2px 8px rgba(0,0,0,0.08).
-
6
Layout grid (columns, max-width, alignment) How many columns? What max-width? Centered or left-aligned? Example: 3-column grid, max-width 1200px, centered.
How to Describe a Design to AI
The secret to getting AI to match a design: be specific about structure, spacing, and visual details. Here's a template:
Section: [Hero / Features / Pricing / etc.] Layout: [Centered / 2 columns / grid] Content: [Headline text, subtitle, button labels] Colors: [Background #___, text #___, accent #___] Typography: [Heading size, body size, font name] Spacing: [Padding, gaps between elements] Details: [Border radius, shadows, hover effects]
Tips for Matching a Design
Real World Example: Portfolio Redesign from Figma
A designer sends you a Figma link for a portfolio redesign. The hero has a large headline in Inter Bold 48px, a subtitle in gray (#6B7280), and a purple CTA button. The projects section is a 3-column card grid with 16px gaps, 24px card padding, 12px radius, and subtle shadows. You extract every detail (colors, fonts, spacing, radius, shadows) and describe each section to your AI tool one at a time. The result matches the design on the first try.
“I'm rebuilding my portfolio based on a Figma design. Here's the hero section: centered layout, headline 'Hi, I'm Alex' in Inter Bold 48px (#1A1A3E), subtitle 'Product Designer & Developer' in Inter Regular 18px (#6B7280), purple CTA button (#5046E5) with white text, 12px border radius, 80px vertical padding, white background, max-width 1200px. Below is a projects section: 3-column grid, 16px gap, cards with white background, 24px padding, 12px border radius, shadow 0 2px 8px rgba(0,0,0,0.06). Each card has a project image, title in Inter Semibold 20px, and a one-line description in 14px gray. Build this with Next.js and Tailwind CSS.”
Prompt This
“I have a Figma design for a landing page. Here's what the hero section looks like: centered layout, large heading '[Your Headline]' in Inter Bold 48px, subtitle in Inter Regular 18px in gray (#6B7280), a purple CTA button (#5046E5) with white text and 12px border radius, all on a white background with 80px padding top and bottom. The max width is 1200px. Build this section using Next.js and Tailwind CSS.”
“Compare my current site to this design and fix the differences: [describe what's wrong]. Specifically: the card padding should be 24px, the border radius should be 12px, the shadow should be subtle (0 2px 8px rgba(0,0,0,0.06)), and the gap between cards should be 16px. The heading font should be Inter at 24px bold.”
Frequently Asked Questions
Do I need Figma to work with a designer?
No. Designers can share their work as Figma links, screenshots, PDFs, or even hand-drawn sketches. Figma is the most common tool, but any visual reference works. The important thing is having a clear picture of what the final result should look like.
What if the AI output doesn't match the design exactly?
That's normal. Get it to 80-90% on the first try by being specific about colors, fonts, and spacing. Then iterate: put the design and your site side by side, spot the differences, and describe what needs to change. Small adjustments like 'increase the padding to 24px' or 'make the heading 48px instead of 36px' are quick fixes.
How do I get hex codes and font sizes from a design?
In Figma, click any element to see its properties on the right panel: colors in the Fill section, fonts in the Text section, spacing by selecting elements and checking padding/margin values. If you only have a screenshot, use browser tools like ColorZilla to pick colors, or ask the designer to list the key values for you.