Claude Code for Product Designers
Lesson 12 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.8 The phone layout

Next lesson in 8 s

1.7 Closing the visual gaps

Adam fixes gaps between the build and Figma by showing Claude the problem instead of describing it, with a pen annotation from the built-in browser plus a Figma link to the selection, and then two screen recordings. He ends by having Claude shorten long date labels so they don't truncate.

What you'll learn

  1. Use Chrome DevTools to resize the page and test a layout.
  2. The built-in browser can annotate the page with a pen and add it to the chat.
  3. A Figma "copy link to selection" points Claude at exactly the part you mean.
  4. Claude can read screen recordings: powerful but token-heavy; use them when words would take several turns.
  5. Auto-compaction: Claude summarises a long or idle conversation to save context; it can be turned off.
  6. Small visual fixes can run in Auto mode without planning.
  7. A Next.js build error while Claude is still working is usually temporary.

Chapters

  1. 00:00Spotting two visual gaps
  2. 02:33Annotating the page for Claude
  3. 05:51What auto-compaction does
  4. 07:32Recording the resize problem
  5. 10:48Claude reads the recordings
  6. 12:53Shortening long date labels
  1. 00:00Okay, in this video, let's talk about closing that last remaining visual gaps and the tools that we can use to make this work a little bit more efficient with
  2. 00:09Claude Code. So, let me go back to our implemented application.
  3. 00:13A reminder that I'm looking at this in my own browser.
  4. 00:16I just typed in localhost 3000 uh in my um address bar and we did this because we have spun up a dev server manually, which is something we covered
  5. 00:26I believe two or three videos ago.
  6. 00:29Now, um taking a casual walk through the application before op camera, I've noticed like all around it's a very pretty decent implementation.
  7. 00:39That being said, there are two things that I've noticed that I would like us to take a closer look into.
  8. 00:44The first one is the thickness of the border around the parking spots.
  9. 00:49So, around the edges of the entire encapsulating container for this entire grid, things look exactly how we had them in Figma.
  10. 00:58So, one pixel border over here.
  11. 01:00But then, if we notice what's happening here in between different parking spots, uh because of stacking borders, um the visual impression that we get is that the borders between
  12. 01:11these spots are two pixels thick.
  13. 01:14If we go back to our Figma, we can notice that isn't really how it has been designed here and I would like Claude to take a look at.
  14. 01:23Um another thing which I've noticed and this only occurred to me the moment I um started testing, you know, how this layout behaves across different resolutions, uh which is
  15. 01:34something you can do over here by going into like inspect by getting into like um right click and getting into inspect, it will come up with this panel here
  16. 01:46uh and just by simply dragging and resizing this panel, you can observe how it is only this main column that really shrinks and grows while the column on the
  17. 01:55left hand side and I'm sorry, yeah, the left hand side and the hand side.
  18. 02:00They remain pretty much unaffected.
  19. 02:03And this isn't how I really envisioned this responsiveness to work in this application.
  20. 02:09I have actually built this layout with with a grid in Figma just so that Claude can get a better understanding of what my intentions are.
  21. 02:18And my intentions are, and I can actually preview it in the Figma, was to have everything scale and resize responsively.
  22. 02:27And and this should affect these side columns as well.
  23. 02:32So two things. Let's tackle all of them one by one.
  24. 02:36So first, let's let's switch over to Claude Code desktop.
  25. 02:43Now, how how do I describe this concept here with the stacked borders?
  26. 02:48It would be pretty difficult to describe it using my own language.
  27. 02:52And even though I can do a pretty decent job, there are some pretty high chances that Claude will not really be able to understand what I'm saying without an
  28. 03:02image. Now, of course, I can just take a screenshot here and then maybe use some annotation software to put an arrow or maybe highlight a area that I'm talking
  29. 03:11about specifically. But luckily, if we are on Claude Code desktop app, there is a built-in browser which we already saw in a couple of other videos.
  30. 03:20And I can type in the exact same address over here, localhost 3000.
  31. 03:25And the reason this browser is so cool because it comes with some pretty neat annotation options built in.
  32. 03:32And I'm going to use it here to my advantage.
  33. 03:36So let me just find a day that is like quite representative.
  34. 03:40And I believe this one is because I can clearly see the stacked borders.
  35. 03:45What I'm going to do is I'm going to maybe let's see if I zoom in.
  36. 03:49I'm not sure if that is going to be captured in the screenshot, but I'm going to enable the pen tool.
  37. 03:54No, there is the zoom just reset.
  38. 03:57Okay, doesn't matter. I'm just going to highlight Um, highlight this area here.
  39. 04:03Uh, that's a pretty, that's a pretty sketchy sketch.
  40. 04:07Uh, I'm just going to head here to add this to the chat and I'm going to say, um, okay Claude, so I'm noticing that the borders around parking spot
  41. 04:17components um, are stacking and um, this creates an illusion of having a two pixel uh, thick borders in between the parking spots.
  42. 04:28I would like for all of the borders to be exactly one pixel just like we had this in Figma.
  43. 04:36Okay, I'm going to close the browser here.
  44. 04:40Let me see um, okay and I think what would be helpful for Claude is if I go back to Figma and maybe just select this portion of my design
  45. 04:53and I do right click and do um, copy link to selection.
  46. 04:58What's cool about Figma is that the and we've again covered this in one of the previous videos already as well, um, the link that you create is going to
  47. 05:07always um, include what you had in your selection.
  48. 05:12So I'm going to paste that uh, link over here and I'm going to hope that Claude is going to take a screenshot of that specific node in my Figma
  49. 05:22file. So let's go ahead and hit send.
  50. 05:25Um, and I 'm going to keep using Alpus 5.5 on medium and I'm going to keep using the auto mode because these are like small visual things, small visual
  51. 05:34gaps. They don't really require typically a lot of upfront uh, preparation or you know planning.
  52. 05:41Uh, let's see if that's true in this case.
  53. 05:43If it doesn't come out all right, uh, we might actually consider uh, like taking a different approach here.
  54. 05:50Um, okay. Oh, nice.
  55. 05:52So uh, we have just witnessed something that I wasn't really um, I wasn't really prepared to discuss in this video, but since it happened, let's talk about it.
  56. 05:59So there was this session compacted uh, uh of text which just disappeared uh after a second.
  57. 06:06So uh this is that thing that Claude will do every now and then to save on the context window.
  58. 06:11And you might remember previously it used to be like 28% something along these lines because uh I believe it's been an hour since I um posted any message in
  59. 06:21this particular session. Um Claude has decided to compact it uh meaning like rather than for this Opus model rather than having access to like this entire transcript of this
  60. 06:34conversation word for word, it is now going to resume from basically just a compacted summary of the discussion that we've been having over here.
  61. 06:44Um I am not really afraid of this uh in this particular case because it's not that we've been discussing concepts that I really believe Claude should remember like uh
  62. 06:55word for word. Um but if this behavior you know drive me crazy there is an option to disable this.
  63. 07:02For now I believe it's a it's a good thing that we have that uh auto compaction uh running every now and then because it helps us you know have
  64. 07:10these longer sessions or longer conversations with Claude within one particular session.
  65. 07:15And as I was saying Claude did all the heavy work uh or at least it claims it has fixed it.
  66. 07:20Um let's go back to my browser and let's see if this is indeed true.
  67. 07:26And yes it seems like it seems like this is um this is now fixed.
  68. 07:32So perfect the first thing is already taken care of.
  69. 07:36Okay now let's get into that other thing which is the responsive behavior um of the secondary columns.
  70. 07:42This is something that I could describe using my own words if I wanted.
  71. 07:46Um but uh just for the sake of this video let's take a look at other thing we can do to make um you know make it a little bit
  72. 07:54easier for Claude to understand what we are getting at.
  73. 07:58So in order to describe this um uh or like to demonstrate the problem with the responsive behavior of the side columns I'm actually going do a screen grab.
  74. 08:09So I'm going to use the built-in QuickTime in my Mac.
  75. 08:13So I'm going to type in QuickTime Player, and then I'm going to go back over here.
  76. 08:18Or no, actually I'm going to do new screen recording, and I'm going to go back over here.
  77. 08:24Let me uh let me do something like this, and I'm going to hit record.
  78. 08:35Okay, and I'm going to finish the recording.
  79. 08:38Perfect. I'm going to save it.
  80. 08:40Um I'm going to save this recording to desktop, and then I'm going to go into Figma, and I'm going to do the exact same thing.
  81. 08:51There is, I believe, a shortcut in macOS.
  82. 08:54Yeah, it's the command shift five to quickly bring up the recording tools, and I'm going to do the exact same thing in Figma uh just so that we can
  83. 09:04capture the difference between the behaviors.
  84. 09:08Oh, okay, sorry that I just took a screenshot, which is not what I wanted.
  85. 09:12Oh, let me bring up this as well.
  86. 09:14I'm going to select record a selected portion.
  87. 09:20Okay, and I'm going to hit record, and I'm going to do a little bit of wobbles as well, and I'm going to stop the recording.
  88. 09:28I 'm going to save this to my desktop, and now I 'm going to um describe this in my words, using my own words.
  89. 09:36I'm going to attach both video files.
  90. 09:39Um okay, thank you.
  91. 09:41Another thing which I'm noticing is that side columns don't seem to respond to um viewport resizing.
  92. 09:50Mm they should not have fixed uh widths.
  93. 09:54Instead, they should be fluid.
  94. 09:59Okay, that might not be the most professional way of describing it, but I don't to worry about that because I have my recordings after all.
  95. 10:06I 'm going to now select both of them.
  96. 10:08Uh I'm going to go my desktop.
  97. 10:11Uh, let me make sure that I'm going to include both videos.
  98. 10:15Uh, okay. Um, and I'm going to actually explain those really quickly.
  99. 10:21Attached are two screen recordings.
  100. 10:25Uh, first one showing the behavior of the implemented app and the other one showing the proper resizing behavior in Pitma.
  101. 10:41Uh, okay. And let's see.
  102. 10:44I'm going to hit send.
  103. 10:46And um the reason I'm showing this on camera is because Claude can actually read uh recordings or video files as well.
  104. 10:55It is not um something that I would recommend we use on a daily basis because reading videos for Claude is quite uh token intensive uh thing to do.
  105. 11:07It needs to look and analyze all of the different key frames.
  106. 11:10This is a lot of data uh for Claude to process, but sometimes there is just no easier way to do it and recording or grabbing a quick video and
  107. 11:18sending it over to Claude is sometimes like faster than having a couple of turns and trying to um explain a very tricky concept uh using just our own words.
  108. 11:30Um, okay. Let's give Claude a little bit of time to watch the recordings and let's see if it's going to be able to uh understand what the issue is
  109. 11:39and to come up with a fix.
  110. 11:42Okay, Claude is requesting access to my desktop folder.
  111. 11:46It's a fresh machine as I mentioned in one of the previous videos.
  112. 11:49So if you've never used that uh feature again, you'll see the same thing.
  113. 11:53Of course, I'm going to give it access to to my desktop folder because it needs to see these recordings and this is what I keep them.
  114. 12:01[snorts] Um, okay. And we can see it's actually reading the frames.
  115. 12:05It's reading frame by frame.
  116. 12:07It's going to do this uh for both videos, I believe.
  117. 12:10And um yeah, uh let's give it a second to do its thing.
  118. 12:15Okay. And it has actually figure out again, it's not that I really had to record these videos to describe this particular problem, but I really wanted to capture this
  119. 12:26as one of the techniques we can use when working with Claude Code.
  120. 12:33Okay. So Claude has changed the implementation and now it's going to check itself and okay, let's see.
  121. 12:42Let me go back to my browser here and we can see it's actually working properly.
  122. 12:50Okay. One last thing before we wrap this up for this video is I'm going to actually fix something that I had in my original design, but I wasn't really
  123. 13:00accounting for you know, November being such a such a month with like with such a long name in my Figma design.
  124. 13:11I actually used April, which is conveniently very short, but now having like seeing November in action, I can see there is a truncation problem.
  125. 13:19So I'm going to ask Claude to truncate or maybe do these shorter version of weekdays and and month names as well.
  126. 13:28So let me go back to Claude Code and let me say something like this.
  127. 13:36Okay, thank you Claude.
  128. 13:37One last thing is I would like us to actually abbreviate weekday names and month names in the left hand sidebar so that we can always display the full date
  129. 13:51without running into truncation issues.
  130. 13:56And I'm going to give it an example.
  131. 13:58For example, Tuesday to November four.
  132. 14:08I don't think Tuesday was November four this year, but that's not the Um, okay.
  133. 14:17Let's give it a second.
  134. 14:20Okay, it seems like uh the initial fix is ready.
  135. 14:24Yep, there it is.
  136. 14:25It's much more it's much more like future proof this way even at smaller window sizes.
  137. 14:32Okay, um what I'm just looking at is um like Next.js build error.
  138. 14:38This can happen when Claude is still like working on the code.
  139. 14:41So if you see this window, which I just had for uh a couple of seconds, don't worry.
  140. 14:48We'll just check if the Claude uh is still working.
  141. 14:50If it is, just give it some time and if the issue is still there, then you can ask it to uh troubleshoot it.
  142. 14:56Okay, um so let's see.
  143. 15:01Oh, to get the always fully visible, I also need to make one small layout change.
  144. 15:05The short dates alone weren't quite enough.
  145. 15:07Okay, seems like Claude is, you know, very ambitious here.
  146. 15:11Um, I raised page minimum width from Okay, got it.
  147. 15:15Uh-huh. I recommend this over the other alternatives.
  148. 15:18Um, let's see. I'm going to just double check if everything is all right here.
  149. 15:24Uh, okay. So what Claude did is um it made um um it made like it gave our page like a minimum width, which is now a bit more generous.
  150. 15:34And this is I believe a very great introduction to what our next lesson is going to be, which is designing outside of Figma.
  151. 15:42And we are going to take a closer look into building a mobile layout for this application.
  152. 15:47So with that, I'm going to see you in the next video.
  153. 15:49Thank you so much.

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…