AI + Design Studio #2

AI + Design Studio #2

AI + Design Studio #2

AI + Design Studio #2

AI + Design Studio is a series of self-initiated experiments exploring AI in design. Each entry tests a tool or workflow on a real design task, documenting what worked, what didn't, and what I'd use again.

Project Status

Complete

Year

Nov 2026

Skills

AccessibilityAI workflowsDesign opsDesign QADesign systemsTool building

Tools

Claude CodeFigmaVisual Studio Code

Overview

I built a Figma plugin with Claude Code that checks a design file against Nook & Cranny's brand, accessibility, and handoff rules. It runs 20 checks across the three groups. It points to every issue and scores the file. Claude Code built the first working version in about 18 minutes, and a full scan takes about 3 seconds. A clean file passed all 20 checks, and test frames with errors were flagged in all three groups.

The Question

Can I build a Figma plugin with Claude Code that finds brand, accessibility, and handoff errors in a design, without flagging anything in a design that's already correct?

The Setup

  • A Figma file with 3 on-brand frames: an Instagram post (1080 × 1350 px), a web banner (1440 × 480 px), and a product card (360 × 520 px).

  • Copies of those frames with errors I added on purpose, across all three check groups.

  • One brand rules file as the source of truth. I updated entry #1's version for Figma, replacing the Illustrator and print details with Figma names, and sizes for each format.

  • The brand setup in Figma with color variables, 9 text styles, and the wordmark as a component with color variants.

The Brand

Nook & Cranny is a fictional brand of small, space-saving modular furniture, carried over from entry #1.

Part 1: Building the Plugin

I gave Claude Code the rules file and asked for a plan first. It came back with a file list and how each check would work. It also found the earlier brand rules file from entry #1 on its own and was able to tell the two versions apart, since the new one says it's for Figma. It read a screenshot of my test frames too. I rebuilt the test frames afterward, so the final results don't reflect anything it had seen. The first working version took about 18 minutes and checked brand colors and contrast on solid backgrounds. It couldn't yet measure contrast for the logo or buttons over a photo, so I added that in Part 2. All times in this entry are my estimates.


Group

What it checks

Brand

Exact brand colors, fonts and sizes per format, the wordmark component, logo padding, and CTA button shape and size

Accessibility (WCAG 2.2 AA)

Approved text and background color pairs, at least 3:1 contrast for buttons and the logo on solid backgrounds, buttons at least 24 × 24 px

Handoff readiness

Colors and text tied to variables and styles, no detached components, no default layer names, no hidden or loose layers, image resolution, and spacing on an 8 px grid

Part 2: Debugging and Adding Features

This took about 1 hr 15 min, and a good part of it was me testing, figuring out what was wrong, and deciding what else to build. Most fixes ended up in my rules, not the code.

  • When I tested it on my on-brand frames, it found real problems. A product photo at half its needed resolution and a typed-in white background. I fixed both.

  • Some flags came from a grid rule that was too strict. It flagged photos running past the frame and centered buttons, which were fine. I made it skip those and check only margins and gaps, and loosened it from 8 px to 4 px.

  • My rules didn't cover a logo or button sitting on a photo. Claude Code suggested checking the contrast against the photo behind it, and showing which logo color would pass.

  • I added a summary score per group, in a green or yellow box with a text label, so the status doesn’t rely on color alone.

  • I saved each working version with git so I could undo a change that broke something.

Claude Code wrote the code. I wrote and refined the rules, built the test frames, made rule decisions, designed the summary box, and approved every file and command.

Part 3: Testing the Plugin



On-brand frames

Test frames with errors

Frames scanned

3

6

Checks passing

20 of 20

10 of 20

Brand

8 of 8

3 of 8

Accessibility

5 of 5

3 of 5

Handoff readiness

7 of 7

4 of 7

Run time

About 3 seconds

About 3 seconds

The on-brand frames passed all 20 checks, so there were no false alarms. On the test frames with errors, 10 checks failed across all three groups, from off-palette colors and the logo to contrast and detached components.


Plugin checks

I check

Brand colors, fonts, and sizes

Hyphenation

Contrast on solid colors

Color used as the only signal

Contrast for the logo and buttons over photos

Anything over a see-through shape

Layer names, styles, variables, and spacing

Whether the design actually works

Best for a fast first pass before review or handoff


Building a tool around my own production process was the most useful part. It takes time up front to set up and test, but once it works, a full check takes seconds. I’d use it as a first pass before review, not a replacement for it, and I can see it being useful for real work.

It was tested on one brand, 3 formats, and errors I added myself. The plugin keeps its own copy of the rules, so when I change the rules file, I also have to update the plugin.

Key Takeaways

  • A checker catches problems in designs I thought were finished, which makes it a good first pass. On its first run, it flagged a low-resolution photo and a hidden white fill in my own on-brand frames.

  • Rules written for a tool need exact numbers. My first rules said to scale type proportionally, which would have put product card text at 13 px, under the 24 px minimum.

  • Rules that are too strict create noise, and noise hides real issues. The first run returned 42 Reviews in one group, mostly grid spacing on photos and centered buttons, and after I narrowed the rule, the clean file came back with 0.

  • Setting it up takes time, but it pays off fast. The build, debugging, and final features took about an hour and a half, and every scan after that took about 3 seconds.

  • Claude Code is great at turning written rules into a working tool. Deciding what the rules are, and what counts as a false alarm, was still up to me.