AI-Powered Figma Linting Plugin
A Figma plugin, built with Cursor and Claude, that catches detached components and raw HEX values before they reach engineering.
- Role
- Lead Product Designer · Plugin author
- Timeline
- 8 weeks · 2026
- Stack / Tools
- Figma Plugin API
- TypeScript
- Cursor
- Claude
- Design Tokens
01
The Problem
Design-system drift starts small: one detached button, one hard-coded hex. Across 10+ product teams it compounds into hundreds of untracked variants that engineering rebuilds from scratch.
- Issue 01
Silent detachment
Designers detached components to make quick tweaks. Nothing in Figma flagged it, so variants multiplied unseen.
- Issue 02
Raw values everywhere
Fills and strokes used raw HEX instead of variables, breaking theming and making token migrations manual.
- Issue 03
Review didn’t scale
The DS team audited files by hand. With 130+ stakeholders, reviews became the bottleneck.
02
Architecture
A linter that runs inside Figma, explains every issue in plain language and offers a one-click fix that maps the raw value back to the nearest token.
export const noRawFill: Rule = (node) => {
if (!("fills" in node)) return [];
return node.fills
.filter((f) => f.type === "SOLID" && !f.boundVariables?.color)
.map((f) => ({
id: "no-raw-fill",
node: node.id,
message: `Raw ${toHex(f.color)} — use a color token`,
fix: nearestToken(f.color, tokens.color),
}));
};- Decision 01
Deterministic rules first, AI second
Detection is rule-based and testable. Claude is used only to rank token suggestions and write the explanation.
- Decision 02
Built with Cursor in the loop
Cursor scaffolded the plugin and the rule tests, which let a designer ship a production plugin without a dedicated engineer.
- Decision 03
Fix, don’t just flag
Every issue comes with an action. A linter that only complains gets uninstalled.
03
Impact
The plugin moved governance from after-the-fact review to the moment of design.
100+
Components governed
Covered by detachment checks
0
Raw HEX at handoff
Automated checks which catch raw values
−30%
QA cycles
Fewer visual bugs filed after handoff