Claude Code for Product Designers
Lesson 6 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.2 What a web app is, and the tools to run one

Next lesson in 8 s

1.1 The project and the Figma file

Adam walks through the Figma file the module builds from, an app for booking a parking spot before you come to the office, and shows what makes it ready for Claude: named layers, auto layout, components with variants, and Tailwind colour variables with a semantic layer on top.

What you'll learn

  1. What the training app does: book a parking spot before you come to the office.
  2. The layout: days on the left, spots in the middle, a contextual details panel on the right.
  3. The details panel is one component with variants for each state.
  4. Clean files (named layers, auto layout, grid, components with variants) give Claude a cleaner first output.
  5. Variables: Tailwind's scales, imported from a Community file, plus a semantic collection on top.
  6. You can build from a UI library like shadcn/ui, but this file uses its own components.
  7. Keep your own version simple; the point is working with Claude.

Chapters

  1. 00:00The parking booking app
  2. 00:59Panel states and components
  3. 01:58What makes the file AI-ready
  4. 03:46Tailwind and semantic colour variables
  1. 00:00Okay, let's dive into what we're going to be creating in this module.
  2. 00:05What I have in front of me is a Figma file which you can download from Figma community.
  3. 00:10A link is going to be included wherever you're watching this video.
  4. 00:13And this Figma file is a simple design for a simple web application which we purpose built for this course so that it's easy to follow along.
  5. 00:22And this application happens to be happens to be, you know, this parking spots you know, reservation or management system.
  6. 00:31Basically, if you want to book your parking spot ahead of your visit to our headquarters, you can do so.
  7. 00:38On the left hand side, it's a single view up almost.
  8. 00:42On the left hand side, I can see a list of upcoming days.
  9. 00:45In the middle, I have all of our, you know, booking spaces which we have available.
  10. 00:50And then on the right, we have this contextual details panel.
  11. 00:55Contextual because it's going to show you different information depending on what you have selected over here in the middle.
  12. 01:01If you have nothing selected, there is going to be an empty state.
  13. 01:04And then if you happen to be clicked clicked on a you know, spot reserved by someone else, you're going to see just the details of this reservation.
  14. 01:14And then you can also you can also see this panel having a different variant for a place that is available and then for a place that happens to be
  15. 01:24reserved under your name, which also comes with this extra option of deleting this reservation.
  16. 01:30Now, this entire panel is a component with variants as you can see.
  17. 01:34And I have put all of the component UI components here on the left.
  18. 01:38And I just created enough components for for me to be able to build out this view and handle some basic some basic user flow delete confirmation flow, for example,
  19. 01:50and something like that.
  20. 01:52So the thing is or like something that makes this Figma file uh, AI agent or coding agents ready, is how clean it is.
  21. 02:03So, as you can see, I am naming my layers and I am using plenty of auto layout.
  22. 02:08I'm using components with variants and all of them are labeled.
  23. 02:13Not because I'm sharing this with the world and I'm afraid of you being perhaps slightly judgmental, this is because this is something that AI coding agents can truly take
  24. 02:25advantage of when they are given a design which is, you know, quite nicely documented.
  25. 02:30Um, it just makes so that, um, you know, first output, um, is so much cleaner if Claude knows what it's looking at before or without the need of taking
  26. 02:41a screenshot and figuring it out.
  27. 02:43So, I'm using again plenty of auto layout.
  28. 02:46Over here I even ended up using this, you know, grid feature which is still, I guess, relatively new to Figma.
  29. 02:53Um, and each element here, um, like, for example, list items or these booking spots are components with different variants and this is all, um, in the hope of, you
  30. 03:05know, making Claude's, you know, life easier and therefore also making my life easier because, you know, the cleaner the design or the better the input, the better the output.
  31. 03:14Um, now in terms of colors and variables, but because, you know, I have, uh, gone down the, you know, custom UI components route, I'm saying this because, um, well,
  32. 03:25I guess you could build, um, you could build something, um, off of, uh, let's say a shadcn UI component library or something else.
  33. 03:35Uh, I ended up going for my own components so that this course is also a little bit easier to follow.
  34. 03:41Uh, but when it comes to variables, I ended up using a mix or like a slightly different approach over here.
  35. 03:48So, there is this thing called Tailwind CSS which is the CSS framework which makes engineering life easier or like front-end developers life easier actually.
  36. 03:58Um, and it comes with plenty of really nice CSS variables already out of the box.
  37. 04:04You have the entire color scales, um you have CSS classes for shadows or like I guess we could say presets for shadows.
  38. 04:13Um and so I've used that.
  39. 04:15I actually used a different file from Figma community to import all of these variables into my file and then I've also applied this semantic layer on top of that.
  40. 04:26So I just created a new collection um and I gave um and I've just you know added a couple of semantic variables which are all references to colors or
  41. 04:37just different values from from Tailwind, but mostly colors.
  42. 04:41Um so what I'm looking at here is just basic set of colors.
  43. 04:46Um so what's the default border?
  44. 04:48What's the accent border?
  45. 04:49What's the strong background?
  46. 04:51What's the default background?
  47. 04:52What's the muted background?
  48. 04:54And so for and so long and so forth.
  49. 04:56Um so hopefully that will make Claude a little bit um well a little bit more careful about using the right variables and it's also certainly going to make my
  50. 05:07life easier later on when I decide to you know um iterate on this application and you just you know keep working on the design system that I have over
  51. 05:17here. Um so that is the Figma file.
  52. 05:20As I mentioned you can uh download this exact Figma file and use that to follow along in this course.
  53. 05:27If you want you can make some tweaks.
  54. 05:29You can change this to be a booking reservation for something different or something else than a parking spot.
  55. 05:35Um I would however highly recommend that you you know keep this fairly simple so that uh well you can focus on actually working with Claude rather than well let's
  56. 05:47face it. You know we designers we know each other.
  57. 05:50So um the most important thing is that we keep working with the Claude instead of just spending hours and hours on perfecting you know this until it looks right.
  58. 05:59So yeah that's it.
  59. 06:00I'll see you in the next video.

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…