Home

Awesome

Name That Color - Android Studio Plugin

Introduction

When I get a new color to set in my Android app, I never know how to call it.

I used the website Name That Color for years, and I wanted to have it integrated inside Android Studio, so I ported its JS library to Kotlin and built this IntelliJ plugin around it.

Besides its long list of colors, users requested to add the material colors names, so we can now name our colors as material colors as well.

This plugin lets you insert a name for a color you copy-paste or type in an android resource file.

Usage

Two options are available: Clipboard and Quick Fix.

Clipboard

When you copy your color to add it in your app, you can use CONTROL+SPACE instead of pasting it to insert directly the right <color> tag.

after entering CONTROL+SPACE

Quick Fix

You can insert "aaa" and an error warning in the form of a Quick Fix will show up so you can replace "aaa" with its own <color name="silver_chalice">#aaa</color> tag by using ALT+ENTER.

after entering ALT+ENTER

Color Input

The Plugin accepts all formats of colors allowed in Android (lowercase or uppercase), and you don't need to prefix your color with "#":

Names

Name that color

If you chose to use "Name that color", this list of colors is used. If the exact color is not found, the algorithm will find the closest match, if possible.

Examples

Name that material color

If you chose to use "Name that material color", this list of material colors is used. If the exact color is not found, the algorithm will find the closest match, if possible.

Examples

Install

In Android Studio, open Settings > Plugins > Browse Plugins and type "name that color".

Thanks

I'd like to thank aednlaxer for submitting bugs and ideas!

License

This plugin is released under the: Creative Commons License: Attribution 2.5 http://creativecommons.org/licenses/by/2.5/