How to effectively collaborate with a designer
On this page
This summer I built a nonprofit's site from a Figma webkit: a styles page, five desktop frames, a mobile page, and nothing else. The commit that implemented it is titled "Implement the five Figma designs as page-builder blocks", and the rest of the project was finding out which parts of a design file survive contact with a CMS. Before that there was a design studio's site with a proper brand kit, and at the agency there are Craft sites where every Matrix block started life as a Figma component. This is what I have learned to ask for and where it still goes wrong.
What I need in the file
Three things, in order of how much time they save.
A styles page with named variables. The nonprofit's file had colour variables and named text styles (Header 1 to 4, Paragraph 1 and 2). They went into the CSS verbatim: --color-ivory, --color-warm-linen, --color-cherry as theme tokens, and each text style as a utility with the comp's size, line-height and tracking in a comment above it. When the designer names the colours, the CMS can use the same names (Warm Linen, Blush and Ivory are the background options on a section band), and every conversation about the site uses one vocabulary.
Every page at desktop and phone. The comps were fixed canvases, 1512 and 393 pixels wide. That is fine as long as both exist, because the question is never "what does the hero look like" but "what does it do between those two".
States and exports. The design studio's brand kit specified the invalid-field state (underline, text and caption turning terracotta), and the forms got it because it was in the file. Vector decoration (a brush stroke, a quote mark, a hand-drawn checkbox) comes out of Figma as SVG and gets recoloured to currentColor, so one export serves every colour the block can take.
Components become blocks, one to one
The mapping I use is deliberately boring. Each Figma component is one block type with one template, named after what it is, not where it was first used.
In Statamic that is a Replicator set per component: hero_split, commitment_columns, text_image, testimonial_carousel, resource_grid, cta_banner, rich_text. Each has a fieldset and one Antlers view at blocks/<handle>.antlers.html, which opens with a docblock that says which comp it came from (trimmed):
{{#
@name Hero Split
@desc The Home, About, and campaign opening: display heading, serif lead,
and a CTA on the left, with one brush-framed image on the right.
#}}
<section class="{{ spacing }} overflow-x-clip">
In Craft at the agency the same shape is Matrix block types with _blocks/<type>.twig and a one-line dispatcher, {% include "_blocks/#{ block.type }" with { block: block } %}. The designer's variants become options. One Craft site keeps a config/designtokens/ folder of JSON files, one per block, mapping the design's variant names to classes:
{
"gray/Blue": { "bg": "bg-gray-50", "button": "bg-blue-700 text-white", "content": "bg-white" },
"white/Teal": { "bg": "bg-white", "button": "bg-teal-700 text-white", "content": "bg-gray-50" }
}
"gray/Blue" is what the designer called the variant. Editors pick it by that name, the template looks it up, and when a variant is added in Figma the change is one JSON line.
Variants that are not colours become fields: a heading_style button group with Large and Medium because the campaign comp sits one step down from the home comp; remove_top_spacing and remove_bottom_spacing toggles because two blocks sometimes touch in the comp. I wrote about the shared blocks fieldset and the tag that reads it in the fifteen-years post.
Where handoff broke
These are from commit messages, not memory.
The frame is not the container. The studio comps put 1416 pixels of content between 32 pixel gutters. The site's container had fallen back to Tailwind's 1280 cap, so 1216 pixels of content was carrying images drawn at a 1416 by 830 ratio. The fix was a 1480 cap so the content resolves to 1416 inside the 32 pixel gutters. Ask for the content width, not just the canvas width.
The phone comp does not scale the type. Both canvases set every heading at the same size, so the 98 pixel display heading is also the phone size. Each scale became a clamp() pinned to the comp value from 393 pixels up, easing off below so a 320 pixel phone still fits the longest word. Letter-spacing in Figma is pixels at the comp size; it has to become em to survive the resize.
The font in the file is retired. The webkit specified a condensed family that no longer exists as a family on Google Fonts; condensed is now the width axis of the variable font. The heading utility sets font-stretch: 75% and the designer never had to know.
Four corner radii. Images across the studio site had 6, 8 and 12 pixel corners because each comp had been drawn on its own. One commit made all media 6 pixels. Ask which values are the system and which are leftovers.
Blocks nobody uses. On the studio site, 22 block sets and their templates had zero entries using them, and several "heading does not match the comp" tickets I chased turned out to live in those blocks. Deleting them took the block fieldset from 2206 lines to 1164. Build the blocks the pages need, not the blocks the components page has.
Who owns the framing. The nonprofit's hero photos sit inside painted brush-stroke frames. Version one masked plain photos in code with SVG filters, which iOS did not like. Version two baked the masks to WebP. Version three, after the designer's feedback tickets, gave the block an auto_mask toggle: off, they upload one transparent WebP with the frame already painted into the artwork and the block shows it whole; on, the code masks plain photos. The designer controls framing in Figma, where they wanted to, and I stopped guessing.
The short version
Ask for named variables, both widths, states and vector exports. Map one component to one block and name the block after the component. Keep the designer's variant names all the way to the editor's dropdown. And when something looks wrong, check the container, the type scale and the unused blocks before you check your eyes.