Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
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
- What the training app does: book a parking spot before you come to the office.
- The layout: days on the left, spots in the middle, a contextual details panel on the right.
- The details panel is one component with variants for each state.
- Clean files (named layers, auto layout, grid, components with variants) give Claude a cleaner first output.
- Variables: Tailwind's scales, imported from a Community file, plus a semantic collection on top.
- You can build from a UI library like shadcn/ui, but this file uses its own components.
- Keep your own version simple; the point is working with Claude.
Chapters
- 00:00The parking booking app
- 00:59Panel states and components
- 01:58What makes the file AI-ready
- 03:46Tailwind and semantic colour variables
- 00:00Okay, let's dive into what we're going to be creating in this module.
- 00:05What I have in front of me is a Figma file which you can download from Figma community.
- 00:10A link is going to be included wherever you're watching this video.
- 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.
- 00:22And this application happens to be happens to be, you know, this parking spots you know, reservation or management system.
- 00:31Basically, if you want to book your parking spot ahead of your visit to our headquarters, you can do so.
- 00:38On the left hand side, it's a single view up almost.
- 00:42On the left hand side, I can see a list of upcoming days.
- 00:45In the middle, I have all of our, you know, booking spaces which we have available.
- 00:50And then on the right, we have this contextual details panel.
- 00:55Contextual because it's going to show you different information depending on what you have selected over here in the middle.
- 01:01If you have nothing selected, there is going to be an empty state.
- 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.
- 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
- 01:24reserved under your name, which also comes with this extra option of deleting this reservation.
- 01:30Now, this entire panel is a component with variants as you can see.
- 01:34And I have put all of the component UI components here on the left.
- 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,
- 01:50and something like that.
- 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.
- 02:03So, as you can see, I am naming my layers and I am using plenty of auto layout.
- 02:08I'm using components with variants and all of them are labeled.
- 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
- 02:25advantage of when they are given a design which is, you know, quite nicely documented.
- 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
- 02:41a screenshot and figuring it out.
- 02:43So, I'm using again plenty of auto layout.
- 02:46Over here I even ended up using this, you know, grid feature which is still, I guess, relatively new to Figma.
- 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
- 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.
- 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,
- 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.
- 03:35Uh, I ended up going for my own components so that this course is also a little bit easier to follow.
- 03:41Uh, but when it comes to variables, I ended up using a mix or like a slightly different approach over here.
- 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.
- 03:58Um, and it comes with plenty of really nice CSS variables already out of the box.
- 04:04You have the entire color scales, um you have CSS classes for shadows or like I guess we could say presets for shadows.
- 04:13Um and so I've used that.
- 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.
- 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
- 04:37just different values from from Tailwind, but mostly colors.
- 04:41Um so what I'm looking at here is just basic set of colors.
- 04:46Um so what's the default border?
- 04:48What's the accent border?
- 04:49What's the strong background?
- 04:51What's the default background?
- 04:52What's the muted background?
- 04:54And so for and so long and so forth.
- 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
- 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
- 05:17here. Um so that is the Figma file.
- 05:20As I mentioned you can uh download this exact Figma file and use that to follow along in this course.
- 05:27If you want you can make some tweaks.
- 05:29You can change this to be a booking reservation for something different or something else than a parking spot.
- 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
- 05:47face it. You know we designers we know each other.
- 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.
- 05:59So yeah that's it.
- 06:00I'll see you in the next video.