A comprehensive design system audit tool for Figma that helps you find layers using variables, styles, and strict layer name matching. Perfect for design system quality assurance and maintenance.
- Comprehensive Variable Detection: Find layers using design variables (colors, numbers, strings, booleans)
- Complete Style Detection: Locate layers with paint, text, effect, and grid styles
- Smart Scope Logic: Automatically searches selection first, then expands to page when needed
- Local & Remote Support: Works with both local design tokens and remote library components
- Ultra-Fast Detection: Optimized async algorithms with comprehensive error handling
- Exact Name Matching: Find layers by precise layer names only
- Component Exclusion: Automatically excludes COMPONENT and INSTANCE types for quality assurance
- Predefined Validation: Only allows these exact layer names:
heading-texttitle-textsubtitle-textbody-texthighlighted-textinfo-textcaption-textoverline-text
- Intelligent Scope Selection: Searches your selection first, expands to page automatically
- Detailed Statistics: Shows nodes checked, design tokens found, and matching criteria
- Complete Layer Paths: Displays full path (Page β Frame β Layer) for each result
- Click to Navigate: Select and zoom to any layer from search results
- Real-time Validation: Instant feedback on search terms and layer names
- Download or clone this repository
- Open Figma Desktop App (plugin requires desktop version)
- Go to Plugins β Development β Import plugin from manifest...
- Select the
manifest.jsonfile from this folder - The plugin will appear in your plugins list as "JustGo Audit"
- Ensure all plugin files are compiled (
code.jsfromcode.ts) - Submit to Figma Community or share privately
- All files must be in the same directory
justgo-audit/
βββ manifest.json # Plugin configuration and metadata
βββ code.js # Main plugin logic (JavaScript)
βββ code.ts # Main plugin logic (TypeScript source)
βββ ui.html # Plugin user interface with dual-mode tabs
βββ README.md # This documentation
- Open any Figma file with design variables or styles
- Run the "JustGo Audit" plugin
- Select the "π Variables & Styles" tab
- Enter a variable or style name (e.g.,
colors/surface/default) - Click "Start Audit" to search
- View detailed statistics and found design tokens
- Click on any result to select and zoom to that layer
- Select the "π·οΈ Layer Names" tab
- Enter an exact layer name from the allowed list
- Use quick-select buttons for guaranteed valid names
- Click "Start Audit" to perform strict search
- Results automatically exclude components and instances
- Click on results to navigate to matching layers
The plugin accepts various formats for design tokens:
Variables:
colors/surface/defaultspacing/mdborder-radius/lgtypography/heading/large
Styles:
button-primaryheading-largecard-shadowlayout-grid
Only these exact names are allowed:
heading-texttitle-textsubtitle-textbody-texthighlighted-textinfo-textcaption-textoverline-text
- Selection First: If layers are selected, searches within selection
- Automatic Expansion: If no matches in selection, expands to entire page
- Context Awareness: Shows which scope was used in results
- Performance Optimized: Efficient traversal of large design files
- Nodes Audited: Total number of layers checked
- With Design Tokens: Layers containing variables or styles
- Matching Criteria: Layers that match your search term
- Unique Items Found: Distinct variables and styles discovered
- Figma Desktop App
- TypeScript compiler (if modifying code.ts)
- Basic understanding of Figma Plugin API
- Edit
code.tsfor main plugin logic changes - Compile TypeScript:
tsc code.ts --target es2017 - Edit
ui.htmlfor interface modifications - Update
manifest.jsonfor configuration changes - Reload plugin in Figma to test changes
The plugin leverages these Figma API features:
figma.variables.*- Access design variables and collectionsfigma.getStyleById()- Retrieve style informationfigma.root.children- Traverse document structurefigma.currentPage.selection- Handle user selections
figma.getNodeById()- Access specific nodesfigma.viewport.scrollAndZoomIntoView()- Navigate to layersfigma.currentPage.selection- Select found layers
figma.variables.getVariableByIdAsync()- Fetch variables asynchronouslyfigma.variables.getVariableCollectionByIdAsync()- Get variable collections
- Fill Variables: Colors and images bound to fill properties
- Stroke Variables: Border colors and styles
- Dimension Variables: Width, height, corner radius, padding
- Text Variables: String content and properties
- Boolean Variables: Visibility and state toggles
- Paint Styles: Fill and stroke styling
- Text Styles: Typography and text formatting
- Effect Styles: Shadows, blurs, and other effects
- Grid Styles: Layout grid configurations
- Component Exclusion: Automatically skips COMPONENT and INSTANCE nodes
- Error Handling: Comprehensive error catching and user feedback
- Validation: Strict input validation for layer names
- Performance: Optimized for large files with thousands of layers
- Desktop Only: Requires Figma Desktop App (not browser version)
- Variable Binding: Only finds variables properly bound to layer properties
- Style Application: Only detects styles actually applied to layers
- Performance: May be slower with extremely large files (10,000+ layers)
- Layer Names: Strict mode limited to predefined 8 layer names only
- No Results Found: Ensure variables/styles are properly bound to layers
- Plugin Won't Load: Verify you're using Figma Desktop, not browser
- Search Fails: Check variable name format (collection-name/variable-name)
- Layer Names Rejected: Use only the 8 allowed exact layer names
- Verify your file contains the variables/styles you're searching for
- Check that variables are bound to layer properties (not just defined)
- Ensure layer names match exactly (case-sensitive)
- Try searching in a smaller selection first
- Restart Figma Desktop if plugin becomes unresponsive
- NEW: Dual-mode interface (Variables/Styles + Layer Names)
- NEW: Strict layer name search with component exclusion
- NEW: Smart scope logic with automatic expansion
- NEW: Comprehensive statistics and reporting
- NEW: Enhanced error handling and validation
- IMPROVED: Ultra-fast async variable detection
- IMPROVED: Complete style detection coverage
- IMPROVED: Professional audit-focused interface
For issues, feature requests, or questions:
- Check Documentation: Review this README and troubleshooting section
- Verify Setup: Ensure proper installation and Figma Desktop usage
- Test with Sample: Try with a known working file first
- Report Issues: Include plugin version, Figma version, and error details
MIT License - Feel free to modify and distribute for your design system needs.
JustGo Audit - Making design system audits faster, more accurate, and more comprehensive. Perfect for design teams maintaining quality and consistency across large-scale projects.