Claude Code for Product Designers
Lesson 14 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

1.10 Your first commit

Next lesson in 8 s

1.9 From the browser to Figma and back

Adam captures the running app into Figma with Figma's Chrome extension, gives the cramped phone layout more room by hand and annotates the changes. He then hands Claude the section link so it reads the frames and annotations and updates the code.

What you'll learn

  1. Chrome DevTools' device toolbar previews phone sizes.
  2. Figma's Chrome extension captures a live page into Figma as editable layers.
  3. The extension links CSS variables to Figma variables when the names match; double-check them, some are wrong.
  4. Layout tweaks are often faster in Figma than in words.
  5. Prepare frames for Claude: hide the old versions, annotate key changes, wrap them in a section, delete what isn't relevant.
  6. Claude can read Figma annotations through the MCP; remind it to.
  7. You can send Claude a message while it's working.

Chapters

  1. 00:00Checking the phone layout in DevTools
  2. 01:47Installing Figma's Chrome extension
  3. 03:26Pasting the live page into Figma
  4. 05:12Redesigning for thumb reach
  5. 06:52Annotating the changes for Claude
  6. 10:33Keeping only what Claude needs
  7. 11:48Claude applies the Figma changes
  1. 00:00Okay, in the previous video, Claude helped us set up the first version of the mobile layout, and it's generally okay, although it's still rough around the edges, particularly particularly
  2. 00:11with the layout. And I could just iterate on the layout using, you know, my words or, you know, by using my voice or taking screenshots and annotating or recording
  3. 00:21videos, which are all things we have already explored in the previous videos.
  4. 00:26But, you know, layout is something that I still believe is best designed manually, and it's genuinely faster for me to do it in Figma.
  5. 00:37So that's why in this video we are going to take a closer look into how we can actually take our implemented design back to Figma, iterate it, and then
  6. 00:45send it back to Claude.
  7. 00:48So first, let's go ahead and see exactly what the issue is.
  8. 00:53So when I look at this page here in the desktop layout, I do appreciate that, you know, we have plenty of real estate, so we can have plenty of
  9. 01:01generous, you know, whitespace treatment and generous paddings and whatnot.
  10. 01:07And then if I now go into Inspect here and I, let's see, enable this device toolbar, this is actually going to allow me to, you know, preview my design
  11. 01:19in a mobile layout.
  12. 01:20I can actually set up iPhone resolution just like that, and I can see that, you know, over here it appears to be very, like the layout is very compact,
  13. 01:32and I would love to have a little bit more spacing over here.
  14. 01:36Also I would like the header of the details panel to have a little bit more spacing as well.
  15. 01:41So in order for me to take this design from this implemented live application back to Figma, I'm going to need to install a Figma Chrome extension.
  16. 01:52So I'm going to open up a new tab.
  17. 01:54Figma extension Chrome is what I 'm going to look at.
  18. 01:59Okay, going to reject cookies and uh I believe I can just get into here.
  19. 02:05Yes, so this is the official Figma plugin.
  20. 02:08It has that featured badge and okay and I can see it has plenty of users so that must be the one.
  21. 02:15So I'm just going to hit over here add to Chrome.
  22. 02:17I'm going to add the extension and then I'll need to authenticate with my Figma account.
  23. 02:25Okay. Okay, I'm going to hit allow access and I believe we should be good to go.
  24. 02:38Oh, there is this nice new introductory page which you are redirected to, but we have this video course so we don't really need to go into all of this.
  25. 02:49So I'm going to go back to my implemented application.
  26. 02:53I'm going to probably have to reload here since I just installed the extension and I'm going to take a screenshot of this this version of the application.
  27. 03:02Let's see. I am going to head over extension.
  28. 03:04I'm going to hit Figma.
  29. 03:06Oh, okay. Seems like I'll still need to take care of some permissions.
  30. 03:11Okay, perfect. And now I'm going to basically press this middle button to take a screenshot or just capture my entire page here.
  31. 03:20So I'm going to click that.
  32. 03:22That was pretty fast and now it's in my clipboard.
  33. 03:25I can go back to I can go back to Figma.
  34. 03:29I'm going to just hit command V to paste it and it's right there ready for me to be to be messed around with.
  35. 03:39Let's see. I can already see that because I happen to paste this file into a Figma paste this capture at the screenshot within a Figma file that has the
  36. 03:52same variables. This Figma extension actually made it so that you know if it recognized like a match between a name of the CSS variable from the live implementation and
  37. 04:03variable within my file.
  38. 04:05It's going to connect this.
  39. 04:06So it's great. Sometimes it does weird things like it's going to like look for hex values.
  40. 04:12So over here I can see let's see.
  41. 04:15It seems like Figma thinks this is, you know, styled using the Stone 900 Tailwind variable.
  42. 04:22I don't think that is true.
  43. 04:23I'm just going to double check just to make sure and I can see no, it is definitely not the color, but it doesn't matter.
  44. 04:30I don't really need to worry about that right now.
  45. 04:33All all I really want to do is I want to just, you know, update the layout over here because visually it's a lot easier.
  46. 04:41I'm also going to make an attempt at grabbing like a screenshot of this of this details side sheet.
  47. 04:50Just I guess bottom sheet.
  48. 04:53I'm going to paste it in here.
  49. 04:55Perfect. Okay, and it seems like I have everything that I needed to start, you know, tweaking the layout.
  50. 05:01Let me just align this to the bottom.
  51. 05:03Okay, let's see. I'm going to, you know, have a think on exactly how I want to tackle this and then we're going to see each other when this design
  52. 05:13is finished. Okay, I think I'm quite ready.
  53. 05:20So what I did is I made like two copies of each panel or of each design before and after so that it's a little bit better to see the
  54. 05:31differences. Now over here like the first thing that I did is I increased the padding a little bit.
  55. 05:38So mostly it was let's see, it was 16 pixels on the sides and 24 or 16 pixels like of the vertical padding.
  56. 05:48So I have increased that to be 24 pixels on the side and on the sides and 32 pixels of the vertical padding.
  57. 05:55Sometimes 24. And then I also like at first I wasn't really sure whether I should keep like restating which day you have selected, because like we are literally repeating
  58. 06:08this with the picker right underneath it.
  59. 06:13But then I remembered you know on mobile devices we need to consider how easy it is for you to use the application with your with you know just single-handedly
  60. 06:23with your thumb. So what I ended up doing is I actually ended up doubling ended up doubling down on this and I have added like a minimum height over
  61. 06:32here of 922 pixels to create a bit more of a like a vertical gap so that these like day spots are a little bit easier for you to reach
  62. 06:43with your thumb. Now for the drawer I ended up just increasing the paddings here and there and that's mostly and that's mostly it or that's actually all of it.
  63. 06:54So now I would like to share this with Claude and I would like to make it as much in as efficient way as possible.
  64. 07:03So first of all I'm going to select all of these designs.
  65. 07:05I'm going to cut them here and I'm going to paste them onto this order page and I am going to reprint this as actually I'm should I keep those?
  66. 07:20No you know what actually I think I'm going to hide these frames altogether the before frames right?
  67. 07:25I'm just going to leave the ones that are that we ended up having and just to make sure Claude can like notice the most important things what I'm going
  68. 07:37to do is I'm going to leave a couple of annotations because yes Claude through Figma MCP can actually access these annotations and I I'm hoping it's going to be
  69. 07:46a little bit easier for Claude to to to find this.
  70. 07:51So increased I'm not going to annotate each and every single change but like I'm going to capture the most essential one once so let's see increased increased paddings from
  71. 08:07um 24 pixels to 32 pixels on the sides and um increased vertical uh vertical paddings as well.
  72. 08:22Um over here I changed the um like moved the logo to the left and the tonic parking to the the right.
  73. 08:36Uh okay. Let's see okay.
  74. 08:41I added here this minimum uh this minimum height.
  75. 08:45So I can I'm actually going to bring up this property from Figma just to make sure it's a little bit easier for Claude to noticed.
  76. 08:51Added min height to this um header uh frame and then I'm going to annotate that um increased let me see I'm going to annotate this dialogue here um uh
  77. 09:08increased padding um overall.
  78. 09:16And um then I'm going to maybe uh leave a few examples here um so on this body frame actually let me move it to the side so that it's
  79. 09:25not covered by these just so that it's a little bit easier for us to see what's going on.
  80. 09:30Um okay I 'm going to bring back the annotations I 'm going to select this frame I'm going to call out the padding uh increased padding from 16 pixels
  81. 09:43to 24 pixels. Over here I've also increased the padding um increased padding from uh I believe it was previously what um hm I actually need to remind myself let
  82. 10:03me see. Uh let me bring up the old dialogue here really quickly.
  83. 10:09Um previously it was what?
  84. 10:12Eight Okay, so 16 pixels here on the left and eight pixels everywhere else from 16 and eight pixels to 24 and 16 pixels.
  85. 10:26Okay, and you know what?
  86. 10:28I don't think this is necessary anymore.
  87. 10:30Um, and just to make sure I'm going to leave this like that.
  88. 10:38I'm going to hide these frames and um I'm going to um I'm going to maybe wrap that wrap this within a section.
  89. 10:50Um, so let me bring up a section after.
  90. 10:57And this way I can copy a link just to this section and Claude doesn't really need to be bothered about these other frames.
  91. 11:03Now one thing that I wanted to call out here about this dialogue.
  92. 11:06So previously when I copied this frame over here um it appeared in Figma just like this.
  93. 11:15But really the only thing that I'm changing here is this dialogue.
  94. 11:19And I believe it's going to be a little bit easier for me to just bring out the dialogue, delete the rest because this way Claude when you know fetching
  95. 11:28the screen through the Figma MCP, it doesn't really need to go through all of the definitions of the things behind this dialogue.
  96. 11:34So that is a general tip from me to you.
  97. 11:39Only focus on what really matters in your screens when you thinking when you think of sharing them with Claude and make sure to delete the rest.
  98. 11:49Okay? Okay. So with that I'm going to copy the link to this section and I 'm going to come back to Claude and I'm going to say thank you.
  99. 12:02I made some design adjustments to the padding and things like minimum heights.
  100. 12:13Please inspect these Figma frames, list out the changes and apply them to the implementation.
  101. 12:23Okay. So I'm going to I'm going to just paste my Figma frame um and I think I'm going to stay in the auto mode for this um that is
  102. 12:33just part of you know um that is just a refinement to an implementation that has created as part of the previous plan.
  103. 12:41So I don't think it really needs any um uh any any planning.
  104. 12:47So Claude has compacted the session again and it was only on my screen for a brief moment so you might have not seen it.
  105. 12:54This is because again it's been a while since I have sent the last message in this thread.
  106. 12:59So that is how Claude generally tries to um you know keep the context window as fresh as possible.
  107. 13:07Uh so it's going to use the Figma MCP to read it.
  108. 13:11It's going to use some skills from the Figma plugin which we installed a couple of lessons ago to analyze everything.
  109. 13:18Hopefully it can pick up on my annotations.
  110. 13:21Actually, you know what?
  111. 13:23Uh this is so important I'm going to pause and I'm going to say make sure to read the uh annotations I left in Figma.
  112. 13:34Uh just to make sure it doesn't go unnoticed.
  113. 13:39Um okay and then I'm going to let Claude work basically.
  114. 13:46Okay, Claude is running.
  115. 13:48It has already implemented the changes and it's now reviewing them itself.
  116. 13:52Uh seems like it has picked up on one change which I forgot to annotate or like even call out which is the fact that I have I have hidden
  117. 14:03let's see I have hidden the select a space header because I didn't think it is really necessary in this single column layout.
  118. 14:14In the desktop version, when, you know, the parking spots and the day, uh, the day picker are in separate layouts, it felt okay to, uh, have like give each
  119. 14:26panel its separate heading, but on a mobile layout it's not really necessary.
  120. 14:30And because less is more, I ended up giving up on this.
  121. 14:33I'm really glad that Claude was able to pick up on this.
  122. 14:36Um, okay. So let's see.
  123. 14:38Um, right. Um, mhm.
  124. 14:43Right. Okay. Yeah, so it's making a comment on that selected day thing which I have hidden.
  125. 14:50Um, some gaps that weren't annotated.
  126. 14:53That is true. I have annotated only some of them.
  127. 14:55So I'm really glad that Claude was able to pick up on all of them.
  128. 14:58Um, right. Oh, the width of the sheet fields.
  129. 15:03Um, no, that like it's really just a fluid thing, so I'm not really worried about that.
  130. 15:10Okay, and it seems like the implementation is already looking just like my Figma frame.
  131. 15:14I'm really glad. Yeah, just like this.
  132. 15:16Um, that was easy, I hope.
  133. 15:19Uh, and with that I think I'm just going to, uh, move on to like cleaning this up.
  134. 15:26And [snorts] in the next video we are also going to be talking about, uh, commenting these changes.
  135. 15:31So I'll see you in the next video.
  136. 15:32Thank you.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…