Designers are using Claude Code for UI, but the bigger opportunity is everything around the design work.
In this video, I break down how Claude Code, Claude Skills, and Claude Routines can help designers speed up design system work, developer handoff, component docs, design audits, accessibility checks, type scales, Figma variables, and design tokens.
This is not about replacing Figma or becoming a developer. It’s about using Claude Opus 4.7 as a workflow layer for the time-consuming parts of product design, UX design, UI design, and design systems work.
0:00 An Introduction 0:50 Why You Should Learn These Processes 2:21 Getting Started with Documentation 5:15 Building Component Documentation Claude Skill 9:33 Building a Claude Routine to Update Component Documentation 12:47 Figma Skills & Figma MCP Connection 15:37 Generating Component Documentation 17:55 Testing the Claude Routine 19:52 Building Developer Handoff Documentation Claude Skill 23:12 Building the Routine and Testing the Workflow 25:58 Auditing of Designs with Claude Code 30:02 Results of AI Design Audit 32:01 Accessibility with Claude Code 34:29 Accessibility Report 35:50 Generating Type Scales 38:52 Generating Figma Variables and Collections 43:13 Claude Code Limitations with Figma Variables and Design Systems 47:59 Using Claude Code to Build Design Tokens in JSON Format 51:12 Outro
This video demonstrates how designers can leverage Cloud Code and Figma MCP to automate \"non-designing\" tasks. By using AI skills and routines, designers can automate the creation and maintenance of component specifications, developer handoff documentation, and design audits, effectively reducing technical debt and streamlining the transition from design to development.
Designers are sleeping on Cloud Code because you can use it for more than just AI design.
Today we'll look at how routines can keep component specs and developer handoff docs
updated after skills generate the first draft. Then we'll cover design audits,
accessibility checks, type style generation, AI variable questions, and more.
Before we begin, if you're a big fan of myself and what we're doing here at UI Collective,
I'll put a link in the video description to our website where you can come support
UI Collective Academy where you get access to a bunch of great courses on AI workflows
and a whole lot more, always adding more to this as well. Also get access to some micro lessons,
some great perks like our design system, private Slack channel access with me and the team,
and a whole lot more. It's totally free to join the community side of things. You can come ask
any question for free on our forum. Also get access to some savings and resources too. So
you'll join the community, support the Academy. Thanks for being here. Let's rock and roll.
Also come follow me on X. Getting up there in terms of followers. I crossed the 1,000 mark.
I'll put a link to this in the description as well.
AI design is here to stay. And I get a lot of comments around this.
Why are you teaching these things? You're going to help AI replace us.
Either learn or you get left behind. We're not going to be able to remove AI from our process.
It's only going to get better. So you might as well learn now. And I've covered a lot in the
past around how AI tools work and how to make the most of them, usually from a design set,
whether it's using Mob and MCP, different ways to spin up designs and preserve tokens.
I'll leave some links to other videos down below. But today we're going to look at how I'm using AI
in a non-designing design way. Other ways I'm using AI in my workflow for a very targeted
approach to using my tokens and using my time. All right. Now, I get a lot of feedback like this.
AI design takes too long. AI design is too expensive. So what I see is designers just
ignoring it. And that's the wrong approach to take. Because yes, it is expensive and it does
take a lot of time if you're using it every day. Like if you were in Figma every day using it to
build out new iterations of designs, tweak old ones, trying to do that with AI, yes, will take
a lot of time and is very expensive. But there are other targeted ways we can use AI that are
always worth the time and the token investment. Let's take a look at these.
The workflow we're going to go over to start is relevant whether or not you're working with
design systems. If you're working with design systems, use it with components. If you're
working on card designs, use it for card design. If you're working on larger dashboards, use it
on the pages. You just might need to tweak what it is that actually goes into it. But it's relevant
whether or not you're working on design systems or not. We're going to be using the button
component as an example because it's the easiest to get the point across, but I want to call that
out right away. For this example, we're just going to work with a sample button component.
I removed a lot of the other variants. Again, this is just from the design system. That's part of our
academy. But even if you don't have the same variants and the same properties and stuff,
it's still going to work for you too. But just as an intro, we have this button component with
default subtle outline transparent and default hover focus disabled. We have a text property
for the label and then a layer property and instance swaps for both of the icons. This is a
really, really simple button component. Now, what are two things that we need here? Let me just add
a quick frame. Two things that we need for really any design or really any component. We need
our components or design specs. This is for us designers on how to use the specific component,
how to use the design. Maybe it's a card, maybe it's a modal, maybe it's a specific
layout of a design. It's something I've seen pretty common working with clients.
And we also need handoff notes for our developers. So we don't just need one,
we generally need both. And what generally happens, that design or that component is built,
the documentation is generated once on first build and then it's left untouched for eternity.
Then six months go by and the design changes, the component changes and the documentation
that is in Figma or the developers have for how it works does not equal the design.
What do you have then? You have a whole bunch of technical debt. And this here happens for one
reason and one reason only is that we don't like updating these kinds of things. We want to design
not write. We generate it first off to check a box that our boss is happy, but we never touch
it again because it's not what we want to do. So we're going to look at a workflow in order not
only to generate these things, but also a workflow that we can use or where there is an up, when
there's an update made on the component, on the design, we can run a routine in order to update
that on our behalf. And real quick, just a preface with anything that's developer specific, have a
convo with your developers. They might want certain things a certain way. I want to show you the
process, but the finer details, it's a convo you need to have with your developers for anything
developer related. And for this as well, we're going to be using a skill to generate that initial
documentation, but a routine to update that documentation. I've covered skills in the past,
routines I haven't yet covered. Let's take a look. For this, we're using Cloud Opus 4.7. Because
these are things that we're only going to be doing once every so often, I want to use it to make sure
it's done right the first time because it's most capable for more larger thinking like generating
documentation, seeing what it is was maybe changed on a component, on a design, and generating a plan
in order to generate that updated documentation. So for this, we're using Cloud Opus 4.7. Let's get
started building the component spec skill. And we're going to start off in Cloud AI, then we're
going to flip over to Cloud Code. Now for this, what we're going to do, sorry, I just have notes
here that I'm going to reference too so I don't forget anything inside of the skill. Please,
always say you're pleased, build me a Cloud skill for components slash design
specs. Again, what we're going to look at, you can tweak this depending on whether you're building
documentation for a design, a module, a specific component. There's no one-size-fits-all approach
So here are the details we need inside. First off, we need what it is, one sentence definition,
when to use it, specific scenarios, when not to use it, common misuse cases. Sorry,
there's gonna be some spelling mistakes here, just like this one right here. There we go,
let's fix that. When not to use it, variance, what each one is for, states, list all interactive
states, anatomy, names for each part of the component, properties, properties inside of
Figma available. Let's go with usage rules, do and don't, kind of similar to when to use it,
but just sort of capture all. Accessibility notes, things like keyboard, screen reader
behavior. Some of this can also go in the dev part, especially those accessibility notes,
but we're also gonna include here too. And then related Atom components, if applicable. A button
is not going to have an Atom component, I guess you could call an icon an Atom component, but
this is more for things like menus and all that stuff. So please build me a cloud skill for
component design specs. Here are the details we need inside, what it is, one sentence definition,
when to use it, specific scenarios, spelled scenarios wrong. There we go, when not to use
it, common misuse cases, variance, what each one is for, states, list all interactive states,
anatomy, names for each part of the component, properties, properties inside of Figma available,
usage rules, do's and don'ts, accessibility notes, keyboard, screen reader behavior,
and related Atom components, if applicable. Again, with Opus 4.7, let's run. This here is
what it came back with. Now, one thing I want to call out here is if we look here on the left-hand
side, one of the reasons why I like using Opus 4.7 is it's really good about thinking and thinking
about how we can maintain the quality of results in the future compared against other models.
So not only did it write the skill.md, which we have here, with the 10-section specify,
but it also added a fill-in template here on the right with all of these sort of variable that AI
can fill in in order to keep that result consistent and include two worked examples
so Claude knows the quality bar when filling out. Now, this type of quality bar type thing,
so that's two examples for a button and then also input field, this is the kind of thing that would
replace us having a dialogue with AI back and forth for forever that Claude Opus 4.7 gave us
right out of the box. So it's not only thinking about what's going to help us generate the
documentation, but what's going to help keep it consistent in the future and keep the quality
good in the future as well. Let's go ahead and save this skill. Inside here of Claude code is
we're going to navigate here to routines because the skill is going to help us generate that
initial documentation, but the routine is going to help us update that documentation as things
change. So this is where you can find routines. We're going to choose to create just a new routine
with a lot of these things. Wherever there's any kind of updating something with automation
is you don't want it to update every time something changes because design is an iterative process,
and what if you're just doing that iteration? You don't want all the sudden a routine catching
things and a routine automation anywhere. It's just a good rule of thumb. If you're just doing
iteration, you don't want to have any AI picking up all of these small adjustments and generate
documentation. You move something around again, it generates new documentation. It's just a complete
waste. With some of these things, the call should always be manual. For this, we're just going to
create a new local routine. Let's just call it component spec or maybe just design spec. We'll
keep it a little bit more broad. Description for generating updated design spec documentation.
Inside of Figma, we're also going to set this to manual. As I said, there's the option here to do
things that are hourly, daily, on weekdays or weekends. It's important to note that these
local routines, they have to be running while the computer is awake if you do schedule it.
But as I just said, because every time you make a change, we don't want something
new to update. We're always going to set it to manual for all of these automations.
Now, let's go ahead and let's enter in the instructions. I entered in some instructions
here. Again, for the purpose of this example, it's just going to be for components. You can tweak
this for anything else. Once I give you the component name, do the following. Step one,
use the Figma MCP, find and read that component and all its variants and properties in. What we're
doing here is we're specifying a link to that specific Figma file. It's important to provide
a link to that Figma file because especially if we've been using AI to dialogue with other Figma
files, it's going to get confused. So I always provide a specific link to the Figma file.
If it's all on one page, you can also give a link to the page as well. Whatever. It doesn't really
matter. Using the Figma MCP, find a documentation frame for that component. Again, inside of that
file, not for a specific page, but inside of that file. Identify what has changed. New variants,
updated properties, new states, renamed tokens, new design, updated layout. Draft an updated
doc entry in the exact same format as the existing documentation frame. What this is going to do
is it's going to give us, one, what changed, and then ideally draft an updated doc entry so that
we can review it. Now, it's important that you don't just draft an updated doc entry
because we want AI first to identify what has actually changed. And that's the beauty of
Opus 4.7. It's generally pretty good at that. Do not edit anything in Figma. I'll put the draft
review only. We will then update Figma after my approval. Something as simple as that. Let's go
ahead and create this. Before we test out that workflow, we're going to install Figma Skills and
Figma MCP quick. Just in case you're new, you've never done it before, if you've already had this
installed, like you've watched all my other tutorials, skip the next 30 seconds and then
proceed forward right to where we test and do all that fun stuff. Now, here I am on Figma Skills site.
I'm going to link this down below if you don't have it. Now, there's some skills that we need
to use and what skills help us do is it helps AI interact with the Figma canvas. That's really it.
First off, we're going to need to download this Figma use skill. I'm going to come in here.
We're just going to open up to GitHub. We're going to hit MCP server guide and then just go ahead and
download that zip directly. Let's go back. There's one other skill that I'm going to want to install
as well, which is this audit design system skill. What we're going to do here, we're just going to
download that individual skill.md file. There we go. We're also going to use this apply design
system skill as well or install this one. It's always good to have. Let's go ahead and let's
also download that. Let's flip back to Cloud. Back inside Cloud then under Customize, Cloud Code,
sorry, under Customize, we're going to choose to add a plugin. We're just going to upload a plugin
and then that first zip file that we had downloaded, we're simply just going to drag it in
just like that. Let's go ahead and upload that. Now we can see that everything is good here,
but under Connectors, you're going to see that we still need to connect Figma.
What we need to do is just choose to connect Figma. What that's going to do is it's going to open up
Figma inside of the browser. I realize I need to log into Figma in my browser for us to connect
Figma to Cloud. This here is the Figma MCP. I'll pause the video while I log into my Figma account.
You can see we're now connected. Let's just navigate up to Skills. Ignore all these other
skills here. These first couple are just from a past video. The other ones are from our academy.
What we're going to do is we're going to upload a skill now. The skills that we're going to upload
are just the individual skill.md files that we had downloaded, particularly that Audit Design
System skill and then also this other skill that we had downloaded as well, which I use a little
bit generally less frequently, but it's always good to have. Okay, perfect. We have the skills
installed. We have the Figma plugin installed. We're also connected to the MCP. Now we're ready
to test out that workflow. One quick thing under the plugin directory, if you just go Browse Plugins
and you just search Figma, I did not have this for the longest time, which is why I was still
manually installing some of those things. You're going to see that you do have the Figma plugin
with a lot of those skills already installed, but you still would need to connect Figma MCP
and any of the skills that were not in that Figma use skill, you would also still need to upload
individually. So like the Audit Design System skill as an example, but now I have this and I
didn't have it for the longest time. So what I'm going to do now, inside that design system that
we referenced earlier, I'm going to copy a link to this frame inside of a Cloud Code session.
Again, with Opus 4.7, I'm just running on high, you can run on extra high if you want to,
doesn't matter, is I'm going to paste in a link to that Figma frame and then please
generate me component spec documentation. We are going to build it locally here first,
build it locally here first before we push to Figma. So let's go ahead and run that.
Now what we have is this, where we have what it is, when to use it, when not to use it,
the variants, the states, anatomy, properties, usage rules, so on and so forth. I think it looks
pretty good. What I want to do now is let's push to Figma and it's going to put this documentation
frame next to the component. So let's run that. What we got then inside of Figma is this, this
component spec sheet. Looks pretty good. It's basically everything that we looked at before.
What I want to do now is I want to signify breaking this component. Not necessarily breaking,
but changing things. Maybe removing a variant, changing the colors, changing the radius
to almost simulate us already having existing documentation, then making changes to that.
But let's make some tweaks here. Let's get rid of the transparent version. Let's select all of these
and let's change the radius to none. Just on this first set here, let's set the stroke to two pixels
instead of one. Again, just on these default variants. So our default, default, subtle default,
outline defaults, and also two. And don't forget the focus here. Select the focus. Let's also
change the radius here as well to zero. There we go. And then maybe on these, let's just add a
one. So let's go with a border. Actually, never mind. Let's just leave that as is for now. All
right. So enough changes to sort of warrant maybe some changes in that documentation. So we removed
a variant set. We adjusted the radius. We added a border to just one of the sets. So now what we're
going to do, let's run that routine that we set earlier now inside of a new Cloud Code session
again using Opus 4.7. Let's run this prompt. Run the design spec routine for the button sample
components. Do not use any components specific components or design system specific flawed
skills. The reason why I'm doing this is sometimes whenever you call routines manually,
it still even just picks up skills and it kind of messes things up, especially if your skills
and your routines are closely named. We probably could have named ours a little bit differently
just so we wouldn't get confused. Just something that you should be aware of and doesn't usually
happen, but it does happen sometimes. Just something that I've noticed. So let's go ahead
and run this then. Notice what it came back with where it recognized we now only have three types.
The states grid is wrong because we only have three types. We only have 12 variants now.
It caught that we used the two pixel border. It caught the properties type and there's some other
things that it caught as well that are more irrelevant that I think it just missed in the
first pass, but that's okay. Tokens observed. Drafted replacing copy. Perfect. So it caught
sort of what changed. Now what we can do, update the documentation layer inside of Figma next to
the components based on your findings. Based on your findings. There we go. Let's run this now.
Now you can see that this has been updated for just the three variants and it looks like you
adjusted the components and other things as well. So now instead of having to manually change that,
just by running that cloud routine with Opus 4.7, it did it for us. I want to do the same for
developer handoff docs then. And again, I'm going to show you the formulas to how the data might
differ and what that routine might look like. Again, very similar, but again, we're going to
go through it. Another thing I'd like to call out is I do know that oftentimes Figma isn't your
source of truth for these things. Whether it's supernova, zero height, Figma is probably going
to come out with a solution of their own in the future. But I was showing you how to use this as
a starting point where you can take that content, take that information and update it elsewhere.
Let's dive in. Back inside Cloud then, again using Opus 4.7. Let's run this prompt. I typed it out,
so you didn't need to watch me type it. Please build me a Cloud skill for developer handoff specs.
The emphasis here is for developers to make sense of the component and its parts and not for
designers and its usability. Now, we're focusing on components just for this example. You can do
it for full pages if you want to. Cards, modules, like a graph module. You can tweak this to fit
your own needs and do whatever you want. As I mentioned, have conversations with your developers
around what they want in here. This is just sort of like a starting template, but it's not a one
size fits all. Parts, what the component is made of. Sizing, width, height, padding, gap, radius,
token, states, behavior, accessibility, responsive rules, edge cases like long text,
missing content, overflows, empty states, composition, and atom components. Which smaller
components it uses and what they're for. Now, one thing I'd like to call out is if for those academy
members like you might have like there's other ways in which you can generate things like empty
states, edge cases that are a little bit more in-depth. Where you do leverage multiple tools
and a little more of a specific workflow or generate that. This is a good starting point
for those getting started here. Alright, so let's go ahead and run this. And then this is what it
came back with. So very similar to what we have before. So we had our skill, we sort of have the
template file that it's going to introduce. And then we have some examples. But what I want to do
is I want to test this out on a more complex component. Because dev handoff docs for things
like a button, it's relatively straightforward. Because it's not really atom components.
But what if this is like a menu component where those menu list item components have like a
checkbox, a radio button, and those all go into like a menu list item component. That list item
component goes into a menu component. Where it can get more complex, where developers need to know
some of the details. I want to test that out on something like that. And this here is an example
of what I mean. Where you have like all these different list item components and variants
which are combined to go into one larger component. So all of these combine to go into one.
But if I was to click into these, you see how it can swap all the different variants for this
individual row alone. That's kind of what I'm getting at here. And you can see here is we're
also using a checkbox component. Where you have like a radio box component. We have all these different
atom components that can go into these larger components. So this is what I'm trying to get
across here. So one thing as well. So what we're going to do here is we're going to generate the
handoff docs for this here. Inside of a new cloud code session then. Again running opus 4.7. Let's
enter a link to just that figma component. And just please build me a developer handoff docs for
this component. For the component above. For the component linked above. Build locally
in html before we push to figma. Let's run that. While that's generating, what I'm going to do here
is we're going to create a new routine. Similar process we went through before. Developer handoff,
update developer handoff documents. And the instructions are relatively the same as what
we did before. The only reason why I duplicated it is I just want to put an emphasis on identify
any developer related changes. Including all these. Drop an updated developer handoff doc. Again we
don't want it to confuse the two documents. And then focus on implement details. Implementation
details developers need to build or maintain the component accurately. So just the wording is a
little more developer focused. It doesn't confuse the two documents. It's the only reason why I
duplicated it though. Everything else really just stays exactly the same. Let's go ahead and create
this. This is what we have now. Notice how some of the components appear a little off here. Like
some of the styling. That's okay. Usually when we push this to figma, it fixes itself. But if not,
that's fine. Notice how this is way different than what we as designers consume. So we have all our
sizing values. We have the menu container. We have the scroll bar. We have all the tokens
that are used. We have the different states. We have the specific behavior. We have accessibility.
This is going a little bit more in depth around what developers are actually interested in. Edge
cases. Components. Atom components. So this is a little bit more in depth than what us designers
would consume. It's more developer specific. Again, have the content with your developers
around what you want in here. This is just an example. What we're going to do now, we are going
to push to figma next to the components. And let's rock. You can see this is now inside figma. Again,
there's some things we'd have to go through and edit confirm. But again, as I mentioned, you can
see how much different this is compared to what the designers had. Now let's make some changes to
our menu component. So again, just to test out the workflow, let's just get rid of this entire
grouping here. And let's just shift this up. Let's maybe get rid of also the radio button groupings
here too. And let's just move this off to the side. And one other thing we might also want to
do, if we think about it, is let's just remove that stroke entirely. That border stroke from all
of the items. Now let's run the routine. And very similar as we did before, run the developer
handoff routine for the menu sample component. Did not use any component or design system specific
cloud skills. The component that I edited, it wasn't the main menu component. I duplicated that
and just called it menu samples. That's just why there's sample in the name of the component. But
anyways, let's run. And as we did before, now we got a summary of what the changes were versus
what's in the existing doc. And there's a whole lot here. I'm not going to go through it with you.
But let's have it update the documentation. And let's rock and roll documentation inside of
Figma, always specified. And let's run. And this is a long handoff document, so I'm not going to go
through it. But I can assure you those changes were made. I want to talk about the auditing of designs
now. And right out of the gates, using AI to audit designs for UX and UI issues is not the best
approach. The reason being is AI does not have the context to your project. It doesn't have the
context to what it is that you're working on right now. And it just creates this endless cycle of
feedback, revisions, feedback, second-guessing yourself. It's just not the best thing that
you're going to want to do. Ask your team members for feedback, who have an idea as to what it is
that you're working on. Way better approach. Ask a design community like UI Collective. The best
approach, in my own personal opinion. But what I see a lot of is this. I need feedback on my UI
and my UX. Cloud's going to provide suggestions. You're going to implement those suggestions. Then
you're going to realize it's wrong, or someone else is going to tell you it's wrong, or it doesn't
fully make sense. Then you ask for more feedback. Cloud's going to provide more suggestions. Then
it's just a never-ending cycle. So when it comes to auditing designs and asking for UI feedback,
UX feedback, use your team members. Use a design community like UI Collective.
Asking AI, not the best approach. So where audits generally come into play, then,
is auditing for consistency. Winner, winner, chicken dinner. This is where I find a ton of value
in working with Cloud, Cloud Code, to audit my designs for consistency. Not just my designs,
my clients' designs. And this is far easier than you think. On the topic of auditing,
I've gotten other questions as well, more than once. So I'm going to cover them here. One of
which is auditing for your progress. And it's a question I've got a lot, is can AI audit my
designs for progress and provide updates? Yes, it can. But why would you set it up like this?
It's just going to cause too much hassle. You're going to have to read through the update,
make tweaks to it. It's not going to be perfect. What if it misses something?
What if you did something in another file that week that AI doesn't have access to?
It can do it. But this is one of those ones where just write it on its own. Take 10 minutes,
write out what actually got done, and provide that update. The other one I want to discuss is,
can AI check if a design was changed? That's like the auditing for accidental changes.
Lock your Figma files. Lock your layers. If you're working on a design team, any designer
should know not to unlock a design that's one, locked in terms of its layers, and two,
marked for depth. It's pretty standard stuff. Sure, it can also check if a design was changed,
but just lock your layers. Those are two common questions that I've gotten around,
can AI audit for progress? Can AI audit for accidental changes? It can do those things,
but it's just not worth it to set it up. I really don't see the value. That's just my
own personal opinion, but I just don't see the value in doing those two things.
Where I find a lot of value is auditing for consistency, and we're going to look at that.
This is far easier than you think, because it's part of those Figma skills that we installed
earlier. Remember that at the start of the video? There is that audit design system skill,
where what it can do is essentially check which variable is not applied, which components are not
applied, where things are broken. All we have to do is provide a link to a Figma page,
and ask it to ask Cloud Code to audit the design, and then we're good. Let's take a look.
In the documentation spec that we generated earlier, this is a great sample design to test
this in. I'm just going to copy a link to this, and let's flip over to Cloud Code.
Inside of the new Cloud Code session, we're using Opus 4.7. What we're going to do is audit
this Figma frame, and then paste in a link. Let's run. This is what it came back with. You can see
it used that skill, audit design system. The same one that we had uploaded earlier on, that we had
downloaded from the Figma Community Skills site. Then what we have, design system audit button
component spec. The Figma frame, the file, all this stuff. Right away, the verdict. It needs work,
confidence, and around 85%. Summary, the button itself is properly component-sized. Every button
sample and variant states anatomy is an instance bound to this. The problem is the documentation
Chrome around it. Do, don't cards, numbered step badges, token chips, all this stuff built as raw
frames with hard-coded hex values. It was able to catch up what was an instance, and what was
just not attached to anything at all. Then we have our findings. We have the number, its priority,
and the specific finding. Then it goes in depth on each of those findings below. Do, don't cards
are duplicated raw frames. Nothing's connected. Number step badges, anatomy are hand-built. We
didn't use the badge components. All of this great stuff. Then right away at the bottom,
recommendations too. This here is the kind of output that a senior or design lead would give
you. This is awesome. This is something to this kind of audit. You can imagine if you had a bunch
of frames side-by-side, how long it would take you to go through, check everything, check all the
variables, check all the instances, check auto layouts. Now, it's just a matter of installing
that audit design system skill, going into a new cloud code session, telling it to audit the design
to call that skill automatically. As long as you've provided the Figma file, it's just going
to do the rest. This is like a five-hour long depending on how many pages you're auditing.
This is a five-hour workflow condensed into 10 minutes is that. Let's take a look at accessibility
now. When I'm talking about accessibility, I'm more focused on like WCAG color contrast and
things like that. Accessibility can get into a whole wide range of topics. I have some stuff for
that on our academy for members, but accessibility is a complex one. It's not one where there's a
one-size-fits-all approach to absolutely everything. There's a lot that we need to take into
consideration. Anthropic actually has a design plugin with an accessibility skill right out of
the box. Let's take a look at that. Back inside customize part of cloud code, under personal
plugins, let's browse plugins and then select this to install this design plugin. Let me close
that. One thing I'd want to talk through here really quickly is inside of this, there's a bunch
of different skills here. I want to talk through why I only like the accessibility
review skill here. Things like generating developer handoff specs. Companies are going
to want specific control around what goes into those documents, what goes into those specs. Remember
earlier on how I was talking about have the convo with your developers. I don't find the out
of the box one as valuable. Getting structured feedback on usability, hierarchy, consistency.
Again, it doesn't because Claude doesn't know your brand, you just still and you end up spinning.
It's just my own personal opinion. Even things like research synthesis. On the academy, I go
through my actual process on how I generate results, what I look for in that usability synthesis.
I have my own way of doing some of these things and you should too. You shouldn't necessarily
rely on AI to do everything because you're not going to know the steps that go into it.
These are great starting skills but in order to take your design to the next level is you need
some more custom skills. You need to know the why behind the skills, not just installing a skill
and hoping that it does everything for you. That's what's going to separate out the good designers
from the great designers. But this accessibility review, I have found really good results from
using it so let's take a look. Back inside a Claude code session then, check for accessibility
and again just a link to the exact same frame like that button component spec frame that we
generated earlier and let's run. It went through and did an audit for the accessibility. It came
back with this report. So we have our color contrast check, looks like everything's good
but we do have some issues. Now one thing I want to call out here is it does throw false positives.
It will say, oh if this is paired on a dark background it won't work like what's here but
we wouldn't pair it up against a dark background. So just because it's flagging things here for you
doesn't necessarily mean that you're wrong. Another example is pressed and loading states
are not in the components. That's by design. It's just from working with developers and designers
and a lot with design systems. Designers don't like to build loading and press states inside
of their design systems. They never get used. A lot of times developers like don't even put those
in anyway because we're going to do that on our own on our side and include it in our documentation
site. So that was left out on purpose. So it does give some false positives sometimes but in terms
of the overall quality of the report and in depth of the report this is like senior designer design
leader accessibility expert type level of quality and thoroughness. So this is one of those things
if you're generating designs just run a quick accessibility audit. We no longer need to use
Stigma's WCAG 2.1 color contrast tool to check for these things. AI can do it for us. Let's look at now
variables and styles. This one there's a lot of specifics and finer things that I want to talk
through. So let's just jump right into Claude directly. The biggest pain point whenever I'm
starting a new project is building out the type variables and also the type styles. I can't stand
it because again building up the variables is just annoying. Connecting all the variables to styles
is just annoying and then you have to do that like build out the variables for both
desktop mobile and tablet. Not fun. Claude code can help us with that and we're going to look at
other types of variables too later on but I want to focus on the type scale for now.
What we can do now is we can sort of define the type scale that we're looking for and have
Claude actually do the rest. Now as I mentioned this is best when you're starting a new project
working with a new client they don't have an existing brand something like that. Let's just
get it up and running first make sure we like the look and feel before we push to Figma.
Please build me a type scale ran locally before we push to Figma and build the
variables and styles. Oh I really cannot type this morning. And styles. Styles we need so we
will going to want to say hero h1 h2 h3 h4 h5 and h6 paragraphs or we'll just add them on here
paragraph large paragraph medium pg small font is going to be enter for hero and h tags
Roboto for paragraph or paragraph text. Please build me a type scale ran locally before we push
to Figma and build the variables and styles. Styles we need hero h1 h2 h3 h4 h5 h6 font enter
for hero and h tags Roboto for paragraph text. We also need a mobile variation as well. Please
keep all font variables or font attributes to a multiple of four. What this does it stops
cloud code from introducing something that's like a multiple of three that doesn't necessarily work
with like what it is that we're going for. So I think that looks pretty good. Oops an issue here
paragraph small. Please build me a type scale ran locally. Perfect. Let's run this. What it did here
is it generated those type scales for us. We have our desktop and we also have our mobile too.
Now this is great if we just want to show a client. If we have different versions of font,
we have different treatments, different styles, we want to get feedback before we implement
everything. Really great for spinning up quick examples or for doing it for ourselves. We know
exactly what we're looking for. We can iterate here without having to spend all the time in Figma
trying to figure out what it is that we like. So we have our desktop, we have our mobile,
it looks like everything is a multiple of four which is good. We can scroll down here. We see
our paragraph small which is 12 pixels. Personally I'd probably put that to 14. We could introduce a
caption size that's 12 but that's okay. And we have the tokens which are ready for Figma variables.
This looks good. Roboto Roboto. So we have some tracking here. Personally I'm not a big fan of
like negative one percent tracking and even negative two percent tracking. The user just
can't really even tell the difference if I'm honest. So I think this looks pretty good. So let's
drag this back out, give ourselves some space. And what I've done here just offline is I created a
new Figma file and we're going to have it push these to Figma. These look good. Please build the
variables first inside of Figma and then build the type styles. Ensure the variables are linked
inside of the styles. Let's run. All right so I made a mistake in the prompt. Sorry it's
8 15 in the morning here so I need just need coffee in me I guess. But as part of this is I
didn't define the collections that we're going to use. So one thing I'm going to do is I'm going
to link some videos down below where I one build design system and two build an advanced variable
library where I go through these collections a little bit more in depth. So we're gonna need
collection setup. Setup. Brands. Empty for now. Leave empty for now. Err sorry. Font.
Weight and font family. String variables. Alias collection. Leave empty for now.
Actually what we'll do is we'll actually just bring in the the font family. Font family.
String variables. Alias from the brand collection. Again if you don't know what these are
I have some links down below. And then mapped collection is going to be empty for now.
And then responsive collection holds variables for font size. Line height. Paragraph spacing.
And it included tracking. So we're gonna include tracking in here too. Tracking. And so font size.
Line height. Paragraph spacing. Tracking. So collection setup. Brand. Font weight and font
family. String variables. Alias collection. Font family. String variables. Alias from the brand
collection. You're gonna see what I mean when I talk about this. Mapped collection. Empty for now.
Responsive collection. Holds variables for font size. Line height. Paragraph spacing. Tracking.
There we go. Adjusted prompt. Let's run this. This is here what it produced. So we have a
responsive collection. It's a font size. Line height. Paragraph spacing. And tracking across
desktop and mobile. Amazing. We have our mapped collection. We said to leave it empty for now.
We have our brand collection with our font family and our font weights which is good.
We have our alias collection with our just our font family. Again what this is going to allow
us to do is add in a second mode for brand. So brand A. Brand B. And then also here we have our
heroes. So it looks like the variables for the most part are applied. Looking really good. Now
this here is one of the most tedious tasks of building a design system. Getting your variables
set up. And this just took like nine or ten minutes at most. Like it didn't even take a whole
long time to generate. So if you're looking for ways to leverage Cloud Code beyond just designing
your type styles. If you're just getting started with a new client. A new project. It's a really
great place to start. I want to talk about the rest of your variables now. It's a question I
usually get. Because Cloud Code can generate you your variables. But do you want Cloud Code
to generate your variables? Let's take a look. Now please build the rest of the variable library.
So we have some details here. Brand. Raw color hex codes. Raw color scales with just pure hex codes.
Alias. Where we define the colors from brand into primary, secondary, error, success,
etc. Maps. These are the variables applied to components. Here are the groupings for surface,
text, icon, and border variables. We could beef this up a little bit. But what I'm trying to do
is I'm trying to show you what it can do and then get kind of my point across here. So now please
build the rest of the variable library. Brand. Raw color scales with just pure hex codes. Alias.
Where we define the colors from brand into primary, secondary, error, success. Map. These are the
variables we apply to components. Here are the groupings for surface, text, inside of maps.
Are the groupings for surface, text, icon, border variables. Let's run. It came back and gave us
this variable library. Let's take a look at it. So we have our brand collection. If all our hex
codes is grouped in their purest form. So which is nice. So it looks like we're using the 100 scale
too. So blue, indigo, green, so on and so forth. Let's go into our alias. And our alias is
essentially, and one thing I did offline, I'd messed up recording before where I had sort of
originally just had this versus like a default mode. But inside your alias is where you can add
additional brands. Maybe this here is brand A. And then this is brand B. And it groups all of
those groupings from our brand collection into primary, secondary, neutral, success, warning,
error, so on and so forth. Looks pretty good and everything is connected back to the brand
collection. Then in our mapped collection. So we have groups for surface, text, icon, border.
Which is good. Let's go through some of these now. So within our surface grouping,
we have subtle, muted, strong, and default. Do you know when a subtle should be applied
versus a muted? Say you were building a design system. You were building a set of components.
Maybe you're not even building components, but you're just building designs and Claude gave
you this library. Do you know when to use subtle versus muted? No. Do you know when to use success
versus subtle? Maybe. The point I'm trying to get across here is just because Claude code can
generate you a variable library does not mean that it's right. It's missing fundamental gaps in your
brand, how things should be structured, your naming conventions. And even if you're just
getting started from scratch, you don't know what you don't know. Now, I get a lot of emails around
like, oh, AI generated me this variable library. Can you tell me what's missing? I have no idea
because I don't know your brand. And if I have no idea, how is Claude going to know and generate you
an accurate variable library complete with every variable that you might need? You're going to
spend more time trying to tweak it and trying to understand what's going on and trying to
reverse engineer it. You're going to spend more time doing that when you could have just built
your own library from scratch using some of our tutorials. And half the time, you need to be an
expert on your own variable library. And just to summarize that, can Claude code build variable
libraries? Yes, it can. But why would you want it to? Because what you're going to do, Claude
is going to provide a library, you're going to use it, realize it's wrong, ask for changes,
going to provide the library, you use it, realize it's wrong, you're going to ask for changes again,
and it's a never-ending cycle. My suggestion to you, watch some of the videos I have down below,
they're free, where I teach you how to build a variable library, what variables go into it,
what to look out for. I have a full video, a three-hour video where we build a design system
with a smaller variable set. And then I have another video where we build a more complex
variable set, only focus on that. I have another video where we focus on multiple brands. So I have
a lot of great content on that. Totally free, my gift to you, that would be my suggestion.
Thinking outside the box now, is using AI isn't about just us, but it's how can we
help developers understand what's possible with Claude Code and Figma MCP? Because they might not
know. So how can we almost either, one, make their lives easier, if they've given us their trust,
and maybe we are a little bit more technical. And if we're not, how can we tell them what they
can do to maybe help them save some time? One of those things is actually generating our token
file. So we have this big, beautiful variable library inside of Figma. But how can we then
translate that to code? There's going to be some prompting involved. And there's more to that than
just having Claude generating the token file. But what I'm trying to show you is that it's
possible here. Because your developers are going to want to build out that file differently than
what you're going to do on just like a, than what you might understand or do first try.
So what I want to do here is let's go into this variable kit. Again, this is with the design
system that's a part of our academy. And you can see here that like how complex it can really get
all these different variables. And again, I show you how to build this variable library for free,
link in the description, where we have our brand, we have our alias, we have our mount,
we have a responsive collection. What I want to do is I want to copy a link to this.
And let's then go into Claude Code and have it build out the file that devs could use
realistically. I'm just going to paste in a link to that library. Now, the prompt I'm running here,
it's going to be a horrible prompt. I'm trying to get my point across to show you that it's possible
because every company is going to want to structure their variables a little bit differently.
So it's going to be one basic prompt to show you that as possible to show you the output.
I'm not saying this is the way that you should prompt it. Have the convo with your developers
around how they want it structured, or just let your developers know that this is possible,
that they can save time using Figma MCP and Claude Code to build out the variable file.
So study all of the Figma variables inside of this file, then please generate me a JSON file
I can share with my developers. Something that simple and that basic. Let's just run it.
And this here is what it came back with. We have this really large JSON file.
Again, what this is about is informing the developers that this is possible.
Because they know that you can bring in designs and components, but do they know that Claude Code
can read the raw variables, our variable library, our styles, everything that goes in there,
all the different modes. So it's more about dialogue and informing. If they trust you
to generate something like this, great. They might give you some tips, some pointers. Maybe
generate a first copy, then share with your developers and let them do the rest.
And if not, maybe it's just something that they didn't know existed, now all of a sudden they
can dialogue with Claude around some of these supporting materials.
So when it comes to things like this, it's a lot about educating your developers on what's
possible. Alright, thanks for watching this one and making it this far in the video.
We have a lot more content coming on AI and working with design systems and all that fun
stuff. So be sure to drop a subscribe. Also, too, check out our website.
Link for our website is in the description. Words are tough.
And anyways, if you want to watch a video where I build an entire design system, click in the top
left. If you want to watch another video that I highly recommend, click in the top right.
See you in the next one.