A Figma plugin that automatically detects all unique color fills used within a selected frame and organizes them into a visual palette.
- Deep Layer Analysis: Recursively analyzes all layers within a selected frame, no matter how deeply nested they are
- Unique Color Detection: Identifies and extracts all unique solid color fills
- Visual Palette Generation: Creates a neatly organized grid of color swatches
- Color Labeling: Labels each color with its hexadecimal value
- Color Style Creation: Option to quickly convert extracted colors into Figma Color Styles
- Clone or download this repository
- Open Figma desktop app
- Go to Plugins > Development > Import plugin from manifest
- Navigate to the downloaded folder and select the
manifest.jsonfile
- Visit the plugin page on Figma Community
- Click "Install" button
- The plugin will be available in your Figma plugins list
- Select a frame or component in your Figma workspace
- Run the plugin from Plugins > Color Palette Extractor
- Click the "Extract Colors" button in the plugin dialog
- The plugin will create a new frame with your extracted color palette
- Optionally, click "Create Color Styles" to add the colors to your document's styles
manifest.json: Plugin configurationcode.js: Main plugin codeui.html: User interface
- Figma desktop app or Figma web (in compatible browsers)
If you're not seeing all colors from your design:
- Make sure you've selected a parent frame that contains all the elements you want to analyze
- The plugin only detects solid color fills (not gradients, images, or effects)
- Check that layers aren't hidden or locked
Feel free to submit issues or pull requests if you have suggestions for improvements.
MIT