Audit a Figma file for off-system colors and styles
When to use: The team's file has drifted from the design tokens and you want to find the strays.
Prerequisites
- Figma plugin imported via manifest — Figma → Plugins → Development → Import from manifest
- Running
bun run socket— From the repo; opens the WebSocket
Flow
-
ConnectConnect to Figma, channel abc123 (copy from the plugin UI).✓ Copied→ Connected; document name shown
-
Scan for off-system fillsScan all nodes for fill colors that aren't in our 12 brand tokens. List node paths.✓ Copied→ List of drift instances
-
ReportGroup by nearest frame and summarize. Suggest which token each stray should be.✓ Copied→ Actionable cleanup list
Outcome: A file you can hand to a designer with concrete fixes.
Pitfalls
- Channel ID rotates if you restart the plugin — Always copy fresh from the plugin panel; stale IDs silently time out