figma_scan_ds_compliance
Audit a completed Figma screen for design system compliance. Returns score, coverage percentages, hardcoded color/font samples, and overflow analysis to flag violations requiring fixes.
Instructions
v1.9.4: FINAL GATE — Full DS compliance scan for a completed screen. Returns the same score + breakdown as figma_validate_screen PLUS: (1) coverage = granular bind percentages (fills/paddings/radius/itemSpacing/textStyle/textColor/strokes), (2) samples.hardcodedHex = up to 8 nodes with hardcoded SOLID colors, (3) samples.hardcodedFontSize = up to 8 text nodes with hardcoded fontSize (no textStyleId), (4) samples.primitiveFrames = up to 8 frames that should have been DS component instances, (5) overflow = root auto-layout overflow analysis (frameSize vs contentSize). If passed: false, Claude MUST fix listed violations before presenting the screen as complete. Threshold 85 default (stricter than validate_screen's 80) because this flags granular gaps. Read-only — never mutates the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaUrl | No | Figma file URL for routing. | |
| fileKey | No | Target a specific connected file. | |
| nodeId | Yes | Node ID of the completed screen to audit | |
| threshold | No | Pass threshold (0-100). Default 85. Below this, screen is non-compliant and must be fixed. | |
| expectedDs | No | Expected DS library name (e.g. '❖ SUI') |