Back to Plugins
Dominant Color Toolkit 🎨

Dominant Color Toolkit 🎨

<p>Generate a palette from an image to magically populate your designs.</p><p><br></p><p>This plugin provides two core functions:</p><p><br></p><p>1. Generate utility palette: extracts the dominant color from an image, suggests high-contrast text colors, and includes additional complementary palette information.</p><p>2. Smart populate: takes your selection and intelligently sets layer fills and text colors based on nearby images.</p><p><br></p><p>Generating a dominant color palette</p><p><br></p><p>1. Select one or more layers in Figma that contain image fills.</p><p>1. Run the plugin Menu &gt; Dominant Color Toolkit 🎨 and your palette will be generated.</p><p><br></p><p>Note: To prevent overlapping frames from appearing in your designs, align your images 500px apart.</p><p><br></p><p>Smart populate</p><p><br></p><p>1. Select any frame, component, or instance</p><p>2. Menu &gt; Dominant Color Toolkit 🎨</p><p>3. Command + Shift + P to re-run</p><p><br></p><p>How does Smart Populate work?</p><p>- If you selected one or more frames which contain an image, shapes, and text, the plugin will use the first image it finds to automatically fill the shapes with the computed dominant color and set text layers to have a high-contrast fill against that dominant color.</p><p>- If you selected an image along with shapes and text layers, the plugin will use the selected image to populate selected shapes with the computed dominant color and set text layers to use the high-contrast fill color.</p><p>- If you selected shapes and text, but no image, the plugin will traverse outwards in your frame until it finds an image fill. This image will will then be used to populate the shapes and text with the dominant color and high-contrast text colors.</p><p><br></p><p>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!</p><p><br></p><p>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!</p><p><br></p><p>This plugin is open source, contributions welcome: <a href="https://github.com/brianlovin/figma-dominant-color-toolkit" rel="noreferrer noopener nofollow" target="_blank">https://github.com/brianlovin/figma-dominant-color-toolkit</a></p><p><br></p><p>Credits</p><p><br></p><p>color-thief (<a href="https://github.com/lokesh/color-thief" rel="noreferrer noopener nofollow" target="_blank">https://github.com/lokesh/color-thief</a>) for finding dominant colors and generating palettes</p>

palettecolor_paletteimageabstractgenerativecolor

Plugin Preview

Dominant Color Toolkit 🎨 preview

About this plugin

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


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.

1. 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?

- If you selected one or more frames which contain an image, shapes, and text, the plugin will use the first image it finds to automatically fill the shapes with the computed dominant color and set text layers to have a high-contrast fill against that dominant color.

- If you selected an image along with shapes and text layers, the plugin will use the selected image to populate selected shapes with the computed dominant color and set text layers to use the high-contrast fill color.

- If you selected shapes and text, but no image, the plugin will traverse outwards in your frame until it finds an image fill. This image will will then be used to populate the shapes and text with the dominant color and high-contrast text colors.


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!


This plugin is open source, contributions welcome: https://github.com/brianlovin/figma-dominant-color-toolkit


Credits


color-thief (https://github.com/lokesh/color-thief) for finding dominant colors and generating palettes

Plugin Details

Version8
CreatedAugust 18, 2019
Last UpdatedOctober 15, 2021
Categoryshapes-colors
CreatorBrian Lovin
Stats13349 installs, 369 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:build/ui.html
  • main:build/code.js
  • Editor Types:
    figma

More Like This

Discover other plugins in the shapes-colors category.