Home

Awesome

Figma Dominant Color Toolkit

Figma Dominant Color Toolkit 🎨

Generate a palette from an image to magically populate your designs.

Install on Figma

Usage

This plugin provides two core functions:

  1. Generate utility palette: extracts the dominant color from an image, suggests high-contrast text colors, and includes additional complementary palette information.
  2. Smart populate: takes your selection and intelligently sets layer fills and text colors based on nearby images.

Generating a dominant color palette

  1. Select one or more layers in Figma that contain image fills.
  2. Run the plugin Menu > Dominant Color Toolkit 🎨 and your palette will be generated.

Note: To prevent overlapping frames from appearing in your designs, align your images 500px apart.

Smart populate

  1. Select any frame, component, or instance
  2. Menu > Dominant Color Toolkit 🎨
  3. Command + Shift + P to re-run

How does Smart Populate work?

Note: This plugin supports both image fills and background fills, using the first valid fill it can find. As a result, a frame with a background fill that has children shape and text layers will populate successfully!

Secret options: If you'd like to text layers to the dominant color rather than high-contrast color, simply include the text "dominant" anywhere in the layer name!

Installation and contributing

  1. Clone the repository: git clone https://github.com/brianlovin/figma-dominant-color-toolkit.git
  2. Go to the directory: cd figma-dominant-color-toolkit
  3. Install dependencies with npm install
  4. Build the plugin: npm run dev
  5. Go to the plugins directory in Figma
  6. Add a new development plugin
  7. Select the figma-dominant-color-toolkit/manifest.json file as the manifest

Credits