PatternFly Compliance Checker for Figma Files#19
Open
phcox wants to merge 4 commits intopatternfly:mainfrom
Open
PatternFly Compliance Checker for Figma Files#19phcox wants to merge 4 commits intopatternfly:mainfrom
phcox wants to merge 4 commits intopatternfly:mainfrom
Conversation
Author
|
Example compliance report: |
Member
|
this is cool. i havent used figma in a year but this is very cool. |
Author
|
Thanks @JustinXHale. This is just the first version and I'm sure I'll be updating and improving it in the near future. If you end up using it on a Figma design, please send me any feedback you have. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PatternFly v6 Compliance Checker - Skill Summary
Overview
An automated design system compliance validation tool that analyzes Figma UI prototypes against PatternFly v6 standards. Generates detailed HTML reports with actionable findings, deep links to violations, and batch export capabilities.
Purpose
Enable UX designers to validate their Figma designs against Red Hat's PatternFly v6 design system before developer handoff, reducing design-to-dev inconsistencies and ensuring brand compliance.
Key Features
1. Comprehensive Component Validation (17 Types)
2. Advanced Analysis Features
3. Interactive HTML Report
4. Accurate PatternFly v6 Token Validation
Updated March 2026 with official PatternFly v6 specifications:
Technical Specifications
Input
https://www.figma.com/design/FILE_ID/FILE_NAMEhttps://www.figma.com/file/FILE_ID/FILE_NAMEOutput
/Users/patrickcox/patternfly-compliance-report-[timestamp].htmlPerformance
Scoring
Usage
Command Line
node /Users/patrickcox/.claude/projects/-Users-patrickcox/memory/patternfly-check.js "https://www.figma.com/design/ABC123/My-Dashboard"Via Claude Code (Natural Language)
Via Alias (Optional)
Report Structure
Executive Summary
Component Sources
Top Priority Fixes
Critical Violations (Collapsed by default)
Minor Deviations (Collapsed by default)
Typography Hierarchy (Collapsed by default)
Spacing Consistency (Collapsed by default)
Compliant Elements (Collapsed by default)
Batch Operations
Dependencies
Files
patternfly-check.js- Main implementation (2000+ lines)patternfly-check-skill.md- Skill specificationSKILL-USAGE.md- User guideNEW-FEATURES-SUMMARY.md- v2 features documentationTOKEN-CORRECTIONS-2026-03.md- Token accuracy changelogfigma-config.env- Figma API token storageMEMORY.md- Project memory and preferencesVersion History
Version 2.0 (March 2026)
Version 1.0 (Initial)
Use Cases
Design Review
Run before design reviews to catch violations early:
Developer Handoff
Export violations as JSON for development tickets:
Team Compliance Tracking
Track compliance improvements over time:
Pattern Library Audit
Check component library usage:
Success Metrics
Excellent Compliance
Good Compliance
Integration Opportunities
With Jira
With CI/CD
With Design System Updates
Limitations
Not Validated
Manual Review Needed
Support
License & Attribution
Built for Red Hat PatternFly Design Team
Uses official PatternFly v6 design tokens
Figma API integration via node-fetch